Methods
-
addCallback(type, callbackFn)
-
Adds a callback function that will be called during specific events
Parameters:
Name Type Description typestring Type of callback: 'render' (only choice available now) callbackFnfunction Callback function to call -
getMainMarkerId() → {number}
-
Returns the designated main marker ID
Returns:
main marker ID- Type
- number
-
<virtual> hideAllModels()
-
Hides all models that have been loaded
-
init()
-
Initializes the instance
-
<virtual> setLocalAxisVisible(isVisible)
-
Sets visibility of local axis
Parameters:
Name Type Description isVisibleboolean Visibility of local axis -
<virtual> setWireframeVisible(isVisible)
-
Sets visibility of wireframe
Parameters:
Name Type Description isVisibleboolean Visibility of wireframe -
showChildrenOfMarker(markerId, visible)
-
Shows all children of marker
Parameters:
Name Type Description markerIdnumber ID of marker visibleboolean Whether to show or hide the children -
<virtual> update(dt)
-
Updates the renderer
Parameters:
Name Type Description dtnumber Time elapsed since previous frame