Class: Highlighter

ROS3D. Highlighter

new Highlighter(options)

A mouseover highlighter for 3D objects in the scene.

Parameters:
Name Type Description
options

object with following keys:

  • mouseHandler - the handler for the mouseover and mouseout events
Source:
  • visualization/interaction/Highlighter.js, line 13

Methods

getWebglObjects(scene, objects, renderList)

Add all corresponding webgl objects in the given scene and add them to the given render list.

Parameters:
Name Type Description
scene

the scene to check for webgl objects

objects

the objects list to check

renderList

the list to add to

Source:
  • visualization/interaction/Highlighter.js, line 48

onMouseOut(event)

Remove the current target of the mouseover from the hover list.

Parameters:
Name Type Description
event

the event that contains the target of the mouseout

Source:
  • visualization/interaction/Highlighter.js, line 37

onMouseOver(event)

Add the current target of the mouseover to the hover list.

Parameters:
Name Type Description
event

the event that contains the target of the mouseover

Source:
  • visualization/interaction/Highlighter.js, line 28

renderHighlight(renderer, scene, camera)

Render highlighted objects in the scene.

Parameters:
Name Type Description
renderer

the renderer to use

scene

the scene to use

camera

the camera to use

Source:
  • visualization/interaction/Highlighter.js, line 72