SoView2DCSOExtensibleEditor¶
- InventorModule¶
author
package
dll
definition
inherits from
keywords
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.
Windows¶
Default Panel¶
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
SoCSOVisualizationSettingsmodule to control the appearance of CSOs.
inTransformationProvider¶
- name: inTransformationProvider, type: TransformationProvider(MLBase)¶
For accessing this object via scripting, see the Scripting Reference:
MLTransformationProviderWrapper.
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 pixels.
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
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. This is determined by the imageInstanceSOP that is stored as userData in the CSO upon 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 Mouseis 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 mouseis off, this field is never updated.
Is creating new CSO¶
- name: isCreatingNewCSO, type: Bool, persistent: no¶
Shows whether any editor is currently creating a new CSO.
Is editing existing CSO¶
- name: isEditingExistingCSO, type: Bool, persistent: no¶
Shows whether any editor is editing/modifying an existing CSO.
Accumulate Transformations¶
- name: accumulateTransformations, type: Bool, default: FALSE¶
If checked, all
SoCSOTransformmodules in the graph are applied to all CSOs.Otherwise, only the last SoCSOTransform module in the graph is applied to all CSOs (to guarantee compatibility for networks before MeVisLab 4.1).