author | Olaf Konrad |
package | MeVisLab/Standard |
dll | SoCSO |
definition | SoCSO.def |
keywords | roi, spline, polygon, polyline |
The module SoView2DCSOExtensibleEditor manages attached CSO editors and renderers and offers an optional default renderer for all types of CSOs.
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.
Attach a SoCSOVisualizationSettings module to control the appearance of CSOs.
Alt: Enum | CSO Id Under Mouse: Integer | Render: Enum |
Always create a new CSO: Bool | cursorShape: Enum | Render CSOs only on image they were created on: Bool |
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 |
clipToSlice: Bool | Interact only with selected CSO: Bool | Shift: Enum |
color: Color | Is creating new CSO: Bool | Update CSO id under mouse: Bool |
Control: Enum | Is editing existing CSO: Bool | wantsAllEvents: Bool |
createNewMode: Bool | Keys enabled: Bool | wantsKeyEvents: Bool |
createNewModeRequest: Trigger | maskValid: Bool | wantsMouseWheelEvents: Bool |
Creator Extension Id: String | needsValidVoxel: Bool |
If checked, the attached editors render CSOs.
If checked, editing of the rendered CSOs is possible.
Sets a selection tolerance (distance) in pixel.
Defines the mask for mouse button 1.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines the mask for mouse button 2.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines the mask for mouse button 3.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines the mask for the SHIFT key.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines the mask for the CONTROL key.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines the mask for the ALT key.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
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.
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.
If checked, key commands are enabled.
By default, the keyboard commands
Shortcut | Effect |
---|---|
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. |
are available.
If checked, interaction (modification) is only allowed with selected CSOs.
If checked, an internal default renderer is used for rendering all CSOs without a specific, attached editor.
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. |
If checked, the field CSO Id Under Mouse is updated on each mouse movement.
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.
Shows whether any editor is currently creating a new CSO.