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

constructor

Communicator.Operator.MeasureLineLineAngleOperator.constructor(viewer, measureManager)
Arguments
  • viewer (Communicator.WebViewer()) –

  • measureManager (Communicator.MeasureManager()) –

Return type

Communicator.Operator.MeasureLineLineAngleOperator

Methods

addMapping

Communicator.Operator.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
  • button (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void

clearMapping

Communicator.Operator.MeasureLineLineAngleOperator.clearMapping()

Clears any button and key modifier mappings for the operator.

Return type

void

onActivate

Communicator.Operator.MeasureLineLineAngleOperator.onActivate()
Return type

void

onDeactivate

Communicator.Operator.MeasureLineLineAngleOperator.onDeactivate()
Return type

void

onKeyDown

Communicator.Operator.MeasureLineLineAngleOperator.onKeyDown(event)
Arguments
  • event (Communicator.Event.KeyInputEvent()) –

Return type

void

onMouseMove

Communicator.Operator.MeasureLineLineAngleOperator.onMouseMove(event)
Arguments
  • event (Communicator.Event.MouseInputEvent()) –

Return type

Promise[void]

onMouseUp

Communicator.Operator.MeasureLineLineAngleOperator.onMouseUp(event)
Arguments
  • event (Communicator.Event.MouseInputEvent()) –

Return type

Promise[void]

setHandled

Communicator.Operator.MeasureLineLineAngleOperator.setHandled()
Return type

boolean

setMapping

Communicator.Operator.MeasureLineLineAngleOperator.setMapping(button, modifier)

Sets the button and key modifier mapping for the operator.

Arguments
  • button (Communicator.Button()) –

  • modifier (Communicator.KeyModifiers()) –

Return type

void