SoView2DExtensionSeparator¶
- InventorModule¶
genre
author
package
dll
definition
see also
inherits from
keywords
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.
Windows¶
Default Panel¶
Input Fields¶
child¶
- name: child, type: SoNode¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Visible Fields¶
Draw children¶
- name: drawingOn, type: Bool, default: TRUE¶
If checked, children will be rendered.
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 render from left to right. |
Parent Reversed Order |
PARENT_REVERSED_ORDER |
If there is a parent SoView2DExtensionSeparator, then use its Drawing Order, else render from right to left. |
Parent Soview2d Order |
PARENT_SOVIEW2D_ORDER |
If there is a parent SoView2DExtensionSeparator, then use its Drawing Order, else render in the same order as the calling SoView2D. |
Forward events to children¶
- name: forwardEvents, type: Bool, default: TRUE¶
If checked, incoming events are forwarded to child extensions.
Mark handled events as unhandled before forwarding¶
- name: markAsUnhandled, type: Bool, default: FALSE¶
If checked, events flagged as being handled are unflagged as again before they are passed to the children.