AnnotationAPI

Description

These functions allow the management of Annotations
changeAnnotation(annotationID, label, visible, anchorPosition, labelPosition, active, transform)
Arguments
  • annotationID (number()) –

  • label (string()) – Optional

  • visible (boolean()) – Optional

  • anchorPosition (Float32Array|Array) – Optional

  • labelPosition (Float32Array|Array) – Optional

  • active (boolean()) – Optional

  • transform (Float32Array|Array) – Optional

Returns

void

createAnnotation(nodeID, label, visible, anchorPosition, labelOffset)
Arguments
  • nodeID (number()) –

  • label (string()) –

  • visible (boolean()) – Optional

  • anchorPosition (Float32Array|Array) – Optional

  • labelOffset (Float32Array|Array) – Optional

Returns

number

getAnnotationData(annotationID)
Arguments
  • annotationID (number()) –

Returns

IAnnotationData

getAnnotations()
Returns the ids of all available annotations
Returns

Array<number> – The ids of all available annotations

removeAnnotation(annontationID)
Arguments
  • annontationID (number()) –

Returns

void