Manual Reference Source
import MeasureLineFan from 'modelo3d/doc/View/tool/MeasureLineFan.js'
public class | source

MeasureLineFan

Extends:

ToolMeasure → MeasureLineFan

A tool the measure distance between a fixed point to other points on the model surface. Users can reset the current measurement by clicking the mouse right button. Users can press "Esc/Enter" to stop the current measurement. 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.

Constructor Summary

Public Constructor
public

Constructor of the class

Method Summary

Public Methods
public

Delete all resources in the measure tool

public

Get the current measured distance.

Inherited Summary

From class Tool
public

addInput(input: *)

Add input to the tool

public

Destroy the tool and release all internal resources

public
public

setEnabled(enabled: boolean)

Enable/Disable the tool

From class Measure
public

Delete all resources in the measure tool

public

Get the length unit

public

setEnabled(enabled: boolean)

Enable/Diable the measure tool.

public

Set the line color of the measure tool.

public

Enable/Disable snapping.

public

setUnit(unit: string)

Set the length unit

Public Constructors

public constructor(viewer: Viewer3D) source

Constructor of the class

Override:

Measure#constructor

Params:

NameTypeAttributeDescription
viewer Viewer3D

The Viewer3D object

Public Methods

public destroy() source

Delete all resources in the measure tool

Override:

Measure#destroy

public getPerimeter() source

Get the current measured distance.