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

MeasureAngle

Extends:

ToolMeasure → MeasureAngle

A used to measure the angles on the model surface. 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 resourecs in this object.

public

Get the current measured angle in radians.

public

Is the current measurement unit radians now?

public

useRadians(enabled: boolean)

Use radians or degrees.

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 destory() source

Delete all resourecs in this object.

public getAngle() source

Get the current measured angle in radians.

public isRadians(): boolean source

Is the current measurement unit radians now?

Return:

boolean

True for using radians now.

public useRadians(enabled: boolean) source

Use radians or degrees.

Params:

NameTypeAttributeDescription
enabled boolean

To use radians.