SoJackDragger¶
- InventorModule¶
genre
author
package
definition
Purpose¶
The module SoJackDragger functions as a composite dragger shaped like a jack from the children’s game Jacks. Three lines along the x, y, and z axes form the central star shape, which can be dragged with the mouse to rotate the jack. Dragging any of the small cubes mounted at the ends of the axes scales the jack uniformly in all three dimensions. At the core of the jack resides an SoDragPointDragger for translating the jack.
Each shape represents a different dragger with modified default geometry. All components of the jack dragger ensure synchronized movement. The star serves as an SoRotateSphericalDragger, and dragging it updates the rotation field of the jack dragger. The small cubes function as an SoScaleUniformDragger, tied to the Scale Factor field. The position of the SoDragPointDragger is determined by the Translation field. As with all draggers, if the fields are changed, the dragger moves to match the new settings.
Note: This does not act as a SoTransform! To move other objects with this dragger, either:
Use a
SoJackManip, which subclassesSoTransform. It creates a dragger and uses it as the interface to change its fields.Use field-to-field connections to connect the fields of this dragger to those of any
SoTransformnode.
Interaction¶
Press the Ctrl key while the mouse is over the dragger to toggle between translations in the principal planes.
Windows¶
Default Panel¶
Output Fields¶
self¶
- name: self, type: SoNode¶
Parameter Fields¶
Field Index¶
|
|
|
|
|
Visible Fields¶
Is Active¶
- name: isActive, type: Bool, persistent: no¶
Shows whether the dragger is currently being interacted with.
Rotation¶
- name: rotation, type: Rotation, default: 0 0 1 0¶
Sets and shows the orientation of the dragger.
Translation¶
- name: translation, type: Vector3, default: 0 0 0¶
Sets and shows the position of the dragger.
Scale Factor¶
- name: scaleFactor, type: Vector3, default: 1 1 1¶
Sets and shows the scale factor.