A tool use to measure the area on model surface. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement.
Signature:
export default class MeasureArea extends Measure
Extends: Measure
Notice that we can not enable multiple measure tools at the same time. Before a new tool being enabled, the old tool must be disabled first.
Moreover, the measurement tools require mouse input and mouse input should be added to the viewer before the tool.
*
var ruler = new Modelo.View.Tool.MeasureArea(viewer);
viewer.addTool(ruler);
Constructor | Description |
---|---|
(constructor)(viewer) | Constructs a new instance of the MeasureArea class |
Method | Description |
---|---|
setEnabled(enabled) | Enable the tool. |