SoDiagram2DExtension
-
InventorModule
-
Purpose
Modules derived from SoDiagram2DExtension can overlay the image of a SoDiagram2D
with their own drawing and provide specific mouse and keyboard interactions.
Usage
Add the extensions to the Open Inventor scene graph in front of the SoDiagram2D
module on which they should be applied. The extensions and the SoDiagram2D
must be under the same SoSeparator
node if one is used.
Output Fields
self
-
name:
self
, type:
SoNode
Parameter Fields
Hidden Fields
interactionProviderID
-
name:
interactionProviderID
, type:
String
Sets an ID that overrides the provider ID of the Managed Interactions (if SoView2D.useManagedInteraction
is activated in the SoView2D
). These IDs are visible in SoInteractionInfo
and can be used in SoInteractionMapping
.
If this is left empty, the name of the module is used instead. This field is mainly intended to be used if the provider ID must be set from scripting to disambiguate several instances of the same macro module.
isEnabled
-
name:
isEnabled
, type:
Bool
, default:
TRUE
If checked, the rendering of the extension overlay is enabled.
Otherwise, this usually also disables isEditingEnabled
.
isEditingEnabled
-
name:
isEditingEnabled
, type:
Bool
, default:
TRUE
If checked, the interaction with the extension through mouse and keyboard (if applicable) is enabled.
If isEnabled
is disabled, this is usually also implicitly disabled.