Types
Index
Namespaces
Interfaces
Type Aliases
- Annotation
- AnnotationHandle
- AnnotationState
- Annotations
- BoundsIJK
- Color
- ColorLUT
- ContourSegmentationData
- FloodFillGetter
- FloodFillOptions
- FloodFillResult
- FrameOfReferenceSpecificAnnotations
- IDistance
- IPoints
- IToolBinding
- IToolClassReference
- ITouchPoints
- InteractionTypes
- JumpToSliceOptions
- PlanarBoundingBox
- PublicToolProps
- RepresentationConfig
- RepresentationPublicInput
- SVGCursorDescriptor
- SVGDrawingHelper
- SVGPoint
- ScrollOptions
- Segmentation
- SegmentationRepresentationConfig
- SegmentationRepresentationData
- SegmentationState
- SetToolBindingsType
- TextBoxHandle
- ToolGroupSpecificLabelmapRepresentation
- ToolGroupSpecificRepresentation
- ToolGroupSpecificRepresentationState
- ToolHandle
- ToolOptionsType
- ToolProps
Namespaces
AnnotationStyle
AnnotationStyle
StyleConfig
Type declaration
optionalannotations?: {}
[annotationUID string]: AnnotationStyle
default: ToolStyleConfig
optionaltoolGroups?: {}
[toolGroupId string]: ToolStyleConfig
optionalviewports?: {}
[viewportId string]: ToolStyleConfig
StyleSpecifier
Type declaration
optionalannotationUID?: string
optionaltoolGroupId?: string
optionaltoolName?: string
optionalviewportId?: string
ToolStyleConfig
Type declaration
[toolName string]: AnnotationStyle
optionalglobal?: AnnotationStyle
CINETypes
ToolData
frameTimeVector
framesPerSecond
ignoreFrameTimeVector
intervalId
lastFrameTimeStamp
loop
reverse
speed
usingFrameTimeVector
PlayClipOptions
Type declaration
optionalframeTimeVector?: number[]
optionalframeTimeVectorSpeedMultiplier?: number
optionalframesPerSecond?: number
optionalloop?: boolean
optionalreverse?: boolean
EventTypes
AnnotationAddedEventDetail
Type declaration
annotation: Annotation
The annotation that is being added to the annotations manager.
renderingEngineId: string
unique id of the rendering engine
viewportId: string
unique id of the viewport
AnnotationAddedEventType
The AnnotationAdded event type
AnnotationCompletedEventDetail
The data that is passed to the event handler when a new annotation is completed drawing on the viewport.
Type declaration
annotation: Annotation
The annotation that is being added to the annotations manager.
AnnotationCompletedEventType
The AnnotationCompleted event type
AnnotationLockChangeEventDetail
The data that is passed to the event handler when an annotation lock status changes.
Type declaration
added: Annotation[]
locked: Annotation[]
removed: Annotation[]
AnnotationLockChangeEventType
The AnnotationLockChange event type
AnnotationModifiedEventDetail
The data that is passed to the event handler when an annotation is modified.
Type declaration
annotation: Annotation
The annotation that is being added to the annotations manager.
renderingEngineId: string
unique id of the rendering engine
viewportId: string
unique id of the viewport
AnnotationModifiedEventType
The AnnotationModified event type
AnnotationRemovedEventDetail
The data that is passed to the event handler when an annotation is completed drawing.
Type declaration
annotation: Annotation
The annotation that is being added to the annotations manager.
annotationManagerUID: string
annotationManagerUID
AnnotationRemovedEventType
The AnnotationRemoved event type
AnnotationRenderedEventDetail
The data that is passed to the event handler when an annotation selection status changes.
Type declaration
element: HTMLDivElement
The HTML element that the annotation was rendered on.
renderingEngineId: string
unique id of the rendering engine
viewportId: string
unique id of the viewport
AnnotationRenderedEventType
The AnnotationRendered event type
AnnotationSelectionChangeEventDetail
The data that is passed to the event handler when an annotation selection status changes.
Type declaration
added: string[]
AnnotationUID added to the selection
removed: string[]
AnnotationUID removed from the selection
selection: string[]
Updated selection
AnnotationSelectionChangeEventType
The AnnotationSelectionChange event type
AnnotationVisibilityChangeEventDetail
Type declaration
hidden: string[]
lastHidden: string[]
lastVisible: string[]
AnnotationVisibilityChangeEventType
The AnnotationVisibilityChange event type
InteractionEndType
Event for interaction end
InteractionEventType
Event for interaction
InteractionStartType
Event for interaction start
KeyDownEventDetail
EventDetail for keyDown event
Type declaration
element: HTMLDivElement
html element
key: string
The key that was pressed
keyCode: number
key code
renderingEngineId: string
unique id of the rendering engine
viewportId: string
unique id of the viewport
KeyDownEventType
Event for when a key is pressed
KeyUpEventDetail
EventDetail for keyDown event
KeyUpEventType
Event for when a key is released
MouseClickEventDetail
EventDetail mouseClick (a mouse down which is followed by a mouse up)
MouseClickEventType
Event for mouse click
MouseDoubleClickEventDetail
EventDetail mouseClick (a mouse down which is followed by a mouse up)
MouseDoubleClickEventType
Event for mouse double click
MouseDownActivateEventDetail
EventDetail for mouseDown Activate, it is triggered when mouseDown event is fired but stopPropagation is not called, used for creating new annotation
MouseDownActivateEventType
Event for mouse down event
MouseDownEventDetail
EventDetail for mouseDown event
MouseDownEventType
Event for when a mouse button is pressed
MouseDragEventDetail
EventDetail for mouseDrag event
MouseDragEventType
Event for mouse drag
MouseMoveEventDetail
EventDetail mouseMove event
MouseMoveEventType
Event for mouse move
MouseUpEventDetail
EventDetail for mouseUp event
MouseUpEventType
Event for mouse up
MouseWheelEventDetail
Mouse Wheel event detail
MouseWheelEventType
Event for mouse wheel
NormalizedInteractionEventDetail
The normalized interaction event detail
Type declaration
camera: Record<string, unknown>
The camera at the time of the event.
element: HTMLDivElement
The element that the event was fired on.
eventName: string
The normalized event name.
renderingEngineId: string
The unique identifier of the rendering engine.
viewportId: string
The unique identifier of the viewport that the event was fired in.
NormalizedMouseEventType
The Normalized mouse event type
NormalizedTouchEventType
The Normalized mouse event type
SegmentationDataModifiedEventDetail
EventDetail for when a Segmentation Data is modified by a tool
Type declaration
optionalmodifiedSlicesToUse?: number[]
array of slice indices in a labelmap which have been modified
segmentationId: string
unique id of the segmentationData
SegmentationDataModifiedEventType
Event for when SegmentationData is modified
SegmentationModifiedEventDetail
EventDetail for when a Segmentation Global State is modified
Type declaration
segmentationId: string
unique id of segmentation (not segmentationData), for volumes (labelMaps) it is volumeId
SegmentationModifiedEventType
Event for when Segmentation Global State is modified
SegmentationRemovedEventDetail
EventDetail for when a Segmentation is removed
Type declaration
segmentationId: string
the id of the removed segmentation
SegmentationRemovedEventType
Event for when Segmentation is removed
SegmentationRenderedEventDetail
EventDetail for when a Segmentation is rendered by segmentation rendering engine
Type declaration
toolGroupId: string
unique id of the toolGroup segmentation belongs to
viewportId: string
unique id of the viewport
SegmentationRenderedEventType
Event for when Segmentation is rendered
SegmentationRepresentationModifiedEventDetail
EventDetail for when a Segmentation Representation for a toolGroup is modified
Type declaration
segmentationRepresentationUID: string
segmentation representationUID
toolGroupId: string
unique id of the toolGroup
SegmentationRepresentationModifiedEventType
Event for when Segmentation Representation is modified
SegmentationRepresentationRemovedEventDetail
EventDetail for when a Segmentation Representation is removed
Type declaration
segmentationRepresentationUID: string
segmentation representationUID
toolGroupId: string
unique id of the toolGroup
SegmentationRepresentationRemovedEventType
Event for when Segmentation Representation is modified
TouchDragEventDetail
EventDetail for touch drag event
TouchDragEventType
Event for touch drag
TouchEndEventDetail
EventDetail for touch end event
TouchEndEventType
Event for touch end
TouchPressEventDetail
EventDetail touchPress (a longer press in the same spot)
TouchPressEventType
Event for when a touch is long pressed
TouchStartActivateEventDetail
EventDetail for touchStart Activate, it is triggered when touchStart event is fired but stopPropagation is not called, used for creating new annotation
TouchStartActivateEventType
Event for touch start event
TouchStartEventDetail
EventDetail for touchstart event
TouchStartEventType
Event for when a touch starts
TouchSwipeEventDetail
TouchSwipeEventType
Event for when a touch is swiped
TouchTapEventDetail
EventDetail touchTap (successive taps which do not trigger touchstart)
TouchTapEventType
Event for when a touch is tapped
LabelmapTypes
LabelmapConfig
Label map config for the label map representation
Type declaration
optionalfillAlpha?: number
alpha of the fill
optionalfillAlphaInactive?: number
alpha of the fill when inactive
optionaloutlineOpacity?: number
alpha of outline for active segmentation
optionaloutlineOpacityInactive?: number
alpha of outline for inactive segmentation
optionaloutlineWidthActive?: number
thickness of the outline when segmentation is active
optionaloutlineWidthInactive?: number
thickness of the outline when segmentation is inactive
optionalrenderFill?: boolean
whether to render segmentation filling
optionalrenderFillInactive?: boolean
whether to render segmentation filling when inactive
optionalrenderOutline?: boolean
whether to render segmentation outline
LabelmapRenderingConfig
Labelmap representation type
Type declaration
optionalcfun?: vtkColorTransferFunction
color transfer function
optionalofun?: vtkPiecewiseFunction
opacity transfer function
LabelmapSegmentationData
Type declaration
optionalreferencedVolumeId?: string
volumeId: string
ToolSpecificAnnotationTypes
AngleAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
cachedStats: {}
[targetId string]: { angle: number }
handles: { activeHandleIndex: number; points: Point3[]; textBox: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
label: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
ArrowAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
handles: { activeHandleIndex: number; arrowFirst: boolean; points: Point3[]; textBox: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
text: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
BidirectionalAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
cachedStats: {}
[targetId string]: { length: number; unit: string; width: number }
handles: { activeHandleIndex: number; points: Point3[]; textBox: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
label: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
EllipticalROIAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
optionalcachedStats?: ROICachedStats
handles: { activeHandleIndex: number; points: [Point3, Point3, Point3, Point3]; textBox?: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
label: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
LengthAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
cachedStats: {}
[targetId string]: { length: number; unit: string }
handles: { activeHandleIndex: number; points: Point3[]; textBox: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
label: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
PlanarFreehandROIAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
handles: { activeHandleIndex: number; points: Point3[]; textBox: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
optionalisOpenContour?: boolean
optionalisOpenUShapeContour?: boolean
optionallabel?: string
optionalopenUShapeContourVectorToPeak?: Point3[]
polyline: Point3[]
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
ProbeAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
cachedStats: {}
[targetId string]: { Modality: string; index: Types.Point3; value: number }
handles: { points: Point3[] }
points: Point3[]
label: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
RectangleROIAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
optionalcachedStats?: ROICachedStats | { projectionPoints?: Point3[]; projectionPointsImageIds?: string[] }
handles: { activeHandleIndex: number; points: Point3[]; textBox: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Point3; bottomRight: Point3; topLeft: Point3; topRight: Point3 }; worldPosition: Point3 } }
label: string
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
RectangleROIStartEndThresholdAnnotation
optionalannotationUID
A unique identifier for this annotation
data
Type declaration
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Type declaration
RectangleROIThresholdAnnotation
optionalannotationUID
A unique identifier for this annotation
data
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Type declaration
FrameOfReferenceUID: string
optionalannotationUID?: string
optionalcameraFocalPoint?: Point3
optionalcameraPosition?: Point3
enabledElement: IEnabledElement
optionalreferencedImageId?: string
toolName: string
optionalviewPlaneNormal?: Point3
optionalviewUp?: Point3
volumeId: string
ReferenceCursor
optionalannotationUID
A unique identifier for this annotation
data
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
ReferenceLineAnnotation
optionalannotationUID
A unique identifier for this annotation
data
optionalhighlighted
If the annotation is being hovered over and is highlighted
optionalinvalidated
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked
If the annotation is locked for manipulation
optionalisVisible
If the annotation is visible for manipulation
metadata
Metadata for annotation
Type declaration
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Point3
The focal point of the camera in world space
optionalcameraPosition?: Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Point3
The normal on which the tool was drawn
optionalviewUp?: Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
Interfaces
ISynchronizerEventHandler
Parameters
synchronizer: Synchronizer
sourceViewport: default
targetViewport: default
sourceEvent: any
Returns void
IToolGroup
ToolGroup interface
_toolInstances
Unserializable instantiated tool classes, keyed by name
addTool
Type declaration
Add a tool to toolGroup with its configuration
Parameters
toolName: string
optionaltoolConfiguration: any
Returns void
addToolInstance
Type declaration
Add tool instance, if you want to create more than one instance from the same tool e.g., brush/eraser tool
Parameters
ttoolName: string
parentClassName: string
optionalconfiguration: any
Returns void
addViewport
Type declaration
Add viewports to share the tools for the ToolGroup
Parameters
viewportId: string
optionalrenderingEngineId: string
Returns void
getActivePrimaryMouseButtonTool
Type declaration
Returns string
getToolConfiguration
Type declaration
Parameters
toolName: string
configurationPath: string
Returns any
getToolInstance
Type declaration
Get the toolInstance of the toolName
Parameters
toolName: string
Returns any
getToolOptions
Type declaration
Returns the Tool options including tool bindings and tool mode
Parameters
toolName: string
Returns ToolOptionsType
getViewportIds
Type declaration
Get viewportIds in the toolGroup
Returns string[]
getViewportsInfo
Type declaration
Get viewports info in the toolGroup
Returns default[]
id
ToolGroup ID
removeViewports
Type declaration
Remove viewports from the ToolGroup
Parameters
renderingEngineId: string
optionalviewportId: string
Returns void
setToolActive
Type declaration
Setting the tool to be Active by its name
Parameters
toolName: string
optionaltoolBindingsOption: SetToolBindingsType
Returns void
setToolConfiguration
Type declaration
Parameters
toolName: string
configuration: Record<any, any>
optionaloverwrite: boolean
Returns void
setToolDisabled
Type declaration
Setting the tool to be Disabled by its name
Parameters
toolName: string
Returns void
setToolEnabled
Type declaration
Setting the tool to be Enabled by its name
Parameters
toolName: string
Returns void
setToolPassive
Type declaration
Setting the tool to be Passive by its name
Parameters
toolName: string
Returns void
setViewportsCursorByToolName
Type declaration
Parameters
toolName: string
optionalstrategyName: string
Returns void
toolOptions
Options for each tool including bindings and mode
viewportsInfo
Viewports Info inside the ToolGroup - including viewportId and renderingEngineId
Type Aliases
Annotation
Type declaration
optionalannotationUID?: string
A unique identifier for this annotation
data: { cachedStats?: unknown; handles?: { activeHandleIndex?: number | null; points?: Types.Point3[]; textBox?: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Types.Point3; bottomRight: Types.Point3; topLeft: Types.Point3; topRight: Types.Point3 }; worldPosition: Types.Point3 } } }
Data for annotation, Derivatives need to define their own data types.
[key string]: any
optionalcachedStats?: unknown
Cached Annotation statistics which is specific to the tool
optionalhandles?: { activeHandleIndex?: number | null; points?: Types.Point3[]; textBox?: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Types.Point3; bottomRight: Types.Point3; topLeft: Types.Point3; topRight: Types.Point3 }; worldPosition: Types.Point3 } }
Annotation handles that are grabbable for manipulation
[key string]: any
optionalactiveHandleIndex?: number | null
index of the active handle being manipulated
optionalpoints?: Types.Point3[]
world location of the handles in the space
optionaltextBox?: { hasMoved: boolean; worldBoundingBox: { bottomLeft: Types.Point3; bottomRight: Types.Point3; topLeft: Types.Point3; topRight: Types.Point3 }; worldPosition: Types.Point3 }
annotation text box information
hasMoved: boolean
whether the text box has moved
worldBoundingBox: { bottomLeft: Types.Point3; bottomRight: Types.Point3; topLeft: Types.Point3; topRight: Types.Point3 }
text box bounding box information
bottomLeft: Types.Point3
Bottom left location of the text box in the world space
bottomRight: Types.Point3
Bottom right location of the text box in the world space
topLeft: Types.Point3
Top left location of the text box in the world space
topRight: Types.Point3
Top right location of the text box in the world space
worldPosition: Types.Point3
the world location of the text box
optionalhighlighted?: boolean
If the annotation is being hovered over and is highlighted
optionalinvalidated?: boolean
Has annotation data been invalidated (e.g., as a result of mouse interactions)
optionalisLocked?: boolean
If the annotation is locked for manipulation
optionalisVisible?: boolean
If the annotation is visible for manipulation
metadata: { FrameOfReferenceUID: string; cameraFocalPoint?: Types.Point3; cameraPosition?: Types.Point3; referencedImageId?: string; toolName: string; viewPlaneNormal?: Types.Point3; viewUp?: Types.Point3; volumeId?: string }
Metadata for annotation
FrameOfReferenceUID: string
The FrameOfReferenceUID
optionalcameraFocalPoint?: Types.Point3
The focal point of the camera in world space
optionalcameraPosition?: Types.Point3
The position of the camera in world space
optionalreferencedImageId?: string
An optional property used when annotating on a slice in a StackViewport, or when annotating in a VolumeViewport on a viewPlane that corresponds to original slice-based image data.
toolName: string
The registered name of the tool
optionalviewPlaneNormal?: Types.Point3
The normal on which the tool was drawn
optionalviewUp?: Types.Point3
The viewUp on which the tool was drawn.
optionalvolumeId?: string
VolumeId of the volume that the tool was configured to work on.
AnnotationHandle
Handle position in the world coordinates
AnnotationState
All frame of reference specific annotations for all tools.
Type declaration
[key string]: FrameOfReferenceSpecificAnnotations
Annotations
Array of annotations
BoundsIJK
Color
Four elements RGBA as 0-255
ColorLUT
Color LUT Array - Array of colors [[0,0,0,0], [200,200,200,200], ….]
ContourSegmentationData
Type declaration
geometryIds: string[]
FloodFillGetter
FloodFillOptions
Type declaration
optionaldiagonals?: boolean
optionalequals?: (a: any, b: any) => boolean
Parameters
a: any
b: any
Returns boolean
optionalonBoundary?: (x: any, y: any) => void
Parameters
x: any
y: any
Returns void
optionalonFlood?: (x: any, y: any) => void
Parameters
x: any
y: any
Returns void
FloodFillResult
Type declaration
boundaries: Types.Point2[] | Types.Point3[]
flooded: Types.Point2[] | Types.Point3[]
FrameOfReferenceSpecificAnnotations
FrameOfReferenceSpecificAnnotations which has all annotations from all tools for the each frame of reference.
Type declaration
[key string]: Annotations
IDistance
Distance in page, client, canvas and world coordinates.
Type declaration
canvas: number
canvas distance
client: number
client distance
page: number
page distance
world: number
world distance
IPoints
Points in page, client, canvas and world coordinates.
Type declaration
canvas: Types.Point2
canvas coordinates of the point
client: Types.Point2
client coordinates of the point
page: Types.Point2
page coordinates of the point
world: Types.Point3
world coordinates of the point
IToolBinding
Type declaration
optionalmodifierKey?: ToolBindingKeyboardType
Keyboard bindings e.g., KeyboardBindings.Shift/Ctrl etc.
optionalmouseButton?: ToolBindingMouseType
Mouse button bindings e.g., MouseBindings.Primary/Secondary etc.
optionalnumTouchPoints?: number
Number of touch points
IToolClassReference
Type declaration
Type parameters
- T: BaseTool
Parameters
config: any
Returns T
ITouchPoints
InteractionTypes
Supported Interactions for tools
JumpToSliceOptions
Type declaration
optionaldebounceLoading?: boolean
imageIndex: number
PlanarBoundingBox
Type declaration
height: number
width: number
x: number
y: number
PublicToolProps
Tool specific tool properties which includes the supported interaction types and the configuration.
RepresentationConfig
Segmentation Config
Type declaration
optionalCONTOUR?: ContourConfig
contour configuration
optionalLABELMAP?: LabelmapConfig
labelmap configuration
optionalSURFACE?: any
surface configuration
RepresentationPublicInput
Type declaration
segmentationId: string
type: Enums.SegmentationRepresentations
SVGCursorDescriptor
SVGDrawingHelper
Type declaration
appendNode: (svgNode: SVGElement, cacheKey: string) => void
Parameters
svgNode: SVGElement
cacheKey: string
Returns void
clearUntouched: () => void
Returns void
getSvgNode: (cacheKey: string) => SVGGElement | undefined
Parameters
cacheKey: string
Returns SVGGElement | undefined
setNodeTouched: (cacheKey: string) => void
Parameters
cacheKey: string
Returns void
svgLayerElement: HTMLDivElement
svgNodeCacheForCanvas: Record<string, unknown>
SVGPoint
Type declaration
x: number
y: number
ScrollOptions
Type declaration
optionaldebounceLoading?: boolean
delta: number
optionalvolumeId?: string
Segmentation
Global Segmentation Data which is used for the segmentation
Type declaration
activeSegmentIndex: number
Active segment index in the segmentation, this index will get used inside the segmentation tools
cachedStats: {}
If there is any derived statistics for the segmentation (e.g., mean, volume, etc)
[key string]: number
label: string
segmentation label
representationData: SegmentationRepresentationData
Representations of the segmentation. Each segmentation “can” be viewed in various representations. For instance, if a DICOM SEG is loaded, the main representation is the labelmap. However, for DICOM RT the main representation is contours, and other representations can be derived from the contour (currently only labelmap representation is supported)
segmentationId: string
segmentation id
segmentsLocked: Set<number>
Locked segments in the segmentation, if a segment is locked no tool will be able to modify it
type: Enums.SegmentationRepresentations
segmentation main representation type
SegmentationRepresentationConfig
Type declaration
renderInactiveSegmentations: boolean
Whether to render Inactive segmentations
representations: RepresentationConfig
Representations configuration
SegmentationRepresentationData
Type declaration
optionalCONTOUR?: ContourSegmentationData
optionalLABELMAP?: LabelmapSegmentationData
optionalSURFACE?: SurfaceSegmentationData
SegmentationState
Segmentation State stored inside the cornerstone3DTools
{
colorLUT: [],
globalConfig: {
renderInactiveSegmentations: false,
representations: {
LABELMAP: {
renderFill: true,
renderOutline: true,
},
},
},
segmentations: [
{
segmentationId: 'segmentation1',
mainType: 'Labelmap',
activeSegmentIndex: 0,
segmentsLocked: new Set(),
label: 'segmentation1',
cachedStats: {},
representationData: {
LABELMAP: {
volumeId: 'segmentation1',
},
CONTOUR: {
geometryIds: ['contourSet1', 'contourSet2'],
},
},
},
{
segmentationId: 'segmentation2',
type: 'Labelmap',
activeSegmentIndex: 1,
segmentsLocked: new Set(),
label: 'segmentation2',
cachedStats: {},
representationData: {
CONTOUR: {
points: Float32Array,
},
},
},
],
toolGroups: {
toolGroupUID1: {
segmentationRepresentations: [
{
segmentationRepresentationUID: '12123123123132',
segmentationId: '123123',
type: 'Labelmap',
active: true,
colorLUTIndex: 0,
visibility: true,
segmentsHidden: Set(),
// LabelmapRenderingConfig
config: {
"cfun",
"ofun",
},
},
],
config: {
renderInactiveSegmentations: false,
representations: {
LABELMAP: {
renderFill: true,
renderOutline: true,
},
},
},
},
},
}
Type declaration
colorLUT: ColorLUT[]
Array of colorLUT for segmentation to render
globalConfig: SegmentationRepresentationConfig
global segmentation state with config
segmentations: Segmentation[]
segmentations
toolGroups: {}
ToolGroup specific segmentation state with config
[key string]: { config: SegmentationRepresentationConfig; segmentationRepresentations: ToolGroupSpecificRepresentations }
SetToolBindingsType
Type declaration
bindings: IToolBinding[]
bindings for the toolGroup’s tool when it is set to be active
TextBoxHandle
TextBox handle type specifying its location in the world including bottomLeft and topRight and bottomRight and topLeft points, and its center world coordinates.
Type declaration
hasMoved: boolean
worldBoundingBox: { bottomLeft: Types.Point3; bottomRight: Types.Point3; topLeft: Types.Point3; topRight: Types.Point3 }
bottomLeft: Types.Point3
bottomRight: Types.Point3
topLeft: Types.Point3
topRight: Types.Point3
worldPosition: Types.Point3
ToolGroupSpecificLabelmapRepresentation
ToolGroup Specific Segmentation Data for segmentations. As one segmentation can be represented in various ways (currently only labelmap is supported) we store ToolGroup specific segmentation data in this object
ToolGroupSpecificRepresentation
ToolGroupSpecificRepresentationState
Representation state of the segmentation which is common between all representations (we don’t need to separate these states for each representation)
Type declaration
active: boolean
Whether the segmentation is the active (manipulatable) segmentation or not which means it is inactive
colorLUTIndex: number
The index of the colorLUT from the state that this segmentationData is using to render
segmentationId: string
The segmentationId that this representation is derived from
segmentationRepresentationUID: string
Segmentation Representation UID
segmentsHidden: Set<number>
Hidden segment indices in the segmentation
type: Enums.SegmentationRepresentations
The representation type
visibility: boolean
Whether the segmentation is visible
ToolHandle
Tool Handle type can be either AnnotationHandle or TextBoxHandle
ToolOptionsType
Type declaration
bindings: IToolBinding[]
bindings for the toolGroup’s tool when it is set to be active
mode: ToolModes
mode of the tool
The data that is passed to the event handler when a new annotation is added to the annotations.