new Highlighter(options)
A mouseover highlighter for 3D objects in the scene.
Parameters:
| Name | Type | Description |
|---|---|---|
options |
object with following keys:
|
- 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 scenethe scene to check for webgl objects
objectsthe objects list to check
renderListthe 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 eventthe 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 eventthe 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 rendererthe renderer to use
scenethe scene to use
camerathe camera to use
- Source:
- visualization/interaction/Highlighter.js, line 72