MeasurementsTool
This extension provides basic configurable measurement capabilities. The tool is autonomous, and is able to create measurements on it’s own.
This extension requires and active CameraController extension implementation.
Accessors
activeMeasurement
Gets the currently ongoing measurement. Null if there is none.
Returns: Measurement
enabled
Enables/disables the extension.
Returns: boolean
options
Gets and sets the extension options.
Returns: MeasurementOptions
selectedMeasurement
Gets the currently selected measurement. Null if there is none.
Returns: Measurement
Methods
clearMeasurements
Removes all measurements, including finished or ongoing now.
Returns: void
fromMeasurementData
Programatically adds a measurements.
Currently only PointToPoint measurements can pe programatically added
Parameters
- startPoint: Vector3
- endPoint: Vector3
Returns: void
removeMeasurement
Removes any currently ongoing measurements.
Returns: void
Typedefs
Measurement
Abstract class for all measurement types.
MeasurementOptions
The options for newly created measurements.
- visible: If the measurements are visible
- optional type: Current measurement type to create
- optional vertexSnap: Should the cursor snap to the nearest vertex
- optional units: The measurement units
- optional precision: The number of decimals to be displayed
- optional chain: Automatically connects last measurement with the new one
MeasurementType
Measurement types.
Constants
DefaultMeasurementsOptions
The default extension options.