.. role:: ts-api-decorator

############################
MeasureLineLineAngleOperator
############################

.. js:module:: Operators.Measure
   :noindex:

.. container:: ts-api-section

   .. js:class:: 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.



.. container:: api-index-section

   .. rubric:: Constructors

   .. rst-class:: api-index-list-item api-kind-constructor api-parent-kind-class

   * :js:meth:`~Operators.Measure.MeasureLineLineAngleOperator.constructor`



.. container:: api-index-section

   .. rubric:: Methods

   .. rst-class:: api-index-list-item api-kind-method api-parent-kind-class

   * :js:meth:`~Operators.Measure.MeasureLineLineAngleOperator.addMapping`
   * :js:meth:`~Operators.Measure.MeasureLineLineAngleOperator.clearMapping`
   * :js:meth:`~Operators.Measure.MeasureLineLineAngleOperator.onActivate`
   * :js:meth:`~Operators.Measure.MeasureLineLineAngleOperator.onKeyDown`
   * :js:meth:`~Operators.Measure.MeasureLineLineAngleOperator.setMapping`





------------

Constructors
============

.. container:: ts-api-section

   .. js:function:: MeasureLineLineAngleOperator.constructor( viewer, view, measureManager)

      :param viewer: None
      :type viewer: WebViewer
      :param view: None
      :type view: View
      :param measureManager: None
      :type measureManager: MeasureManager


      :rtype: MeasureLineLineAngleOperator



Methods
=======

.. rst-class:: ts-api-section

addMapping
----------

.. js:method:: MeasureLineLineAngleOperator.addMapping( button, modifier)

   :param button: None
   :type button: Button
   :param modifier: None
   :type modifier: KeyModifiers


   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.


   :rtype: void

.. rst-class:: ts-api-section

clearMapping
------------

.. js:method:: MeasureLineLineAngleOperator.clearMapping()



   Clears any button and key modifier mappings for the operator.


   :rtype: void

.. rst-class:: ts-api-section

onActivate
----------

.. js:method:: MeasureLineLineAngleOperator.onActivate()



   :rtype: void

.. rst-class:: ts-api-section

onKeyDown
---------

.. js:method:: MeasureLineLineAngleOperator.onKeyDown( event)

   :param event: None
   :type event: KeyInputEvent


   :rtype: void

.. rst-class:: ts-api-section

setMapping
----------

.. js:method:: MeasureLineLineAngleOperator.setMapping( button, modifier)

   :param button: None
   :type button: Button
   :param modifier: None
   :type modifier: KeyModifiers


   Sets the button and key modifier mapping for the operator.


   :rtype: void

