MeasureLineLineAngleOperator

class Operators.Measure.MeasureLineLineAngleOperator()

This operator allows you to measure the angle between two lines. The measured angle can be between 0 - 180 degrees. Click to add points to create the lines. A cursor will show where the next point will be placed. The operator will perform vertex snapping by default. Holding down the alt key will disable this feature. The first point placed is the common point between the lines. The second and third points placed create two lines using the first point. After the third point has been placed, the measurement will be finalized, and the angle between the two lines will be displayed. If a measurement is currently being created, pressing the Escape key will discard it, otherwise the last created measurement will be discarded.

Constructors

Operators.Measure.MeasureLineLineAngleOperator.constructor()
MeasureLineLineAngleOperator(viewer: IWebViewer, view: IView, measureManager: MeasureManager): MeasureLineLineAngleOperator

Parameters

viewer: IWebViewer

view: IView

measureManager: MeasureManager

Returns: MeasureLineLineAngleOperator

Methods

Operators.Measure.MeasureLineLineAngleOperator.addMapping()

inherited

addMapping(button: Button, modifier: KeyModifiers?): void

Adds a button and key modifier mapping for the operator. If no mapping is provided, all combinations are considered valid. All mappings require a mouse button, but a key modifier is optional.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void

Operators.Measure.MeasureLineLineAngleOperator.clearMapping()

inherited

clearMapping(): void

Clears any button and key modifier mappings for the operator.

Returns: void

Operators.Measure.MeasureLineLineAngleOperator.onActivate()
onActivate(): void

Returns: void

Operators.Measure.MeasureLineLineAngleOperator.onKeyDown()
onKeyDown(event: KeyInputEvent): void

Parameters

Returns: void

Operators.Measure.MeasureLineLineAngleOperator.setMapping()

inherited

setMapping(button: Button, modifier: KeyModifiers?): void

Sets the button and key modifier mapping for the operator.

Parameters

button: Button

modifier: KeyModifiers = KeyModifiers.None

Returns: void