Type Alias: Annotation
Annotation:
object
Defines the basic annotation type. This SHOULD be an interface, but typescript doesn't properly handle extending interfaces.
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:
AnnotationData
Data for annotation, Derivatives need to define their own data types.
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?
optionalmetadata:AnnotationMetadata
Metadata for annotation. Optional for any type, but required for measurements
parentAnnotationUID?
optionalparentAnnotationUID:string
Parent annotation UID
An annotation may have a parent annotation when it is, for example, a hole inside a contour.
predecessorImageId?
optionalpredecessorImageId:string
The predecessorImageId is the image id this instance object was loaded from. It is the predecessor since the current annotation state may not reflect the current state and this object is in fact not the loaded object.
This can be set to distinguish annotation sources externally to CS3D.