MarkupManager
Methods
Methods
activateMarkupView
activateMarkupViewWithPromise
addMarkupElement
- MarkupManager.addMarkupElement(element)
Add an HTML element to the markup element layer. The element will have its ID set to a system generated unique identifier.
- Arguments
element (
HTMLElement()) – the HTML Element to add
- Return type
- Returns
system generated unique identifier which is the id of the passed in object
createMarkupView
- MarkupManager.createMarkupView([name[, triggerEvent[, visibilityState[, colorMap[, snapshotImage]]]]])
Creates a new view based on the current camera, line, and face visibility values.
- Arguments
name (
string()) – optional optional name for the view. If omitted or null, the system will generate a default nametriggerEvent (
boolean()) – optional optional parameter indicating whether aCallbackMap.viewCreatedevent should be triggered. This parameter defaults to truevisibilityState (
VisibilityState()| null) – optional optional parametersnapshotImage (
HTMLImageElement | null()) – optional
- Return type
- Returns
Unique identifier for the new view
deleteMarkupView
exportMarkup
- MarkupManager.exportMarkup()
export markup from the viewer
- Return type
- Returns
Serialized markup objects
getActiveMarkupView
- MarkupManager.getActiveMarkupView()
Returns the currently active
MarkupView- Return type
MarkupView()| null- Returns
MarkupViewobject for the currently active view, or null if no view is active
getMarkupView
- MarkupManager.getMarkupView(uniqueId)
Gets a
MarkupViewobject from the viewer.- Arguments
uniqueId (Uuid) – the handle for the view object to retreive
- Return type
MarkupView()| null- Returns
MarkupViewobject for the corresponding ID or null if no view was found
getMarkupViewKeys
getPickTolerance
- MarkupManager.getPickTolerance()
Gets the pick tolerance in pixels for picking a
MarkupItem- Return type
number
- Returns
Current tolerance
getRenderer
- MarkupManager.getRenderer()
Returns a the interface to the
MarkupRenderer- Return type
- Returns
MarkupRendererinterface
getSelectedMarkup
- MarkupManager.getSelectedMarkup()
Returns the currently selected
MarkupItemor null if nothing is currently selected- Return type
MarkupItem()| null- Returns
selected
MarkupItem
loadMarkupData
- MarkupManager.loadMarkupData(json)
Loads markup data into the viewer.
- Arguments
json (string |
MarkupData()) –
- Return type
Promise <boolean>
pickMarkupItem
- MarkupManager.pickMarkupItem(point)
Picks a
MarkupItemTests scene based and markup attached to the active view (if any)- Arguments
point (
Point2()) – position to pick against
- Return type
MarkupItem()| null- Returns
MarkupItemthat was selected or null if none was picked
refreshMarkup
- MarkupManager.refreshMarkup()
Redraws the markup without rendering the scene. Useful when markup is added or removed but the scene is not affected.
- Return type
void
registerMarkup
- MarkupManager.registerMarkup(markupItem)
Registers a
MarkupItemto be rendered with the 3D view.- Arguments
markupItem (
MarkupItem()) – the item to register
- Return type
- Returns
unique handle to this
MarkupItem
registerMarkupTypeManager
- MarkupManager.registerMarkupTypeManager(markupType, markupTypeManager)
Registers a MarkupTypeManager to add markup to exported data.
- Arguments
markupType (
string()) –markupTypeManager (
MarkupTypeManager()) –
- Return type
void
removeMarkupElement
selectMarkup
- MarkupManager.selectMarkup(markupItem)
Selects a
MarkupItemPass null to clear the selection.- Arguments
markupItem (
MarkupItem()| null) – TheMarkupItemto select.
- Return type
void
setPickTolerance
- MarkupManager.setPickTolerance(tolerance)
Sets the pick tolerance in pixels for picking a
MarkupItem- Arguments
tolerance (
number()) – The new tolerance
- Return type
void
unregisterMarkup
updateLater
- MarkupManager.updateLater()
- Return type
void