OrientationMarkerTool
Hierarchy
- BaseTool
- OrientationMarkerTool
Index
Constructors
Properties
Methods
Constructors
constructor
Parameters
toolProps: {} = {}
defaultToolProps: { configuration: { orientationWidget: { enabled: boolean; maxPixelSize: number; minPixelSize: number; viewportCorner: Corners; viewportSize: number }; overlayConfiguration: {}; overlayMarkerType: number } } = ...
Returns OrientationMarkerTool
Properties
_resizeObservers
publicconfiguration
publicmode
Tool Mode - Active/Passive/Enabled/Disabled/
orientationMarkers
polyDataURL
publicsupportedInteractionTypes
Supported Interaction Types - currently only Mouse
publictoolGroupId
ToolGroup ID the tool instance belongs to
staticAXIS
staticCUBE
staticOVERLAY_MARKER_TYPES
Type declaration
ANNOTATED_CUBE: number
AXES: number
CUSTOM: number
staticVTPFILE
statictoolName
Methods
_getViewportsInfo
Returns any[]
_subscribeToViewportEvents
Returns void
_unsubscribeToViewportNewVolumeSet
Returns void
addAxisActorInViewport
Parameters
viewport: any
Returns Promise<void>
publicapplyActiveStrategy
Applies the active strategy function to the enabled element with the specified operation data.
Parameters
enabledElement: IEnabledElement
The element that is being operated on.
operationData: unknown
The data that needs to be passed to the strategy.
Returns any
The result of the strategy.
publicapplyActiveStrategyCallback
Applies the active strategy, with a given event type being applied. The event type function is found by indexing it on the active strategy function.
Parameters
enabledElement: IEnabledElement
The element that is being operated on.
operationData: unknown
The data that needs to be passed to the strategy.
callbackType: string
the type of the callback
Returns any
The result of the strategy.
createAnnotatedCubeActor
Returns Promise<vtkAnnotatedCubeActor>
publicgetToolName
Returns the name of the tool
Returns string
The name of the tool.
onSetToolActive
Returns void
onSetToolDisabled
Returns void
onSetToolEnabled
Returns void
resize
Parameters
viewportId: any
Returns void
publicsetActiveStrategy
Sets the active strategy for a tool. Strategies are multiple implementations of tool behavior that can be switched by tool configuration.
Parameters
strategyName: string
name of the strategy to be set as active
Returns void
publicsetConfiguration
merges the new configuration with the tool configuration
Parameters
newConfiguration: Record<string, any>
Returns void
The OrientationMarker is a tool that includes an orientation marker in viewports when activated