Type Alias: Annotation
Annotation:
object
Type declaration
annotationUID?
optionalannotationUID:string
A unique identifier for this annotation
autoGenerated?
optionalautoGenerated:boolean
If the annotation is auto generated from other annotations
childAnnotationUIDs?
optionalchildAnnotationUIDs:string[]
Array that contains all child annotation UID
An annotation may have one or more child annotations when it is contour and have some holes in it.
data
data:
object
Data for annotation, Derivatives need to define their own data types.
Index Signature
[key: string]: unknown
data.cachedStats?
optionalcachedStats:Record<string,unknown>
Cached Annotation statistics which is specific to the tool
data.handles?
optionalhandles:object
Annotation handles that are grabbable for manipulation
Index Signature
[key: string]: unknown
data.handles.activeHandleIndex?
optionalactiveHandleIndex:number|null
index of the active handle being manipulated
data.handles.points?
optionalpoints:Types.Point3[]
world location of the handles in the space
data.handles.textBox?
optionaltextBox:object
annotation text box information
data.handles.textBox.hasMoved?
optionalhasMoved:boolean
whether the text box has moved
data.handles.textBox.worldBoundingBox?
optionalworldBoundingBox:object
text box bounding box information
data.handles.textBox.worldBoundingBox.bottomLeft
bottomLeft:
Types.Point3
Bottom left location of the text box in the world space
data.handles.textBox.worldBoundingBox.bottomRight
bottomRight:
Types.Point3
Bottom right location of the text box in the world space
data.handles.textBox.worldBoundingBox.topLeft
topLeft:
Types.Point3
Top left location of the text box in the world space
data.handles.textBox.worldBoundingBox.topRight
topRight:
Types.Point3
Top right location of the text box in the world space
data.handles.textBox.worldPosition?
optionalworldPosition:Types.Point3
the world location of the text box
highlighted?
optionalhighlighted:boolean
If the annotation is being hovered over and is highlighted
interpolationUID?
optionalinterpolationUID:string
The interpolationUID, to match up annotations getting interpolated
invalidated?
optionalinvalidated:boolean
Has annotation data been invalidated (e.g., as a result of mouse interactions)
isLocked?
optionalisLocked:boolean
If the annotation is locked for manipulation
isSelected?
optionalisSelected:boolean
If the annotation is selected
isVisible?
optionalisVisible:boolean
If the annotation is visible for manipulation
metadata
metadata:
Types.ViewReference&object
Metadata for annotation
Type declaration
cameraPosition?
optionalcameraPosition:Types.Point3
The position of the camera in world space.
toolName
toolName:
string
The registered name of the tool
viewUp?
optionalviewUp:Types.Point3
The viewUp for the view position
parentAnnotationUID?
optionalparentAnnotationUID:string
Parent annotation UID
An annotation may have a parent annotation when it is, for example, a hole inside a contour.