SoView2DSetPosition¶
- InventorModule¶
 genre
author
package
dll
definition
inherits from
keywords
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.
Usage¶
Connect like any other extension to your SoView2D.
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.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
 The inventor node to be connected to your scene graph.
Parameter Fields¶
Field Index¶
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
  | 
Visible Fields¶
In Position¶
- name: inPosition, type: Vector3, default: 0 0 0¶
 The position to which the connected viewers should slice.