SoJackDragger¶
-
InventorModule
¶ genre InventorDraggers
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def
Purpose¶
SoJackDragger
is a composite dragger in the shape of a jack from the children’s game jacks. Three lines along the x, y, and z axes form the central star shape, which you can drag with the mouse to rotate the jack. Dragging any of the small cubes mounted at the end of the axes will scale the jack uniformly in all 3 dimensions. At the core of the jack is an SoDragPointDragger
for translating the jack.
Each of these shapes is a different dragger with the default geometry changed. All of them are parts of the jack dragger, which keeps them moving together. The star is an SoRotateSphericalDragger
, and dragging it updates the rotation field of the jack dragger. The small cubes are an SoScaleUniformDragger
, tied to the Scale Factor
field. The position of the SoDragPointDragger is given by the Translation
field. As with all draggers, if you change the fields the dragger will move to match the new settings.
Remember: This is not a SoTransform
! If you want to move other objects with this dragger, you can either:
- Use a
SoJackManip
, which is subclassed fromSoTransform
. It creates one of these draggers 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
SoTransform
-node.
Parameter Fields¶
Field Index¶
enable : Bool |
Is Active : Bool |
Rotation : Rotation |
Scale Factor : Vector3 |
Translation : Vector3 |
Visible Fields¶
Is Active¶
-
name:
isActive
, type:
Bool
, persistent:
no
¶ TRUE when mouse is down and dragging, else FALSE.
Rotation¶
-
name:
rotation
, type:
Rotation
, default:
0 0 1 0
¶ Orientation of the dragger. Three lines along the x, y, and z axes form the central star shape, which you can drag with the mouse to rotate the dragger.
Scale Factor¶
-
name:
scaleFactor
, type:
Vector3
, default:
1 1 1
¶ With the small cubes you change the
Scale Factor
field.