# MeasureManager

class `MeasureManager`()

  This class provides an interface to measurement management related functions of the viewer.

  ## Index

  Accessors

  - `viewer`

  Methods

  - `addMeasurement`
  - `exportMarkup`
  - `finalizeMeasurement`
  - `getAllMeasurements`
  - `getMeasurementColor`
  - `getMeasurementEdgeColor`
  - `loadData`
  - `removeAllMeasurements`
  - `removeLastMeasurement`
  - `removeMeasurement`
  - `setMeasurementColor`
  - `setMeasurementEdgeColor`

## Accessors

`MeasureManager.``viewer`()
  get viewer(): `IWebViewer`

  Returns: `IWebViewer`

## Methods

`MeasureManager.``addMeasurement`()
  addMeasurement(measureItem: `MeasureMarkup`): string

  Adds a new Measurement to the Measure Manager

  Parameters

  > measureItem: `MeasureMarkup`

  Returns: string

`MeasureManager.``exportMarkup`()
  exportMarkup(): object[]

  Returns: object[]

  > JSON Array with measurement markup

`MeasureManager.``finalizeMeasurement`()
  finalizeMeasurement(measureItem: `MeasureMarkup`): void

  Triggers a measurementCreated callback

  Parameters

  > measureItem: `MeasureMarkup`

  Returns: void

`MeasureManager.``getAllMeasurements`()
  getAllMeasurements(): `MeasureMarkup`[]

  Return an array of measurement items.

  Returns: `MeasureMarkup`[]

  > array of all measurement items.

`MeasureManager.``getMeasurementColor`()
  getMeasurementColor(): `Color`

  Gets the current measurement color.

  Returns: `Color`

  > color current measurement color.

`MeasureManager.``getMeasurementEdgeColor`()
  getMeasurementEdgeColor(): `Color`

  Gets the current measurement edge color.

  Returns: `Color`

  > color current measurement edge color.

`MeasureManager.``loadData`()
  loadData(measurementDataJson: any[]): Promise

  Loads JSON markup data

  Parameters

  > measurementDataJson: any[]

  Returns: Promise

`MeasureManager.``removeAllMeasurements`()
  removeAllMeasurements(): void

  Removes all measurement items.

  Returns: void

`MeasureManager.``removeLastMeasurement`()
  removeLastMeasurement(): void

  Removes the most recently added measurement item.

  Returns: void

`MeasureManager.``removeMeasurement`()
  removeMeasurement(measureItem: `MeasureMarkup`): void

  Removes an existing measurement item.

  Parameters

  > measureItem: `MeasureMarkup`

  Returns: void

`MeasureManager.``setMeasurementColor`()
  setMeasurementColor(color: `Color`): void

  Sets the current measurement color.

  Parameters

  > color: `Color`

  > > the measurement color to set.

  Returns: void

`MeasureManager.``setMeasurementEdgeColor`()
  setMeasurementEdgeColor(color: `Color`): void

  Sets the current measurement edge color.

  Parameters

  > color: `Color`

  > > the measurement edge color to set.

  Returns: void

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...