Home > @modelo.io/api > Measure

Measure class

The base class of all Modelo.View.Tool.MeasureXXX.

Signature:

export default abstract class Measure extends Tool 

Constructors

ConstructorDescription
(constructor)(name, viewer)Constructs a new instance of the Measure class

Methods

MethodDescription
destroy()Delete all resources in the measure tool
getUnit()Get the length unit
setEnabled(enabled)Enable/Diable the measure tool.
setLineColor(color)Set the line color of the measure tool.
setSnappingEnabled(enabled)Enable/Disable snapping.
setUnit(unit)Set the length unit