ContextAPI#
Interface ContextAPI
Hierarchy
- AnnotationAPI
- ClipPlaneAPI
- CollectionAPI
- ContextStateAPI
- ExplosionAPI
- FrameAPI
- HubAPI
- InstanceGraphAPI
- InteractionAPI
- LayerFilterAPI
- EventAPI
- MeasurementAPI
- DrawingAPI
- DrawingPlaneAPI
- QueryAPI
- SelectionAPI
- SessionAPI
- SettingsAPI
- SessionStorageAPI
- UtilityAPI
- AttachmentAPI
- AnimationAPI
- NodePathAPI
- RealityAPI
- TopologyAPI
- VariantsAPI
- CoordinateSystemAPI
- ContextAPI
 
Methods
Methods
add
- add(options): number
- 
Adds a new Node to the InstanceGraph. Parameters- 
options: AddNodeOptionsSpecifies the options for the new Node. 
 Returns numberThe id of added Node 
- 
- add(dataURI, parentID?, usage?, label?, contentType?, initialProperties?, cacheStrategy?): number
- 
Parameters- 
dataURI: stringSpecifies the URI to the data resource. 
- 
OptionalparentID: numberSpecifies the parent Node ID of the added Node. 
- 
Optionalusage: UsageStringThe usage parameter allows to define how the resource should be inserted in the InstanceGraph. 
- 
Optionallabel: stringSpecifies a custom label for the added Node. 
- 
OptionalcontentType: stringSpecifies the MimeType of the data resource. 
- 
OptionalinitialProperties: InitialNodePropertiesSpecifies initialProperties of the added Node. 
- 
OptionalcacheStrategy: CacheStrategySpecifies the strategy which is used when a data cache is requested from the Hub. 
 Returns numberThe id of added Node DeprecatedAdds a new Node to the InstanceGraph. 
- 
add
- addCustom Node(customNodeType, data, dataType?): number 
- 
Creates a custom Node with custom data which is stored in an Attachment. Parameters- 
customNodeType: string{string} Specifies the custom Node type. 
- 
data: any{any} Specifies the data of the custom Node. 
- 
OptionaldataType: AttachmentType{AttachmentType="json"} Specifies the type of the data. 
 Returns number
- 
add
- addTo Collection(collectionID, nodeID, recursive?): void 
- 
Adds the node given by nodeID to the collection with id collectionID. If recursive is true, the descendants of the node are also added. Returns the number of nodes in the collection. Parameters- 
collectionID: numberSpecifies to which collection the node should be added 
- 
nodeID: numberSpecifies which node should be added to the collection 
- 
Optionalrecursive: booleanSpecifies if the children of the node should also be added to the collection 
 Returns void
- 
add
- addTo Selection(nodeID, silent?): Promise<ChangeSelectionResult> 
- 
Adds the given Nodes to the Selection. Parameters- 
nodeID: number | number[]The ID of the Node that should be added to the current Selection 
- 
Optionalsilent: booleanIf set to true, no event will be emitted. 
 Returns Promise<ChangeSelectionResult>
- 
add
- addTopology To Selection(handle): Promise<void> 
- 
Adds one or multiple Topology elements to the current selection. Parameters- 
handle: TopologyHandle | TopologyHandle[]A Topology Element or the list of Topology Elements which should be added to the current selection. 
 Returns Promise<void>
- 
change
- changeAnnotation(annotationId, properties): AnnotationProperties 
- 
Changes one or more properties of an Annotation with the specified id. Parameters- 
annotationId: numberThe id of the Annotation you want to change. 
- 
properties: AnnotationPropertiesThe properties of the Annotation you want change. 
 Returns AnnotationPropertiesAn Object with the changed Properties. 
- 
- changeAnnotation(annotationID, label?, visible?, anchorPosition?, labelPosition?, active?, transform?): void 
- 
Parameters- 
annotationID: numberThe ID of the Annotation. 
- 
Optionallabel: stringThe text of the Annotation. 
- 
Optionalvisible: booleanIndicates if the Annotation should be visible or hidden. 
- 
OptionalanchorPosition: number[] | Float32ArrayAnchor position in world space coordinates. 
- 
OptionallabelPosition: number[] | Float32ArrayThe position of the label. 
- 
Optionalactive: booleanDEPRECATED 
- 
Optionaltransform: number[] | Float32ArrayThe transformation of the Annotation. 
 Returns voidDeprecatedChanges an annotation. 
- 
change
- changeClip Plane(clipPlaneId, properties): ClipPlaneProperties 
- 
Changes one or more properties of a clip plane with the specified id. Parameters- 
clipPlaneId: numberThe id of the clip plane you want to change. 
- 
properties: ClipPlanePropertiesThe properties of the clip plane you want change. 
 Returns ClipPlanePropertiesAn Object with the changed Properties. 
- 
- changeClip Plane(clipPlaneID, normal?, point?, name?, thickness?, tangent?, disabled?, invisible?, exclusive?): void 
- 
Changes the properties of the clip plane defined by the clipPlaneID with the optional parameters normal, points and name. Parameters- 
clipPlaneID: numberThe ID of an existing clip plane which should be changed 
- 
Optionalnormal: number[] | Float32ArrayThe new normal of the clip plane 
- 
Optionalpoint: number[] | Float32ArrayAn arbitrary new point in space which lies on the clip plane 
- 
Optionalname: stringThe new name for the clip plane 
- 
Optionalthickness: numberThe thickness for the clip plane 
- 
Optionaltangent: number[] | Float32ArrayThe tangent of the clip plane 
- 
Optionaldisabled: booleanThe enabled state of the clip plane 
- 
Optionalinvisible: booleanInvisible on the UI 
- 
Optionalexclusive: booleanset the exclusive flag to clip geometry when using exclusiveClipplanes property 
 Returns voidDeprecatedCalling changeClipPlane with single parameters is deprecated, please use ClipPlaneProperties instead. 
- 
change
- changeClipping Room(properties?): ClipRoomProperties 
- 
Changes one or more properties of the clip room. Parameters- 
Optionalproperties: ClipRoomPropertiesThe properties of the clip room you want change. 
 Returns ClipRoomPropertiesAn object with the changed properties. 
- 
- changeClipping Room(name?, size?, transformation?, disabled?, invisible?): ClipRoomProperties 
- 
Parameters- 
Optionalname: stringThe name of the clip room. 
- 
Optionalsize: number[] | Float32ArrayThe size of the clip room. 
- 
Optionaltransformation: number[] | Float32ArrayThe transformation of the clip room. 
- 
Optionaldisabled: booleanThe disabled state of the clip room. 
- 
Optionalinvisible: booleanThe invisible state of the clip room. 
 Returns ClipRoomPropertiesAn object with the changed properties. DeprecatedCalling changeClippingRoom with single parameters is deprecated, please use ClipRoomProperties instead. Changes one or more properties of the clip room. 
- 
change
- changeDrawing(drawingId, properties): DrawingProperties 
- 
Changes one or more properties of a Drawing with the specified id. Parameters- 
drawingId: numberThe id of the Drawing. 
- 
properties: DrawingPropertiesThe properties of the Drawing. 
 Returns DrawingPropertiesAn object with the changed properties. 
- 
change
- changeDrawing Plane(drawingPlaneId, properties): DrawingPlaneProperties 
- Experimental- Changes one or more properties of a DrawingPlane with the specified ID. - Parameters- 
drawingPlaneId: numberThe ID of the DrawingPlane you want to change. 
- 
properties: DrawingPlanePropertiesThe properties of the DrawingPlane you want change. 
 - Returns DrawingPlaneProperties- An Object with the changed Properties. 
- 
change
- changeMeasurement(measurementID, properties): MeasurementProperties 
- 
Changes one or more properties of a Measurement with the specified id. Parameters- 
measurementID: numberThe id of the Measurement you want to change. 
- 
properties: MeasurementPropertiesThe properties of the Measurement you want change. 
 Returns MeasurementPropertiesAn Object with the changed Properties. 
- 
change
- changeSetting<T>(setting, value): boolean 
- 
Changes the setting to the given value. Type Parameters- 
T extends string
 Parameters- 
setting: TA name that specifies a particular setting 
- 
value: ContextSettingType<T>The new value for the setting 
 Returns booleanA boolean which indicates if the setting has changed 
- 
change
- changeSnapshot(snapshotID, properties): SnapshotProperties 
- 
Changes one or more properties of a Snapshot with the specified ID. Parameters- 
snapshotID: numberThe ID of the Snapshot you want to change. 
- 
properties: SnapshotPropertiesThe properties of the Snapshot you want to change. 
 Returns SnapshotPropertiesAn object with the changed Properties. 
- 
- changeSnapshot(snapshotID, name?, screenshotURL?, order?): SnapshotProperties 
- 
This changes the textual description of the Snapshot for given snapshotID to the value of text. Parameters- 
snapshotID: numberThe ID of the Snapshot. 
- 
Optionalname: stringThe new name of the Snapshot. 
- 
OptionalscreenshotURL: stringThe new screenshot URL of the Snapshot. 
- 
Optionalorder: numberThe order inside the List of Snapshots. 
 Returns SnapshotPropertiesDeprecatedCalling changeSnapshot with single parameters is deprecated, please use SnapshotProperties instead. 
- 
clear
clear
- clearSelection(silent?): Promise<ChangeSelectionResult> 
- 
Clears the current Selection. Parameters- 
Optionalsilent: booleanIf set to true, no event will be emitted. 
 Returns Promise<ChangeSelectionResult>
- 
clear
clip
collect
- collectRuntime Nodes Of Type(nodeType, subType?): number[] 
- 
Returns a list of all existing runtime Node ids of a specified type. Parameters- 
nodeType: NodeTypeThe Node type to collect. 
- 
OptionalsubType: stringThe sub type to collect. Only used for Custom-Nodes. 
 Returns number[]A list of runtime Node ids of the specified type. 
- 
connect
- connectTo Session(sessionID?, name?): Promise<SessionStateData> 
- 
Parameters- 
OptionalsessionID: stringThe ID of the Session. 
- 
Optionalname: stringThe ID of the Session. 
 Returns Promise<SessionStateData>DeprecatedThe whole SessionAPI is under consolidation and will be replaced in a future release. Connects to a Session. If the ID does not exist, a new Session will be created. 
- 
connectXRSession
- connectXRSession(): Promise<XRSessionState>
- Experimental- Connects to the XR Session. - Returns Promise<XRSessionState>- Returns a Promise with the current XRSessionState. 
create
- createAnimation Frames(name, frames): void 
- 
Creates a new keyframe-based animation sequence. Parameters- 
name: stringThe name of the animation sequence. 
- 
frames: AnimationFrame[]The keyframes of the animation sequence. 
 Returns void
- 
create
- createAnnotation(properties?): number 
- 
Creates a new Annotation. Parameters- 
Optionalproperties: AnnotationPropertiesInitial properties of the created Annotation. 
 Returns numberThe id of the newly created Annotation. 
- 
- createAnnotation(nodeID, label, visible?, anchorPosition?, labelOffset?): number 
- 
Parameters- 
nodeID: numberThe ID of the node that the Annotation belongs to. 
- 
label: stringThe text of the Annotation. 
- 
Optionalvisible: booleanIndicates if the Annotation should be visible or hidden. 
- 
OptionalanchorPosition: number[] | Float32ArrayAnchor position in world space coordinates. 
- 
OptionallabelOffset: number[] | Float32ArrayThe offset between anchorPosition and where the label should be displayed. 
 Returns numberThe ID of the new annotation. DeprecatedCreates a new annotation. 
- 
create
- createAttachment(dataType?): number 
- 
Creates a new attachment. Parameters- 
OptionaldataType: AttachmentTypeSpecifies the attachment data type. 
 Returns numberThe attachment id. 
- 
create
create
- createCapping(clipPlaneId): Promise<void> 
- Experimental- Generates capping geometry for the surface that is cut by the clip plane. The generated surfaces allow measurements and all other operations which can be performed on usual geometry. - Parameters- 
clipPlaneId: numberthe id of the clip plane 
 - Returns Promise<void>
- 
create
- createCircular Arc Descriptor(point0, point1, point2): { 
 descriptor: TopologyCircularArcDescriptor;
 type: CIRCULAR_ARC;
 }
- 
Create Circular arc descriptor by the three specified points. Parameters- 
point0: [number, number, number]The first point. 
- 
point1: [number, number, number]The second point. 
- 
point2: [number, number, number]The third point. 
 Returns {
 descriptor: TopologyCircularArcDescriptor;
 type: CIRCULAR_ARC;
 }- 
descriptor: TopologyCircularArcDescriptorThe attributes of the Topological Element. 
- 
type: CIRCULAR_ARCThe syb type of the Topological Element. 
 
- 
create
- createClip Plane(properties?): number 
- 
Creates a new clip plane. Parameters- 
Optionalproperties: ClipPlanePropertiesInitial properties of the created clip plane. 
 Returns numberThe id of the newly created clip plane. 
- 
- createClip Plane(normal?, point?, name?, thickness?, tangent?, disabled?, invisible?, exclusive?): number 
- 
Creates a clip plane defined by the plane’s normal, positioned at an optional point (otherwise at the world space origin) and an optional name. Returns the ID of the clip plane. Parameters- 
Optionalnormal: number[] | Float32ArrayThe normal of the clip plane 
- 
Optionalpoint: number[] | Float32ArrayAn arbitrary point in space which lies on the clip plane 
- 
Optionalname: stringThe name of the clip plane 
- 
Optionalthickness: numberThe thickness of the clip plane 
- 
Optionaltangent: number[] | Float32ArrayThe tangent of the clip plane 
- 
Optionaldisabled: booleanThe state of the clip plane 
- 
Optionalinvisible: booleanInvisible on the UI 
- 
Optionalexclusive: booleanset the exclusive flag to clip geometry when using exclusiveClipplanes property 
 Returns numberThe ID of the newly created clip plane DeprecatedCalling createClipPlane with single parameters is deprecated, please use ClipPlaneProperties instead. 
- 
create
- createClipping Room(properties?): void 
- 
Creates a new clip room. Parameters- 
Optionalproperties: ClipRoomPropertiesInitial properties of the created clip room. 
 Returns void
- 
- createClipping Room(name?, size?, transformation?, disabled?, invisible?): void 
- 
Parameters- 
Optionalname: stringThe name of the clip room. 
- 
Optionalsize: number[] | Float32ArrayThe size of the clip room. 
- 
Optionaltransformation: number[] | Float32ArrayThe transformation of the clip room. 
- 
Optionaldisabled: booleanThe disabled state of the clip room. 
- 
Optionalinvisible: booleanThe invisible state of the clip room. 
 Returns voidDeprecatedCalling createClippingRoom with single parameters is deprecated, please use ClipRoomProperties instead. Creates a new clip room. 
- 
create
- createCollection(nodeIDlist?): number 
- 
Returns the id of a new collection containing the nodes from the given list. Parameters- 
OptionalnodeIDlist: number[]An array of node id's from which a new node collection should be created. 
 Returns numberThe id of the newly created node collection. 
- 
- createCollection(): number 
- 
Creates a new, empty collection and returns its id. Returns numberThe id of the newly created collection. 
create
- createDrawing(data, properties?): number 
- 
Creates a new Drawing from the Output of the ViewerDrawingAPI. Parameters- 
data: ViewerDrawingResultThe data generated with the help of the ViewerDrawingAPI. 
- 
Optionalproperties: DrawingPropertiesInitial properties of the created Drawing. 
 Returns numberThe id of the newly created Drawing. 
- 
create
- createDrawing Plane(properties?): number 
- Experimental- Creates a new DrawingPlane with the specified properties. - Parameters- 
Optionalproperties: DrawingPlanePropertiesInitial properties of the created Drawing. 
 - Returns number- The ID of the newly created Drawing. 
- 
create
create
- createMeasurement<T>(type, targets, properties?): number 
- 
Creates a new Measurement. Type Parameters- 
T extends keyof MeasurementTypeToTargetMap
 Parameters- 
type: TThe type of the Measurement. 
- 
targets: MeasurementTypeToTargetMap[T]The targets of the Measurement. 
- 
Optionalproperties: MeasurementPropertiesThe properties of the Measurement. 
 Returns numberThe ID of the created Measurement. 
- 
create
- createNode Path Handles(targets): Promise<NodePathHandle[]> 
- 
createNodePathHandles Creates and returns handles for the target node ids or topology selectors. Parameters- 
targets: number[]{Array } Array of target node ids to create the handles for 
 Returns Promise<NodePathHandle[]>The array of handles 
- 
create
- createPoint Descriptor(point): { 
 descriptor: TopologyPointDescriptor;
 type: POINT;
 }
- 
Create Point descriptor by the specified point. Parameters- 
point: [number, number, number]The point. 
 Returns {
 descriptor: TopologyPointDescriptor;
 type: POINT;
 }- 
descriptor: TopologyPointDescriptorThe attributes of the Topological Element. 
- 
type: POINTThe syb type of the Topological Element. 
 
- 
create
- createSnapshot(name?, options?): Promise<number> 
- 
Creates a Snapshot of the current. Parameters- 
Optionalname: stringThe Name of the Snapshot. 
- 
Optionaloptions: SnapshotCreationOptionsOptions used for the Snapshot creation. 
 Returns Promise<number>The Snapshot ID. 
- 
create
- createViewer(viewerID?, canvas?, settings?): ViewerAPI 
- 
Creates a viewer element. Parameters- 
OptionalviewerID: stringThe id of the viewer. 
- 
Optionalcanvas: HTMLCanvasElementThe canvas which is attached to the viewer. 
- 
Optionalsettings: {
 aaSetting: any;
 backgroundColor: any;
 cappingEffectEdgeColor: any;
 cappingEffectEnabled: any;
 cappingEffectInnerColor: any;
 colorComparisonFirstColor: any;
 colorComparisonMatchingColor: any;
 colorComparisonSecondColor: any;
 colorizeEffect: any;
 coordSys: any;
 defaultFieldOfView: any;
 disableSpecularHighlights: any;
 doubleClickAnimationVolumeScale: any;
 doubleClickTimeWindow: any;
 drawingArrowheadEnd: any;
 drawingArrowheadStart: any;
 drawingColor: any;
 drawingMode: any;
 drawingSize: any;
 dynamicAuxContrastEnabled: any;
 dynamicCOREnabled: any;
 dynamicClippingDistance: any;
 dynamicClippingEnabled: any;
 expandOnViewerSelection: any;
 faceHighlightColor: any;
 faceSelectionColor: any;
 fitViewFactor: any;
 flyNavigationSpeed: any;
 flyToOnDoubleClick: any;
 focusOnDoubleClick: any;
 frustumCulling: any;
 gizmoScalingFactor: any;
 gizmosEnabled: any;
 gpuMemoryReleaseFactor: any;
 hoverColor: any;
 initView: any;
 initialFit: any;
 lightingEnvironment: any;
 lineHighlightColor: any;
 lineSelectionColor: any;
 maxDynamicClipDistance: any;
 maxGPUMemory: any;
 maxSRCCPUMemory: any;
 mouseInvertZoomingDirection: any;
 navigationMode: any;
 navigationSampling: any;
 navigationSpeedFactor: any;
 navigationSpeedThrottleFactor: any;
 preSelectionColor: any;
 projectionType: any;
 renderAuxOnTop: any;
 renderMode: any;
 renderSetup: any;
 screenSpaceCoverageCalculationMethod: any;
 selectionColor: any;
 showAuxOnNavigation: any;
 silhouetteEffect: any;
 silhouetteEffectColor: any;
 silhouetteEffectExclusiveEnabled: any;
 smallFeatureCulling: any;
 smallFeaturePixelThreshold: any;
 soc: any;
 spacemouseMultiplier: any;
 ssaoEnabled: any;
 taaEnabled: any;
 topoGeometryColor: any;
 topoGeometrySecondaryColor: any;
 topoPointsEnabled: any;
 turntableLowerVerticalLimit: any;
 turntableUpperVerticalLimit: any;
 turntableVerticalLimitsEnabled: any;
 useDevicePixelRatio: any;
 vertexColorsEnabled: any;
 viewPerspective: any;
 webglPreserveDrawingbuffer: any;
 }ViewerSettings - 
aaSetting: any 
- 
backgroundColor: any 
- 
cappingEffect Edge Color: any 
- 
cappingEffect Enabled: any 
- 
cappingEffect Inner Color: any 
- 
colorComparison First Color: any 
- 
colorComparison Matching Color: any 
- 
colorComparison Second Color: any 
- 
colorizeEffect: any 
- 
coordSys: any 
- 
defaultField Of View: any 
- 
disableSpecular Highlights: any 
- 
doubleClick Animation Volume Scale: any 
- 
doubleClick Time Window: any 
- 
drawingArrowhead End: any 
- 
drawingArrowhead Start: any 
- 
drawingColor: any 
- 
drawingMode: any 
- 
drawingSize: any 
- 
dynamicAux Contrast Enabled: any 
- 
dynamicCOREnabled: any
- 
dynamicClipping Distance: any 
- 
dynamicClipping Enabled: any 
- 
expandOn Viewer Selection: any 
- 
faceHighlight Color: any 
- 
faceSelection Color: any 
- 
fitView Factor: any 
- 
flyNavigation Speed: any 
- 
flyTo On Double Click: any 
- 
focusOn Double Click: any 
- 
frustumCulling: any 
- 
gizmoScaling Factor: any 
- 
gizmosEnabled: any 
- 
gpuMemory Release Factor: any 
- 
hoverColor: any 
- 
initView: any 
- 
initialFit: any 
- 
lightingEnvironment: any 
- 
lineHighlight Color: any 
- 
lineSelection Color: any 
- 
maxDynamic Clip Distance: any 
- 
maxGPUMemory: any
- 
maxSRCCPUMemory: any
- 
mouseInvert Zooming Direction: any 
- 
navigationMode: any 
- 
navigationSampling: any 
- 
navigationSpeed Factor: any 
- 
navigationSpeed Throttle Factor: any 
- 
preSelection Color: any 
- 
projectionType: any 
- 
renderAux On Top: any 
- 
renderMode: any 
- 
renderSetup: any 
- 
screenSpace Coverage Calculation Method: any 
- 
selectionColor: any 
- 
showAux On Navigation: any 
- 
silhouetteEffect: any 
- 
silhouetteEffect Color: any 
- 
silhouetteEffect Exclusive Enabled: any 
- 
smallFeature Culling: any 
- 
smallFeature Pixel Threshold: any 
- 
soc: any
- 
spacemouseMultiplier: any 
- 
ssaoEnabled: any 
- 
taaEnabled: any 
- 
topoGeometry Color: any 
- 
topoGeometry Secondary Color: any 
- 
topoPoints Enabled: any 
- 
turntableLower Vertical Limit: any 
- 
turntableUpper Vertical Limit: any 
- 
turntableVertical Limits Enabled: any 
- 
useDevice Pixel Ratio: any 
- 
vertexColors Enabled: any 
- 
viewPerspective: any 
- 
webglPreserve Drawingbuffer: any 
 
- 
 Returns ViewerAPI
- 
disable
disconnect
enable
end
enterXRMember
- enterXRMemberInit Mode(memberId, xrInitOptions?): Promise<boolean> 
- Experimental- Enters the initialization phase for modeltracking. This is also used to reset the current modeltracking. It will also trigger a XRMemberStateChangedEvent event with FIXATED set to false. By default the modeltracking will be softreset. If you choose to reset different data on the modeltracker you can do so by specifying the XRInitOptions. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
- 
OptionalxrInitOptions: XRInitOptionsSpecify initialization options. E.g. reset behavior of modeltracker. Default is softreset. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
exitXRMember
- exitXRMemberInit Mode(memberId): Promise<boolean> 
- Experimental- Exits the initialization phase for modeltracking, this will also anchor the model at the current position. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
exportXRInit
- exportXRInitTemplate(memberId): Promise<string> 
- Experimental- Exports init template for modeltracking. Usage: After a successful tracking session, the learned init template data can be exported with this function and stored for later. - Only supported if the XRMember has the MODELTRACKER capability. - The aquired data can be imported via importXRInitTemplate function - Parameters- 
memberId: numberthe XRMember that the operation should be applied on 
 - Returns Promise<string>- base64 encoded init template data 
- 
fetch
fixateXRMember
- fixateXRMember(memberId): Promise<boolean>
- Experimental- Anchors the model at the current position. It will also trigger a XRMemberStateChangedEvent event with FIXATED set to true. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
get
- getAnnotation Data(annotationId): AnnotationData 
- 
Parameters- 
annotationId: numberThe ID of the Annotation. 
 Returns AnnotationDataThe content and properties of an annotation. Deprecated
- 
get
get
- getAttachment Data<T>(attachmentID?): T 
- 
Returns the attachment data. Type Parameters- 
T = any
 Parameters- 
OptionalattachmentID: numberSpecifies the attachment object. 
 Returns TThe attached data DeprecatedgetAttachmentData is deprecated, please use fetchAttachmentData instead. 
- 
get
get
get
get
- getCollection(collectionID): ICollection 
- 
Parameters- 
collectionID: number
 Returns ICollection
- 
get
- getCollection Elements(collectionID): Promise<number[]> 
- 
Returns an array containing the ids of the nodes in the collection. Modifying the returned array results in undefined behavior. Parameters- 
collectionID: numberThe id of the node collection 
 Returns Promise<number[]>Array of node IDs representing the node collection READONLY
- 
get
get
get
- getCoordinate System Matrix(): Float32Array | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number] 
- 
Returns a 4x4 rotation matrix which is used to transform the internal default right-handed coordinate system with X and Y as front plane axis to the configured one. Returns Float32Array | [number, number, number, number, number, number, number, number, number, number, number, number, number, number, number, number]The CoordinateSystem Matrix 
get
get
get
- getDrawing Plane Data(drawingPlaneId): DrawingPlaneProperties 
- Experimental- Returns the DrawingPlane properties for the specified DrawingPlane ID. - Parameters- 
drawingPlaneId: numberThe ID of the DrawingPlane you want to get the Data for. 
 - Returns DrawingPlaneProperties- The requested DrawingPlane properties. 
- 
get
get
get
- getEnabled Aux Nodes(nodeID?): Promise<number[]> 
- 
Parameters- 
OptionalnodeID: numberSpecifies the entry point of the subtree traversal (default: 0) 
 Returns Promise<number[]>An Array of all enabled aux Node id's DeprecatedThis function will no longer be available in future webvis releases Traverses the subtree of a given nodeID and collects all enabled aux Nodes. 
- 
get
get
- getInteraction Mode(): InteractionMode 
- 
Returns the current Interaction mode. Returns InteractionModeThe current Interaction mode. 
get
get
get
get
- getProperties<T>(nodeID, properties): Promise<PropertyType<T>[]> 
- 
Returns the values of the properties on the Node with the matching id. Type Parameters- 
T extends string
 Parameters- 
nodeID: numberThe id of the Node whose properties should be read. 
- 
properties: T[]The names of the properties whose value should be read. 
 Returns Promise<PropertyType<T>[]>The retrieved values of the Node's properties. 
- 
get
- getProperty<T>(nodeID, property): Promise<PropertyType<T>> 
- 
Returns the value of the property on the Node with the matching id. Type Parameters- 
T extends string
 Parameters- 
nodeID: numberThe id of the Node whose property should be read. 
- 
property: TThe name of the property whose value should be read. 
 Returns Promise<PropertyType<T>>The retrieved value of the Node property. 
- 
get
get
- getRoot Node Id(target, includeTarget?): number 
- 
Returns the root Node id of the given Node or Topology Element. Parameters- 
target: number | TopologyHandleSpecifies the target Node or Topology Element. 
- 
OptionalincludeTarget: booleanControls if the target Node itself can be returned as root Node. If set to false and a root Node id is passed in, it returns the next higher root Node id. 
 Returns number- The root Node id of the given Node id or Topology handle.
 
- 
get
get
get
- getSelected Topology Handles(): TopologyHandle[] 
- 
Returns a list of all selected topology elements. Returns TopologyHandle[]A List of all selected Topology elements. 
get
- getSelection(): Promise<number[]> 
- 
Returns a list of all selected nodes. Returns Promise<number[]>An array which contains the IDs of all leaf Nodes in the current Selection. DeprecatedgetSelection is deprecated, please use getSelectedNodes instead. 
get
get
get
get
- getShape Handle(handle): TopologyHandle 
- 
Returns a handle to the corresponding Shape of the specified Topology Element. Parameters- 
handle: TopologyHandleThe Topology Handle. 
 Returns TopologyHandle- The corresponding Shape of the specified Topology Element.
 
- 
get
- getSnapshot Data(snapshotID): { 
 attachmentID: number;
 name: string;
 order: number;
 }
- 
Parameters- 
snapshotID: number
 Returns {
 attachmentID: number;
 name: string;
 order: number;
 }The data of the specified Snapshot. - 
attachmentID: number
- 
name: string
- 
order: number
 DeprecatedgetSnapshotData is deprecated, please use requestSnapshotData instead. 
- 
get
get
- getStatistics(nodeType?, nodeID?, recursive?): Promise<any> 
- 
Traverses the subtree of a given nodeID and collects all statistics (currently only available for AUX-Nodes). Parameters- 
OptionalnodeType: NodeTypeSpecifies the target Node type. 
- 
OptionalnodeID: numberSpecifies the entry point of the subtree traversal (default: 0). 
- 
Optionalrecursive: boolean
 Returns Promise<any>An Object of Type/Count pairs. 
- 
get
- getTopology Type(handle): TopologyType 
- 
Returns the type of the given topology element Parameters- 
handle: TopologyHandleThe TopologyHandle. 
 Returns TopologyTypeThe type of the given topology element 
- 
get
get
getXRMember
- getXRMemberInfo(memberId): XRMemberInfo 
- Experimental- Get the XRMemberInfo for a given XRMember. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns XRMemberInfo- Returns an XRMemberInfo struct containing all relevant infos (memberId, XRCapabilities, sessionMemberData) for the given member. 
- 
getXRMember
- getXRMemberState(memberId): XRMemberState 
- Experimental- Get the runtime state of a given XRMember. - Parameters- 
memberId: numberThe XRMember that the state should be queried from. 
 - Returns XRMemberState- Returns either the member state if the member exist or return undefined if XR is not connected or the memberId does not exist. 
- 
getXRMembers
getXRSession
- getXRSessionState(): XRSessionState 
- Experimental- Get the current XRSessionState. This method can be used to check if the XR session is currently connected. - Returns XRSessionState- Returns the current XRSessionState. 
import
- importConfig(config): void 
- 
Applies the specified set of settings to the context. Parameters- 
config: {
 aaSetting: any;
 additionalCookies: any;
 additionalRequestHeaders: any;
 additionalWSQueryParameters: any;
 applicationIdentifier: any;
 auxModeRecursiveSearch: any;
 auxModeUncolorFacesOnLeave: any;
 backgroundColor: any;
 boosterURL: any;
 cappingEffectEdgeColor: any;
 cappingEffectEnabled: any;
 cappingEffectInnerColor: any;
 cappingGeometryColor: any;
 colorComparisonFirstColor: any;
 colorComparisonMatchingColor: any;
 colorComparisonSecondColor: any;
 colorizeEffect: any;
 contextMenuFunction: any;
 coordSys: any;
 defaultFieldOfView: any;
 defaultQueryLinkDepth: any;
 disableDefaultInteraction: any;
 disableSpecularHighlights: any;
 doubleClickAnimationVolumeScale: any;
 doubleClickTimeWindow: any;
 drawingArrowheadEnd: any;
 drawingArrowheadStart: any;
 drawingColor: any;
 drawingMode: any;
 drawingSize: any;
 dynamicAuxContrastEnabled: any;
 dynamicCOREnabled: any;
 dynamicClippingDistance: any;
 dynamicClippingEnabled: any;
 expandOnViewerSelection: any;
 faceHighlightColor: any;
 faceSelectionColor: any;
 fitViewFactor: any;
 flyNavigationSpeed: any;
 flyToOnDoubleClick: any;
 focusOnDoubleClick: any;
 frontPlaneAxis: any;
 frustumCulling: any;
 gizmoScalingFactor: any;
 gizmosEnabled: any;
 gpuMemoryReleaseFactor: any;
 hoverColor: any;
 hubURL: any;
 initView: any;
 initialFit: any;
 initialStateActivation: any;
 lightingEnvironment: any;
 lineHighlightColor: any;
 lineSelectionColor: any;
 loadRemoteConfigFile: any;
 logLevel: any;
 maxActiveSceneVolumeDiameter: any;
 maxConcurrentDownloads: any;
 maxDynamicClipDistance: any;
 maxGPUMemory: any;
 maxSRCCPUMemory: any;
 measurementAngularTolerance: any;
 measurementMaterialDensities: any;
 mouseInvertZoomingDirection: any;
 navigationMode: any;
 navigationSampling: any;
 navigationSpeedFactor: any;
 navigationSpeedThrottleFactor: any;
 notificationLogLevels: any;
 parentSelectEnabled: any;
 preSelectionColor: any;
 preferXHRWithCredentials: any;
 projectionType: any;
 renderAuxOnTop: any;
 renderMode: any;
 renderSetup: any;
 screenSpaceCoverageCalculationMethod: any;
 selectionColor: any;
 sessionDeviceTags: any;
 sessionForwardUrl: any;
 sessionInteractions: any;
 sessionMemberName: any;
 showAuxOnNavigation: any;
 silhouetteEffect: any;
 silhouetteEffectColor: any;
 silhouetteEffectExclusiveEnabled: any;
 skipSslVerify: any;
 slamProviderType: any;
 smallFeatureCulling: any;
 smallFeaturePixelThreshold: any;
 snapshotContentSelection: any;
 soc: any;
 spacemouseMultiplier: any;
 ssaoEnabled: any;
 taaEnabled: any;
 topoGeometryColor: any;
 topoGeometrySecondaryColor: any;
 topoPointsEnabled: any;
 turntableLowerVerticalLimit: any;
 turntableUpperVerticalLimit: any;
 turntableVerticalLimitsEnabled: any;
 uriMap: any;
 useDevicePixelRatio: any;
 vertexColorsEnabled: any;
 viewPerspective: any;
 webglPreserveDrawingbuffer: any;
 xrEnabled: any;
 }Settings to import - 
aaSetting: any 
- 
additionalCookies: any 
- 
additionalRequest Headers: any 
- 
additionalWSQueryParameters: any 
- 
applicationIdentifier: any 
- 
auxMode Recursive Search: any 
- 
auxMode Uncolor Faces On Leave: any 
- 
backgroundColor: any 
- 
boosterURL: any
- 
cappingEffect Edge Color: any 
- 
cappingEffect Enabled: any 
- 
cappingEffect Inner Color: any 
- 
cappingGeometry Color: any 
- 
colorComparison First Color: any 
- 
colorComparison Matching Color: any 
- 
colorComparison Second Color: any 
- 
colorizeEffect: any 
- 
contextMenu Function: any 
- 
coordSys: any 
- 
defaultField Of View: any 
- 
defaultQuery Link Depth: any 
- 
disableDefault Interaction: any 
- 
disableSpecular Highlights: any 
- 
doubleClick Animation Volume Scale: any 
- 
doubleClick Time Window: any 
- 
drawingArrowhead End: any 
- 
drawingArrowhead Start: any 
- 
drawingColor: any 
- 
drawingMode: any 
- 
drawingSize: any 
- 
dynamicAux Contrast Enabled: any 
- 
dynamicCOREnabled: any
- 
dynamicClipping Distance: any 
- 
dynamicClipping Enabled: any 
- 
expandOn Viewer Selection: any 
- 
faceHighlight Color: any 
- 
faceSelection Color: any 
- 
fitView Factor: any 
- 
flyNavigation Speed: any 
- 
flyTo On Double Click: any 
- 
focusOn Double Click: any 
- 
frontPlane Axis: any 
- 
frustumCulling: any 
- 
gizmoScaling Factor: any 
- 
gizmosEnabled: any 
- 
gpuMemory Release Factor: any 
- 
hoverColor: any 
- 
hubURL: any
- 
initView: any 
- 
initialFit: any 
- 
initialState Activation: any 
- 
lightingEnvironment: any 
- 
lineHighlight Color: any 
- 
lineSelection Color: any 
- 
loadRemote Config File: any 
- 
logLevel: any 
- 
maxActive Scene Volume Diameter: any 
- 
maxConcurrent Downloads: any 
- 
maxDynamic Clip Distance: any 
- 
maxGPUMemory: any
- 
maxSRCCPUMemory: any
- 
measurementAngular Tolerance: any 
- 
measurementMaterial Densities: any 
- 
mouseInvert Zooming Direction: any 
- 
navigationMode: any 
- 
navigationSampling: any 
- 
navigationSpeed Factor: any 
- 
navigationSpeed Throttle Factor: any 
- 
notificationLog Levels: any 
- 
parentSelect Enabled: any 
- 
preSelection Color: any 
- 
preferXHRWithCredentials: any 
- 
projectionType: any 
- 
renderAux On Top: any 
- 
renderMode: any 
- 
renderSetup: any 
- 
screenSpace Coverage Calculation Method: any 
- 
selectionColor: any 
- 
sessionDevice Tags: any 
- 
sessionForward Url: any 
- 
sessionInteractions: any 
- 
sessionMember Name: any 
- 
showAux On Navigation: any 
- 
silhouetteEffect: any 
- 
silhouetteEffect Color: any 
- 
silhouetteEffect Exclusive Enabled: any 
- 
skipSsl Verify: any 
- 
slamProvider Type: any 
- 
smallFeature Culling: any 
- 
smallFeature Pixel Threshold: any 
- 
snapshotContent Selection: any 
- 
soc: any
- 
spacemouseMultiplier: any 
- 
ssaoEnabled: any 
- 
taaEnabled: any 
- 
topoGeometry Color: any 
- 
topoGeometry Secondary Color: any 
- 
topoPoints Enabled: any 
- 
turntableLower Vertical Limit: any 
- 
turntableUpper Vertical Limit: any 
- 
turntableVertical Limits Enabled: any 
- 
uriMap: any 
- 
useDevice Pixel Ratio: any 
- 
vertexColors Enabled: any 
- 
viewPerspective: any 
- 
webglPreserve Drawingbuffer: any 
- 
xrEnabled: any 
 
- 
 Returns void
- 
import
importXRInit
- importXRInitTemplate(memberId, template): Promise<void> 
- Experimental- Imports init template for modeltracking. When using Model tracking, Init templates are captured during the tracking process. This initialization data is linked to previously visited view-points along the traveled camera path. Once the tracking is lost the templates are used to quickly reinitialize from similar view-points without the user having to align the line model with the real object. - Once the init template data is imported. It will stay until enterInitMode with resetInitTemplate set to true is called. - Only supported if the XRMember has the MODELTRACKER capability. - The input data can be aquired via exportXRInitTemplate function - Parameters- 
memberId: numberthe XRMember that the operation should be applied on 
- 
template: string
 - Returns Promise<void>
- 
invert
invert
- invertSelection(silent?): Promise<ChangeSelectionResult> 
- 
Inverts the current Selection. Parameters- 
Optionalsilent: booleanIf set to true, no event will be emitted. 
 Returns Promise<ChangeSelectionResult>
- 
is
is
is
is
is
- isNode Type(nodeID, nodeType): boolean 
- 
Parameters- 
nodeID: number
- 
nodeType: NodeType
 Returns booleanChecks the Node's type for the given Node id. 
- 
is
- isOffline Storage Available(): Promise<boolean> 
- 
Checks if offline storage is currently available which can be used to transfer a session via transferSession. Returns Promise<boolean>
is
is
- isTopology Selected(handle): boolean 
- 
Checks if the specified Topology Element is part of the current selection. Parameters- 
handle: TopologyHandleThe topology element which should be checked if it selected. 
 Returns booleanA boolean value which indicates if the specified Topology Element is part of the current selection or not. 
- 
map
- mapInternal To Original Topology Handles(handles): Promise<OriginalTopologyHandle[]> 
- 
Maps the given webvis internal topology handles to original topology handles. Parameters- 
handles: TopologyHandle[]A list of webvis internal topology handles. 
 Returns Promise<OriginalTopologyHandle[]>Promise<Array<OriginalTopologyHandle|undefined>> - A list of the corresponding original topology handles. 
- 
map
- mapOriginal To Internal Topology Handles(nodeID, handles): Promise<TopologyHandle[]> 
- 
Maps the given original topology handles to webvis internal topology handles. Parameters- 
nodeID: numberThe Node which specifies the Part the topology relates to. 
- 
handles: OriginalTopologyHandle[]A list of original topology handles. 
 Returns Promise<TopologyHandle[]>Promise<Array<TopologyHandle|undefined>> - A list of the corresponding webvis internal topology handles. 
- 
measure
- measureBetween(target0, target1): Promise<BetweenMeasurementResult> 
- 
Measures the distance and if possible the angle between two measurement targets. Parameters- 
target0: MeasurementTargetThe first measurement target. 
- 
target1: MeasurementTargetThe second measurement target. 
 Returns Promise<BetweenMeasurementResult>The result of the Measurement between the two specified targets. 
- 
measure
- measureTangent(topology, point): Promise<TangentMeasurementResult> 
- 
Measures the tangent of an edge at the specified point. Parameters- 
topology: {
 class: TOPOLOGY;
 value: TopologyHandle;
 }The topological target. - 
class: TOPOLOGYDescribes the MeasurementTargetClass of the target. 
- 
value: TopologyHandleDescribes the value of the target depending on the specified class. 
 
- 
- 
point: {
 class: POINT;
 value: [number, number, number];
 }The point target. - 
class: POINTDescribes the MeasurementTargetClass of the target. 
- 
value: [number, number, number]Describes the value of the target depending on the specified class. 
 
- 
 Returns Promise<TangentMeasurementResult>The result of the tangent measurement. 
- 
measure
- measureThickness(topology, point): Promise<ThicknessMeasurementResult> 
- 
Measures the thickness of a shape at the specified point. Parameters- 
topology: {
 class: TOPOLOGY;
 value: TopologyHandle;
 }The topological target. - 
class: TOPOLOGYDescribes the MeasurementTargetClass of the target. 
- 
value: TopologyHandleDescribes the value of the target depending on the specified class. 
 
- 
- 
point: {
 class: POINT;
 value: [number, number, number];
 }The point target. - 
class: POINTDescribes the MeasurementTargetClass of the target. 
- 
value: [number, number, number]Describes the value of the target depending on the specified class. 
 
- 
 Returns Promise<ThicknessMeasurementResult>The result of the thickness measurement. 
- 
perform
process
- processInteraction Input(interactionData): void 
- 
Triggers an interaction on the current active interaction mode. Parameters- 
interactionData: InteractionDataDefinition of the triggered Interaction. 
 Returns void
- 
promote
query
- query(query, nodeID?): Promise<QueryResult>
- 
Executes the query on the specified subtree Parameters- 
query: string | Query
- 
OptionalnodeID: number
 Returns Promise<QueryResult>
- 
read
register
register
- registerFrame Listener(listener): void 
- 
Registers a listener function which get called once per internal update tick. Parameters- 
listener: FrameListenerThe listener to register. 
 Returns void
- 
register
- registerListener<T>(eventTypes, listener, nodeID?, observeSubTree?): number 
- 
Registers the listenerto the node with the matchingnodeIDand returns the id of the listener. TheobserveSubTreeflag allows to observe the whole subtree under the respective node with thelistener. With theeventTypesarray, you can specify the types of events the listener should be reacting on. If an empty array is passed, the listener will react on all event types.Type Parameters- 
T extends WebVisEvent<T> = WebVisEvent
 Parameters- 
eventTypes: EventType[]The kind of events on which the event listener should listen. 
- 
listener: IEventListener<T>The event listener. 
- 
OptionalnodeID: numberThe id of the node on which the event listener should be registered. 
- 
OptionalobserveSubTree: booleanIndicates whether the event listener should also listen to events in all child nodes. This has an effect on NODE_* events only. 
 Returns numberThe id of the event listener. 
- 
remove
- remove(nodeID?, safe?): Promise<RemoveState>
- 
Removes the Node for the given nodeID from the Scene and all related Snapshots. If no nodeID is supplied all Nodes are deleted. Parameters- 
OptionalnodeID: number | number[]The id of the Node that should be removed. 
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the Node is part of one or more Snapshots. 
 Returns Promise<RemoveState>
- 
remove
remove
- removeAnnotation(annotationId, safe?): RemoveState 
- 
Removes the Annotation from the scene and all related Snapshots. Parameters- 
annotationId: numberThe ID of the Annotation. 
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the Annotation is part of one or more Snapshots. 
 Returns RemoveState
- 
remove
- removeAttachment(attachmentID?, safe?): RemoveState 
- 
Removes the Attachment from the scene and all related Snapshots. Parameters- 
OptionalattachmentID: numberSpecifies the attachment object. 
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the Attachment is part of one or more Snapshots. 
 Returns RemoveState
- 
remove
remove
- removeClip Plane(clipPlaneId, safe?): RemoveState 
- 
Removes a clip room with the specified id. Parameters- 
clipPlaneId: numberThe id of the clip room you want to remove. 
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the ClipPlane is part of one or more Snapshots. 
 Returns RemoveState
- 
remove
- removeClipping Room(safe?): RemoveState 
- 
Removes the clip room from the scene and all related Snapshots. Parameters- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the ClipRoom is part of one or more Snapshots. 
 Returns RemoveState
- 
remove
remove
- removeDrawing(drawingId, safe?): RemoveState 
- 
Removes a Drawing with the specified id. If a Drawing is part of a Snapshot the removal will fail with the State REFERENCED_BY_SNAPSHOT Parameters- 
drawingId: numberThe id of the to be removed Drawing. 
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the Drawing is part of one or more Snapshots. 
 Returns RemoveState
- 
remove
- removeDrawing Plane(drawingPlaneId, safe?): RemoveState 
- Experimental- Removes a DrawingPlane with the specified ID. If a DrawingPlane is part of a Snapshot the removal will fail with the State REFERENCED_BY_SNAPSHOT. - Parameters- 
drawingPlaneId: numberThe ID of the Drawing you want to remove. 
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the Drawing is part of one or more Snapshots. 
 - Returns RemoveState
- 
remove
- removeFrom Collection(collectionID, nodeID, recursive?): void 
- 
Removes a node given by nodeID from the collection with id collectionID. If recursive is true, the descendants of the node are also removed. Parameters- 
collectionID: numberSpecifies from which collection the node should be removed 
- 
nodeID: numberSpecifies which node should be removed from the collection 
- 
Optionalrecursive: booleanSpecifies whether the children of the node should be removed from the collection too 
 Returns void
- 
remove
- removeFrom Selection(nodeID, silent?): Promise<ChangeSelectionResult> 
- 
Removes the given nodes from the Selection Parameters- 
nodeID: number | number[]The ID of the Node that should be removed from the current Selection 
- 
Optionalsilent: booleanIf set to true, no event will be emitted. 
 Returns Promise<ChangeSelectionResult>
- 
remove
- removeMeasurement(measurementID, safe?): RemoveState 
- 
Removes the Measurement from the scene and all related Snapshots. Parameters- 
measurementID: number
- 
Optionalsafe: booleanPerforms a safe remove which interrupt the removal process if the Measurement is part of one or more Snapshots. 
 Returns RemoveState
- 
remove
remove
remove
- removeTopology From Selection(handle): Promise<void> 
- 
Removes one or multiple Topology elements to the current selection. Parameters- 
handle: TopologyHandle | TopologyHandle[]A Topology Element or a list of Topology Elements which should be removed from the current selection. 
 Returns Promise<void>
- 
remove
- removeViewer(viewer): void 
- 
Removes a viewer element. Parameters- 
viewer: ViewerAPIThe id of the viewer. 
 Returns void
- 
request
request
- requestAnnotation Data(annotationId): Promise<AnnotationProperties> 
- 
Returns the AnnotationData for the specified Annotation id. Parameters- 
annotationId: numberThe id of the Annotation you want to request the data for. 
 Returns Promise<AnnotationProperties>The requested Annotation data. 
- 
request
request
- requestBox Descriptor(nodeIds): Promise<{ 
 descriptor: TopologyBoxDescriptor;
 type: BOX;
 }>
- 
Returns a Box descriptor by the specified list of Node Ids. Parameters- 
nodeIds: number[]List of Node Ids. 
 Returns Promise<{
 descriptor: TopologyBoxDescriptor;
 type: BOX;
 }>The Box descriptor for the given Node Ids. 
- 
request
- requestClip Plane Data(clipPlaneId): Promise<ClipPlaneProperties> 
- 
Returns the ClipPlaneData for the specified clip plane id. Parameters- 
clipPlaneId: numberThe id of the clip plane you want to request the data for. 
 Returns Promise<ClipPlaneProperties>The requested clip plane data. 
- 
request
- requestClip Room Data(): Promise<ClipRoomProperties> 
- 
Returns the ClipRoomData. Returns Promise<ClipRoomProperties>The requested clip room data. 
request
- requestDrawing Data(drawingId): Promise<DrawingData> 
- 
Returns the DrawingData for the specified Drawing id. Parameters- 
drawingId: numberThe id of the Drawing from which the data is requested. 
 Returns Promise<DrawingData>The requested Drawing data. 
- 
request
request
request
- requestMeasurement Data(measurementID): Promise<MeasurementProperties> 
- 
Returns the MeasurementProperties for the specified Measurement id. Parameters- 
measurementID: numberThe id of the Measurement you want to request the data for. 
 Returns Promise<MeasurementProperties>The requested Measurement properties. 
- 
request
- requestNode Ids By Box Volume(boxVolume, includeOverlappingNodes?, includeDisabledNodes?, forceExpand?, scopeNodeId?): Promise<number[]> 
- 
Returns a List of all Node ids which are included or overlapped by the specified 3D world space Bounding Volume. Parameters- 
boxVolume: BoxVolumeSpecifies the 3D world space Bounding Volume. 
- 
OptionalincludeOverlappingNodes: booleanSpecifies that the result should include Nodes which overlap the specified 3D world space Bounding Volume as well. 
- 
OptionalincludeDisabledNodes: booleanSpecifies that the result should include Nodes which are disabled as well. 
- 
OptionalforceExpand: boolean
- 
OptionalscopeNodeId: numberSpecifies the top one Node id of the subtree to be searched. 
 Returns Promise<number[]>List of all NodeIds which are included or overlapped by the specified 3D world space Bounding Volume. 
- 
request
- requestNode Path Handle Map(paths, scope?): Promise<NodePathHandleMap> 
- 
requestNodePathHandleMap Returns an object mapping from input paths to the respective handles. Parameters- 
paths: string[]{Array<string | NodePathHandle>} The array of node path strings or handles. 
- 
Optionalscope: number{number} [scope=0] nodeID specifying the scope as starting point for the paths 
 Returns Promise<NodePathHandleMap>The resulting object mapping paths to handles 
- 
request
- requestNode Path Strings(handles, scope?, typePriorities?): Promise<string[]> 
- 
requestNodePathStrings Returns string representations for the respective node path handles. Parameters- 
handles: NodePathHandle[]{Array } 
- 
Optionalscope: number{number} nodeID specifying the scope as starting point for the path resolution 
- 
OptionaltypePriorities: NodePathFragmentType[]{Array } Array of priorities to control the fragments for the path string assembly. 
 Returns Promise<string[]>String representation of the node path for the respective scope. 
- 
request
- requestRoot Node Ids(scopeNodeId?, recursive?): Promise<number[]> 
- 
Returns a list of all existing root Node ids below the specified subtree. Parameters- 
OptionalscopeNodeId: numberSpecifies the top one Node id of the subtree to be searched. 
- 
Optionalrecursive: booleanSpecifies if the subtree is traversed recursively. 
 Returns Promise<number[]>A list of root Node ids. 
- 
request
- requestService States(): Promise<Map<ServiceType, ServiceState>> 
- 
Returns Promise<Map<ServiceType, ServiceState>>All current state of all available Services. 
request
- requestSnapshot Data(snapshotID): Promise<void | SnapshotProperties> 
- 
Parameters- 
snapshotID: number
 Returns Promise<void | SnapshotProperties>The data of the specified Snapshot. 
- 
request
- requestSupported Content Types(): Promise<ContentType[]> 
- 
Returns Promise<ContentType[]>All supported data formats. 
request
request
- requestTopology Descriptor(handle): Promise<TopologyDescriptor> 
- 
Returns a detailed description of the Topology Element. Parameters- 
handle: TopologyHandleThe Topology Element. 
 Returns Promise<TopologyDescriptor>The detailed description of the Topological Element. 
- 
request
requestXMember
- requestXMemberCapabilities(memberId): Promise<boolean> 
- Experimental- Execute whatever is necessary to enable XRCapbilities on the given member, e.g. start the camera or forward to the booster. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
resetAR
reset
reset
- resetProperties<T>(nodeID, properties, recursive?): Promise<void> 
- 
Resets the value of the specified properties on the given Node. Type Parameters- 
T extends string
 Parameters- 
nodeID: numberThe id of the Node whose property should be reset. 
- 
properties: T[]List of properties which should be reset. 
- 
Optionalrecursive: booleanIf set to true, the properties are reset recursively. 
 Returns Promise<void>
- 
reset
- resetProperty<T>(nodeID, property, recursive?): Promise<void> 
- 
Resets the value of the property on the Node with the matching id. Type Parameters- 
T extends string
 Parameters- 
nodeID: numberThe id of the Node whose property should be reset. 
- 
property: TProperty which should be reset. 
- 
Optionalrecursive: booleanIf set to true, the properties are reset recursively. 
 Returns Promise<void>
- 
reset
- resetSetting(setting): void 
- 
Resets the value of a setting to the installation default. Parameters- 
setting: ViewerSettingStrings | SettingStringsThe name of the setting that should be reset. 
 Returns void
- 
reset
restore
restore
- restoreSnapshot(snapshotID, options?): Promise<void> 
- 
Restores the Snapshot for the given snapshotID. The settings parameter allows to control the subset of the Snapshot data to be restored. Parameters- 
snapshotID: number
- 
Optionaloptions: SnapshotRestoreOptions
 Returns Promise<void>
- 
search
- searchBy Volume(selectionBox, includeOverlappingNodes, rootNodeID?): Promise<number> 
- 
Finds nodes within the given BoxVolume (created using the createBoxVolume() function). If includeOverlappingNodes is false, only nodes fully contained by the box volume are returned. The rootNodeID specifies the node from which the subtree is searched. Parameters- 
selectionBox: BoxVolume3-dimensional search volume. 
- 
includeOverlappingNodes: booleanSpecifies whether the search result contains only those nodes which lie entirely in the search volume or if overlapping nodes are also included. 
- 
OptionalrootNodeID: numberRestricts the search to a subtree of a node with the given id. 
 Returns Promise<number>A the id of the created collection of nodes that are fitting the given search criteria. 
- 
select
- selectCollection(collectionID, silent?): Promise<void | ChangeSelectionResult> 
- 
Replaces the current Selection with the Nodes from the given Collection. Parameters- 
collectionID: numberThe ID of the Collection. 
- 
Optionalsilent: booleanIf set to true, no event will be emitted. 
 Returns Promise<void | ChangeSelectionResult>
- 
set
set
set
- setInteraction Mode(mode, keepColorCompareActive?): void 
- 
Set the current interaction mode. Parameters- 
mode: string | string[]Specifies the interaction mode you want set. 
- 
OptionalkeepColorCompareActive: booleanSpecifies if the color comparison mode should stay active. (Default: false) 
 Returns voidDeprecatedCalling setInteractionMode with the mode parameter of type string or string[] is deprecated, please use the InteractionMode enum instead. 
- 
- setInteraction Mode(mode, keepColorCompareActive?): void 
- 
Set the current interaction mode. Parameters- 
mode: InteractionModeSpecifies the interaction mode you want set. 
- 
OptionalkeepColorCompareActive: booleanSpecifies if the color comparison mode should stay active. (Default: false) 
 Returns void
- 
set
- setLayer Filter Enabled(name, enabled): SetLayerFilterEnabledResult 
- 
Sets layers to enabled whose names are in the array of names. Parameters- 
name: stringThe name of the LayerFilter 
- 
enabled: booleanThe new enabled state. 
 Returns SetLayerFilterEnabledResult
- 
set
set
- setProperty<T>(nodeID, property, value, silent?): Promise<void> 
- 
Sets the property named property to value on the Node with id nodeID. Type Parameters- 
T extends string
 Parameters- 
nodeID: number | number[]The id of the Node whose property has to be set. 
- 
property: TThe name of the property that has to be set. 
- 
value: PropertyType<T>The new value of the specified property. 
- 
Optionalsilent: booleanThe silent flag indicates that no NODE_CHANGED event is fired. 
 Returns Promise<void>
- 
set
- setSelection(nodeID, silent?): Promise<ChangeSelectionResult> 
- 
Replaces the current Selection with the specified nodes. Parameters- 
nodeID: number | number[]The nodeID(s) to select. 
- 
Optionalsilent: booleanIf set to true, no event will be emitted. 
 Returns Promise<ChangeSelectionResult>
- 
set
- setTopology Property<T>(handle, property, value): Promise<PromiseSettledResult<void>[]> 
- 
Sets a Property of one or multiple Topology Elements. Type Parameters- 
T extends keyof TopologyPropertyTypeMap
 Parameters- 
handle: TopologyHandle | TopologyHandle[]
- 
property: TThe property which should be set. 
- 
value: TopologyPropertyTypeMap[T]
 Returns Promise<PromiseSettledResult<void>[]>
- 
set
- setTopology Selection(handle): Promise<void> 
- 
Selects the specified Topology Elements. Parameters- 
handle: TopologyHandle | TopologyHandle[]A Topology Element or a list of Topology Elements to select. 
 Returns Promise<void>
- 
set
setXRFusion
- setXRFusionMode(memberId, xrFusionMode): Promise<boolean> 
- Experimental- Sets the passed fusion mode for the given XRMember. The fusion mode determines which inputs will be used for the final visualization. - Parameters- 
memberId: numberthe XRMember that the operation should be applied on 
- 
xrFusionMode: XRFusionModethe fusion mode that should be set 
 - Returns Promise<boolean>- returns a Promise which reports whether the operation was successful or not 
- 
setXRMember
- setXRMemberSettings(memberId, settings): Promise<boolean> 
- Experimental- This will change the XRMemberSettings for the specified XRMember. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
- 
settings: XRMemberSettingsThe quality threshold for the modeltracker must be between 0 and 1 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
show
shutdown
startAR
- startAR(): Promise<boolean>
- 
Returns Promise<boolean>returns true if starting was successfull or false if it could not start AR DeprecatedStart AR. Projects the camera stream in the background and starts searching for the given reference. The reference is defined by setting the realproperty on the particular node via the webvis API. E.g. webvis.setProperty(0, pluginAPI.realProperty, pluginAPI.realState.Enabled) 
startXRMember
- startXRMemberSpectate(memberId): Promise<boolean> 
- Experimental- Puts the image stream in the background of the renderer. It will also trigger a XRMemberStateChangedEvent event with FOLLOWING set to true. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
stopAR
stopXRMember
- stopXRMemberSpectate(memberId): Promise<boolean> 
- Experimental- Stops the image stream in the background of the renderer. It will also trigger a XRMemberStateChangedEvent event with FOLLOWING set to false. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
store
- storeSession(offline?, progressCallback?): Promise<string | void> 
- 
Temporarily stores the Session in the infrastructure and returns an access handle. Parameters- 
Optionaloffline: boolean
- 
OptionalprogressCallback: StoreSessionProgressCallback
 Returns Promise<string | void>The access handle of the stored Session. 
- 
transfer
- transferSession(progressCallback?): Promise<string | void> 
- Experimental- Temporarily transfers the Session to a local storage and returns an access handle. - Parameters- 
OptionalprogressCallback: StoreSessionProgressCallbackCan be used to track the progress of the transfer. 
 - Returns Promise<string | void>- The access handle of the transferred Session. 
- 
unfixateXRMember
- unfixateXRMember(memberId): Promise<boolean>
- Experimental- Unfixates the model. The model will move with the device. It will also trigger a XRMemberStateChangedEvent event with FIXATED set to false. - Parameters- 
memberId: numberThe XRMember that the operation should be applied on. 
 - Returns Promise<boolean>- Returns a Promise which reports whether the operation was successful or not. 
- 
unregister
- unregisterFrame Listener(listener): void 
- 
Unregisters a previously registered listener via registerFrameListener. Parameters- 
listener: FrameListenerThe listener to unregister. 
 Returns void
- 
unregister
wait
- waitFor(state): Promise<void> 
- 
Register a callback to a specific state. The callback is executed once when the state is reached. If webVis is already in that state the callback is triggered immediately. Parameters- 
state: ContextStateThe state for which a callback is registered 
 Returns Promise<void>A promise which throws an error if the requested state is invalid The following states are allowed as target init- Is reached when webVis is fully configured and set up.
 resourceStateUpdated- Is reached when there is state information available for all resources (This information can also be "still transcoding").
 resourceProcessed- This is triggered when all resources are done transcoding.
 renderingFinished- This is triggered when webVis is done with rendering. So no more image changes are imminent.
- 
The ContextAPI combines all functionality which can be applied on the WebvisContext.