SoTabPlaneDragger

InventorModule
genre InventorDraggers
author Silicon Graphics Inc
package MeVisLab/Standard
definition inventor.def

Purpose

SoTabPlaneDragger is a dragger that allows the user to interactively translate and scale objects in a plane. It appears as a square white outline with smaller green squares (or tabs) positioned in the corners and along the center of each edge. Dragging a corner tab scales the dragger in 2D by scaling about the opposite corner. Dragging an edge tab performs 1D scaling about the opposite edge. The remainder of the dragger is invisible but pickable; selecting it initiates translation within the plane.

The dragger attempts to maintain a constant size for the small tabs in screen space. Every time a drag begins or ends, the size is recalculated based on the viewing and modeling matrix.

When dragging the translator part, pressing the key constrains motion to either the local x-axis or the y-axis. The direction is determined by your initial mouse gesture after pressing the key. Releasing the key removes the constraint.

When the translator part is dragged, the dragger updates its Translation field. The various scaling components cause changes to both the Scale Factor and Translation fields, as scaling about a point other than the center adds translation to the center of the dragger. If you set the field, the dragger will move accordingly. You can also connect fields of other nodes or engines to this one to make them follow the dragger’s motion.

Interaction

Pressing the Shift key constrains the translation to a single direction.

Windows

Default Panel

../../../Modules/Inventor/InventorBase/mhelp/Images/Screenshots/SoTabPlaneDragger._default.png

Output Fields

self

name: self, type: SoNode

Parameter Fields

Visible Fields

Is Active

name: isActive, type: Bool, persistent: no

Shows whether this dragger is active.

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 affecting the dragger.

Hidden Fields

enable

name: enable, type: Bool, default: TRUE