SoView2DCSOExtensibleEditor¶
-
InventorModule
¶ author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoCSO
definition SoCSO.def inherits from SoView2DExtension
keywords roi
,spline
,polygon
,polyline
Purpose¶
The module SoView2DCSOExtensibleEditor
manages attached CSO editors and renderers and offers an optional default renderer for all types of CSOs.
Usage¶
Attach one or multiple CSO editors/renderers to the inExtensions
field.
If multiple editors/renderers should be attached, use a SoGroup
to group them and attach the group to this module.
The field Creator Extension Id
takes a string that identifies the editor that should be used for creating a new CSO. Set the string to be the same as the extensionId string on any attached editor.
Alternatively, the field Creator Extension Id
can be set to __default where the first found eligible editor is used to create a new CSO.
The configuration of the key commands and mouse button mask can be done with a SoInteractionMapping
module.
Input Fields¶
inCSOList¶
-
name:
inCSOList
, type:
CSOList(MLBase)
¶ Attach a CSOList.
For accessing this object via scripting see the Scripting Reference:MLCSOListWrapper
.
inExtensions¶
inVisualizationSettings¶
-
name:
inVisualizationSettings
, type:
CSOVisualizationSettings(MLBase)
¶ Attach a
SoCSOVisualizationSettings
module to control the appearance of CSOs.
inTransformationProvider¶
-
name:
inTransformationProvider
, type:
TransformationProvider(MLBase)
¶ - For accessing this object via scripting see the Scripting Reference:
MLTransformationProviderWrapper
.
Parameter Fields¶
Field Index¶
Allow Selection With Default Renderer : Bool |
Creator Extension Id : String |
Needs Valid Voxel : Bool |
Alt : Enum |
CSO Id Under Mouse : Integer |
Remove all enabled : Bool |
Always create a new CSO : Bool |
cursorShape : Enum |
Render : Enum |
alwaysModifyExistingCSOs : Bool |
Drawing On : Bool |
Render left-over CSOs with default renderer : Bool |
Button1 : Enum |
Editing On : Bool |
renderOnSlab : Bool |
Button2 : Enum |
fixZOn : Bool |
Selection Tolerance : Float |
Button3 : Enum |
ignoreHandledEvents : Bool |
setEventHandled : Bool |
cancelGeneration : Trigger |
Interact only with selected CSO : Bool |
Shift : Enum |
clipToSlice : Bool |
interactionProviderID : String |
Update CSO id under mouse : Bool |
color : Color |
Is creating new CSO : Bool |
updateImageStatisticsOnFinishInteraction : Bool |
Control : Enum |
Is editing existing CSO : Bool |
wantsAllEvents : Bool |
createNewMode : Bool |
Keys enabled : Bool |
wantsKeyEvents : Bool |
createNewModeRequest : Trigger |
maskValid : Bool |
wantsMouseWheelEvents : Bool |
Visible Fields¶
Drawing On¶
-
name:
drawingOn
, type:
Bool
, default:
TRUE
¶ If checked, the attached editors render CSOs.
see also SoView2DExtension.drawingOn
Editing On¶
-
name:
editingOn
, type:
Bool
, default:
TRUE
¶ If checked, editing of the rendered CSOs is possible.
see also SoView2DExtension.editingOn
Selection Tolerance¶
-
name:
selectionTolerance
, type:
Float
, default:
16
, minimum:
0
¶ Sets a selection tolerance (distance) in pixel.
Needs Valid Voxel¶
-
name:
needsValidVoxel
, type:
Bool
, default:
FALSE
¶ Restrict interaction to the area of the image underlay. Also see
SoCSOPointEditor.restrictToImageBoundaries
.
see also SoView2DExtension.needsValidVoxel
Button1¶
-
name:
button1
, type:
Enum
, default:
PRESSED
¶ Defines the mask for mouse button 1.
see also SoView2DExtension.button1
Button2¶
-
name:
button2
, type:
Enum
, default:
IGNORED
¶ Defines the mask for mouse button 2.
see also SoView2DExtension.button2
Button3¶
-
name:
button3
, type:
Enum
, default:
IGNORED
¶ Defines the mask for mouse button 3.
see also SoView2DExtension.button3
Shift¶
-
name:
shift
, type:
Enum
, default:
IGNORED
¶ Defines the mask for the SHIFT key.
see also SoView2DExtension.shift
Control¶
-
name:
control
, type:
Enum
, default:
IGNORED
¶ Defines the mask for the CONTROL key.
see also SoView2DExtension.control
Alt¶
-
name:
alt
, type:
Enum
, default:
IGNORED
¶ Defines the mask for the ALT key.
see also SoView2DExtension.alt
Creator Extension Id¶
-
name:
creatorExtensionId
, type:
String
, default:
__default
¶ Sets an extension id of an attached editor that creates a new CSO.
If this field is set to __default, the first attached editor is used to create a new CSO.
Always create a new CSO¶
-
name:
alwaysCreateNewCSOs
, type:
Bool
, default:
FALSE
¶ If checked, a new CSO is always created if an appropriate editor is found.
Otherwise, an existing CSO is selected on clicking into a viewer.
Keys enabled¶
-
name:
keyCommandsEnabled
, type:
Bool
, default:
TRUE
¶ If checked, key commands are enabled.
By default, the keyboard commands
Shortcut Effect CTRL+Z Undo CTRL+Y Redo CTRL+C Copy selected CSO. CTRL+X Cut selected CSO. CTRL+V Paste selected CSO. DEL Delete selected seed point. SHIFT+DEL Delete selected CSO. ESC Reset the current state are available.
Remove all enabled¶
-
name:
enableRemoveAll
, type:
Bool
, default:
FALSE
¶ If checked, the module react on a keyboard shortcut to remove all CSOs and CSOGroups.
Default shortcut is CTRL+Q.
Interact only with selected CSO¶
-
name:
interactOnlyWithSelectedCSO
, type:
Bool
, default:
FALSE
¶ If checked, interaction (modification) is only allowed with selected CSOs.
Render left-over CSOs with default renderer¶
-
name:
renderLeftOverCSOsWithDefaultRenderer
, type:
Bool
, default:
TRUE
¶ If checked, an internal default renderer is used for rendering all CSOs without a specific, attached editor.
Allow Selection With Default Renderer¶
-
name:
allowSelectionWithDefaultRenderer
, type:
Bool
, default:
TRUE
¶ If checked, all rendered CSO can be selected even if no specialized editor is attached.
Render¶
-
name:
renderCSOsOnImagesDependingOnCreationMode
, type:
Enum
, default:
ON_ALL_IMAGES
¶ Defines on which images the CSOs should be rendered on. This is decided by the imageInstanceSOP which is stored as userData in the CSO on creation.
Values:
Title | Name | Description |
---|---|---|
On All Images | ON_ALL_IMAGES | CSOs are rendered on all images, the imageInstanceSOP is ignored. |
Only On Images They Were Created On | ONLY_ON_IMAGES_THEY_WERE_CREATED_ON | The CSOs are rendered only on the images they were created on. |
Only On Images They Were Not Created On | ONLY_ON_IMAGES_THEY_WERE_NOT_CREATED_ON | The CSOs are rendered only on images they were NOT created on. This mode is useful to render CSOs with different visualization settings on secondary captures. |
Only On Images They Can Be Transformed To | ONLY_ON_IMAGES_THEY_CAN_BE_TRANSFORMED_TO |
Update CSO id under mouse¶
-
name:
updateCSOIdUnderMouseCursor
, type:
Bool
, default:
FALSE
¶ If checked, the field
CSO Id Under Mouse
is updated on each mouse movement.
CSO Id Under Mouse¶
-
name:
csoIdUnderMouseCursor
, type:
Integer
, persistent:
no
¶ Shows the id of the CSO currently under the mouse cursor.
This field is only touched if its value changes.
If the field
Update CSO id under mouse
is off, this field is never updated.