SoDragPointDragger¶
-
InventorModule
¶ genre InventorDraggers
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def
Purpose¶
SoDragPointDragger is a compound dragger that translates in all three dimensions when dragged with the mouse. It is made up of six smaller draggers, which it displays two at a time. Each pair has one plane dragger and one line dragger. The line dragger is oriented perpendicular to the plane, so together the plane/line pair lets you move through all of 3-space.
SoDragPointDragger
has a total of three such pairs, oriented along the x, y, and z axes of its local space. You can cycle through the three pairs by hitting the key with the cursor over the dragger. (You need not press the mouse button.)
The line draggers are SoTranslate1Dragger
and the plane draggers are SoTranslate2Dragger
. So you can use the key to constrain the motion of a plane dragger along one of the two axes within the plane, as described in the SoTranslate2Dragger
help page.
SoDragPointDragger
adds extra feedback parts to provide a more intuitive idea of where you are placed in three-space. There are three feedback planes and three feedback axes; each corresponds to one of the plane or line draggers, but spans a much greater distance. When you drag along a line, that line’s larger feedback axis is displayed, and remains anchored in space while the dragger slides along it. This helps establishing the motion of the dragger relative to the rest of the scene. Similarly, when you drag within a plane, the larger (but transparent) feedback plane establishes a ground plane for you to move upon. The location of the dragger within the plane is pinpointed by two intersecting axes that always cross below the cursor and extend to the edges of the plane. When you move dragPoint to the edge of the feedback plane (or line), the feedback will jump to a new location in that direction, so that the dragger never leaves the feedback behind.
The primary directions of motion are given by the local space of the dragger. Transforms earlier in the scene will affect the dragger, its children, and the orientation of its directions of motion.
This node has a translation field which always reflects its position in local space. Setting the field moves the dragger to that point. You can also connect fields of other nodes or engines from this one to make them follow the dragger’s motion.