Should be considered private, only the Viewer3d will create an instance
Add a distance measurement programmatically, for example a measurement that was stored in a database earlier
A unique id that can be used to reference this measurement later. The user is responsible to make sure the id's of all active measurements are unique
The first coordinate in 3D space
The second coordinate in 3D space
Optionalnormal: vec3The normal that was used on the first coordinate, this is not really used anywhere and can be left empty
Optionalconstrain: falseWhether the original measurement was constrained, also not used anywhere to optional
The DistanceMeasurement object
Add a new listener, a listener can have many methods implemented, but none of them are required
Add a path measurement programmatically, for example a measurement that was stored in a database earlier
A unique id that can be used to reference this measurement later. The user is responsible to make sure the id's of all active measurements are unique
An array of coordinates in 3D space
Optionalnormal: vec3The normal that was used on the first coordinate, this is not really used anywhere and can be left empty
Optionalconstrain: booleanWhether the original measurement was constrained, also not used anywhere to optional
The PathMeasurement object
Remove all existing measurement listeners
Get the active measurement
The currently active measurement (being constructed), or null when no measurement is active
The currently hovered Measurement, null if no measurement is being hovered over
Get the Measurement object for the given id
the Id of the measurement, must be a number (int)
The currently selected Measurement, null if no measurement is selected
Whether a measurement is currently active (being constructed)
Remove all the measurements
Remove a measurement by its id
The unique if of the measurement
Programmatically set the given measurement to be blurred. This will be reflected in 3D View. Keep in mind that this will trigger any listeners (for blurring measurements)
Programmatically set the given measurement to be the "hovered" measurement. This will be reflected in 3D View and any currently "hovered" measurement will be automatically blurred. Keep in mind that this will trigger any listeners (both for blurring any current measurement and for hovering the new measurement)
Programmatically set the given measurement to be the selected measurement. This will be reflected in 3D View and any currently selected measurement will be automatically unselected. Keep in mind that this will trigger any listeners (both for unselecting any current measurement and for selecting the new measurement), depending on the triggerListeners parameter.
Optionalmeasurement: MeasurementThe measurement that you want to select. You can also pass null to unselect the currently selected measurement
OptionaltriggerListeners: booleanIndicate whether listeners should be called, the default value for this optional parameter = true. Regardless of the setting, listeners are only ever called when there is an actual change in selection
Start a new distance measurement
Optionalconstrain: booleanWhether this measurement should be constrained (perpendiculair to the starting face)
A reference to the started DistanceMeasurement
Start a new point measurement. A point measurement add's a label to a vertex
A reference to the started PointMeasurement
Stops the currently active measurement and removes it
All measuring related methods are available on this class. Generally the Viewer3d has a reference to an instance of this class. There can only be one measurement "active" at a time. A measurement that is "active" is still being constructed by the user. When an active measurement is being "finished" it will stop being editable.