SoView2DSetPosition¶
-
InventorModule
¶ genre View2D
author Christian Schumann
package FMEstable/ReleaseMeVis
dll SoView2DExtensions
definition SoView2DExtensions.def inherits from SoView2DExtension
keywords slice
,sync
,position
Purpose¶
Sets the slice index of connected SoView2D
modules such that a given position is matched best. Hence, it can be used for the synchronization of several SoView2D
modules.
Details¶
The implementation is kind of a workaround that will lead to two redraws! The reason for that is, that extensions are not supposed to change SoView2D
except during the evalEvent method. However, this extension is not interactive. Instead, the value of the position field is set from outside. That field change (of the position
field) leads to a redraw of the SoView2D
before the SoView2D.startSlice
can be set by the extension. The draw() method in the extension is now mainly used to build a list of the connected SoView2D
modules, as the extensions do not know to which SoView2D modules they are connected. The forceRedraw
field is then triggered by the python script which leads to an update of the SoView2D.startSlice
field of each collected SoView2D
, which leads again to a redraw.
Output Fields¶
Parameter Fields¶
Field Index¶
alt : Enum |
cursorShape : Enum |
needsValidVoxel : Bool |
button1 : Enum |
drawingOn : Bool |
position : Vector3 |
button2 : Enum |
editingOn : Bool |
renderOnSlab : Bool |
button3 : Enum |
fixZOn : Bool |
selectionTolerance : Float |
clipToSlice : Bool |
forceRedraw : Trigger |
setEventHandled : Bool |
color : Color |
ignoreHandledEvents : Bool |
shift : Enum |
control : Enum |
In Position : Vector3 |
wantsAllEvents : Bool |
createNewMode : Bool |
interactionProviderID : String |
wantsKeyEvents : Bool |
createNewModeRequest : Trigger |
maskValid : Bool |
wantsMouseWheelEvents : Bool |