Class ViewerActions aims to document some viewer actions that can be triggered using the Viewer3DM.doAction() function.
Availability of these actions is not guaranteed and can vary over time.
All actions described here can be triggered by passing a single string argument.
Pass this string : setSetting:measureTechnique:<technique>.
The constants defined on this class starting with the prefix MEASURE_TECHNIQUE_, can be used as values for <technique>.
Class ViewerActions aims to document some viewer actions that can be triggered using the
Viewer3DM.doAction()
function. Availability of these actions is not guaranteed and can vary 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.onMeasureStateChanged
signal.mode
property of theMeasureState
instance provided as payload to theViewer3DM.onMeasureStateChanged
signal 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>
.The constants defined on this class starting with the prefix
MEASURE_TECHNIQUE_
, can be used as values for<technique>
.