SoView2DExtensionSeparator¶
-
InventorModule
¶ genre View2D
author MeVis Medical Solutions AG
package MeVisLab/Standard
dll SoView2D
definition view2d.def see also SoView2D
inherits from SoView2DExtension
keywords grouping
,event
,handling
,evaluation
,order
Purpose¶
The module SoView2DExtensionSeparator
enables Extension Grouping.
It groups its child extensions and manages event consumption and drawing order for them. That way, a group of extensions can be treated like one extension and the implementation of more complicated event consumption strategies is possible.
Details¶
There are two possible locations for SoView2DExtensionSeparator
modules:
- To the left of a SoView2D: this SoView2D will be called parent SoView2D
- As child of another SoView2DExtensionSeparator: this SoView2DExtensionSeparator will be called parent Separator
There is always a SoView2D that triggers the drawing of an extension, otherwise the extension would do nothing. This SoView2D will be referred to as calling SoView2D.
The module fills its own extension list for drawing and event evaluation (find out more about extension lists).
The SoView2DExtensionSeparator is contained in the extension list of its parent SoView2D or separator, but all children of the SoView2DExtensionSeparator are invisible to the parent (SoView2D or Separator), e.g. they are not in the parent’s extension list. Their drawing and event evaluation methods will only be triggered by the SoView2DExtensionSeparator.
Parameter Fields¶
Field Index¶
alt : Enum |
Draw children : Bool |
needsValidVoxel : Bool |
button1 : Enum |
Drawing order : Enum |
renderOnSlab : Bool |
button2 : Enum |
drawingOrderIsReversed : Bool |
selectionTolerance : Float |
button3 : Enum |
editingOn : Bool |
Set event handled flag : Bool |
clipToSlice : Bool |
fixZOn : Bool |
shift : Enum |
color : Color |
Forward events to children : Bool |
updateOrder : Trigger |
control : Enum |
Ignore handled events : Bool |
wantsAllEvents : Bool |
createNewMode : Bool |
interactionProviderID : String |
wantsKeyEvents : Bool |
createNewModeRequest : Trigger |
Mark handled events as unhandled before forwarding : Bool |
wantsMouseWheelEvents : Bool |
cursorShape : Enum |
maskValid : Bool |
Visible Fields¶
Draw children¶
-
name:
drawingOn
, type:
Bool
, default:
TRUE
¶ If checked, children will be drawn.
see also SoView2DExtension.drawingOn
Set event handled flag¶
-
name:
setEventHandled
, type:
Bool
, default:
FALSE
¶ If checked, the events handled by the subgraph will be flagged as being handled.
see also SoView2DExtension.setEventHandled
Ignore handled events¶
-
name:
ignoreHandledEvents
, type:
Bool
, default:
FALSE
¶ If checked, events that are flagged as being handled are ignored by the subgraph.
Drawing order¶
-
name:
drawingOrder
, type:
Enum
, default:
NORMAL_ORDER
¶ Defines the drawing order that is used if the drawing order of the parent is not used.
Values:
Title | Name | Description |
---|---|---|
Normal Order | NORMAL_ORDER | Left to right. |
Reversed Order | REVERSED_ORDER | Right to left. |
Soview2d Order | SOVIEW2D_ORDER | Same order as the calling SoView2D. |
Parent Normal Order | PARENT_NORMAL_ORDER | If there is a parent SoView2DExtensionSeparator, then use its Drawing Order, else draw from left to right. |
Parent Reversed Order | PARENT_REVERSED_ORDER | If there is a parent SoView2DExtensionSeparator, then use its Drawing Order, else draw from right to left. |
Parent Soview2d Order | PARENT_SOVIEW2D_ORDER | If there is a parent SoView2DExtensionSeparator, then use its Drawing Order, else: same order as the calling SoView2D. |