Members
colour :string|undefined
The color: for example 'green', '#00ff00' or 'rgb(0,255,0)'.
- string |
undefined
- Source
id :string
The ID.
- string
- Source
labelPosition :Point2D|undefined
Label position. If undefined, the default shape label position will be used.
- Point2D |
undefined
- Source
mathShape :object
The mathematical shape.
- object
- Source
planeOrigin :Point3D|undefined
The plane origin, the 3D position of index [0, 0, k].
- Point3D |
undefined
- Source
planePoints :Array.<Point3D>|undefined
A couple of points that help define the annotation plane.
- Array.<Point3D> |
undefined
- Source
quantification :object|undefined
Annotation quantification.
- object |
undefined
- Source
referencePoints :Array.<Point2D>|undefined
Additional points used to define the annotation.
- Array.<Point2D> |
undefined
- Source
referenceSopUID :string
The reference image SOP UID.
- string
- Source
textExpr :string|undefined
Text expression. Can contain variables surrounded with '{}' that will be extracted from the quantification object.
- string |
undefined
- Source
Methods
getCentroid() → {Point|undefined}
Get the centroid of the math shape.
- Source
The 3D centroid point.
- Type:
- Point |
undefined
getFactory() → {object}
Get the math shape associated draw factory.
- Source
The factory.
- Type:
- object
getOrientationName() → {string|undefined}
Get the orientation name for this annotation.
- Source
The orientation name, undefined if same as reference data.
- Type:
- string |
undefined
getText() → {string}
Get the annotation label text by applying the text expression on the current quantification.
- Source
The resulting text.
- Type:
- string
init(viewController)
Initialise the annotation.
Name | Type | Description |
---|---|---|
viewController | ViewController | The associated view controller. |
- Source
isCompatibleView(planeHelper) → {boolean}
Check if an input view is compatible with the annotation.
Name | Type | Description |
---|---|---|
planeHelper | PlaneHelper | The input view to check. |
- Source
True if compatible view.
- Type:
- boolean
setTextExpr(labelText)
Set the annotation text expression.
Name | Type | Description |
---|---|---|
labelText | Object.<string, string> | The list of label texts indexed by modality. |
- Source
setViewController(viewController)
Set the associated view controller if it is compatible.
Name | Type | Description |
---|---|---|
viewController | ViewController | The view controller. |
- Source
updateQuantification()
Update the annotation quantification.
- Source