MeasureLineLineAngleOperator

class Communicator.Operator.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


Constructors

MeasureLineLineAngleOperator.constructor(viewer, measureManager)
Arguments
Return type

MeasureLineLineAngleOperator()

Methods

addMapping

MeasureLineLineAngleOperator.addMapping(button[, modifier])

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.

Arguments
Return type

void

clearMapping

MeasureLineLineAngleOperator.clearMapping()

Clears any button and key modifier mappings for the operator.

Return type

void

onActivate

MeasureLineLineAngleOperator.onActivate()
Return type

void

onDeactivate

MeasureLineLineAngleOperator.onDeactivate()
Return type

void

onKeyDown

MeasureLineLineAngleOperator.onKeyDown(event)
Arguments
Return type

void

onMouseMove

MeasureLineLineAngleOperator.onMouseMove(event)
Arguments
Return type

Promise <void>

onMouseUp

MeasureLineLineAngleOperator.onMouseUp(event)
Arguments
Return type

Promise <void>

setHandled

MeasureLineLineAngleOperator.setHandled()
Return type

boolean

setMapping

MeasureLineLineAngleOperator.setMapping(button[, modifier])

Sets the button and key modifier mapping for the operator.

Arguments
Return type

void