Static ReadonlyMEASURE_Identifies the "3D Measurement" measure technique.
Static ReadonlyMEASURE_Identifies the "DEM Intersection" measure technique.
Static ReadonlyMEASURE_Identifies the "Floating Mark" measure technique.
Static ReadonlyMEASURE_Identifies the "Forward Intersection" measure technique.
Static ReadonlyMEASURE_Identifies the "Ground Surface Initersection" measure technique.
Static ReadonlyMEASURE_Identifies the "Mesh Intersection" measure technique.
Static ReadonlyMEASURE_Identifies the "Closest point" measure technique.
Static ReadonlyMEASURE_Identifies the "Flat Surface Intersection" measure technique.
Static ReadonlyMEASURE_Identifies the "Ridges & Corners Intersection" measure technique.
Static ReadonlyMEASURE_Identifies the "Reference Planes Intersection" measure technique.
Class ViewerActions aims to document the viewer actions that can be triggered using the Viewer3DM.doAction() function. Availability of these actions might change over time. All actions described here can be triggered by passing a single string argument.
Start a measurement
To start measurement, you must first know the code of the measurement mode you want to start.
Use these steps to determine the code of a measurement mode :
Viewer3DM.onMeasureStateChangedsignal.modeproperty of theMeasureStateinstance provided as payload to theViewer3DM.onMeasureStateChangedsignal handler.Pass this string as first argument :
startMeasure:<mode>where<code>is the measurement mode.Clear a measurement
Pass this string :
clearMeasure.Stop current measurement
Pass this string :
stopMeasure.Set the measurement technique
Pass this string :
setSetting:measureTechnique:<technique>.Replace
<technique>by one of the constants starting withMEASURE_TECHNIQUE_.Example :
doAction("setSetting:measureTechnique:4")will set the measure technique to forward intersection.Start Overlay Object actions
Start the overlay object select function : pass this string
startOverlayObjectSelect.Listening to the
onOverlayObjectSelectedsignal allows the developer to know when an object has been selected.Edit the selected overlay object : pass this string
startOverlayObjectEdit.Delete the selected overlay object : pass this string
startOverlayObjectDelete.Hide visibility of the sidebar
Pass this string :
setSetting:sidebarVisible:falseSet position of the main sidebar
Pass this string :
setSetting:sidebarPosition:rightPossible values are 'left' or 'right'.
Toggle fullscreen
Pass this string :
toggleFullscreenEnter or exit fullscreen mode.
ContextShare Reality Data : Setup connection parameters
Using actions, ContextShare reality data resources can also be opened or closed in an open workspace.
Before opening, connection parameters need to be set :
Pass this string :
setContextShareServiceProvide the following arguments :
() => Promise<string>.When providing a token string, and the token has a short life-span, this action should be repeated before the token expires.
Example:
doAction("setContextShareService",AList.fromArray([serviceURL,token]))(where both serviceURL and token are strings).Example2:
doAction("setContextShareService",AList.fromArray([serviceURL,getAccessToken]))(where getAccessToken is a function returning a Promise to a string).ContextShare Reality Data : Open a Resource
Pass this string :
openContextShareResourceProvide the following arguments :
ContextShare Reality Data : Close a Resource
Pass this string :
closeContextShareResourceProvide the following arguments :