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


Constructors

MeasureLineLineAngleOperator.constructor(viewer, view, measureManager)
Arguments:
  • viewer (IWebViewer()) – None
  • view (IView()) – None
  • measureManager (MeasureManager()) – None
Return type:

MeasureLineLineAngleOperator

Methods

addMapping

MeasureLineLineAngleOperator.addMapping(button, modifier)
Arguments:
  • button (Button()) – None
  • modifier (KeyModifiers()) – None

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.

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

onKeyDown

MeasureLineLineAngleOperator.onKeyDown(event)
Arguments:
  • event (KeyInputEvent()) – None
Return type:

void

setMapping

MeasureLineLineAngleOperator.setMapping(button, modifier)
Arguments:
  • button (Button()) – None
  • modifier (KeyModifiers()) – None

Sets the button and key modifier mapping for the operator.

Return type:void