Open Inventor Reference
|
Transform node with 3D interface for changing scaling, rotation, and translation. More...
#include <Inventor/manips/SoTransformerManip.h>
Public Member Functions | |
SoTransformerManip () | |
Constructor. | |
void | unsquishKnobs () |
Tells the dragger inside this manip to unsquish its rotation and scale knobs during the next traversal. | |
SbBool | isLocateHighlighting () |
Controls whether or not the dragger inside this manip will perform locate highlighting is used. | |
void | setLocateHighlighting (SbBool onOff) |
Controls whether or not the dragger inside this manip will perform locate highlighting is used. | |
Static Public Member Functions | |
static void | initClass () |
initialize the class | |
Protected Member Functions | |
virtual | ~SoTransformerManip () |
This is a new manipulator with some improvements over the older inventor manips. It has the following features: [1] full interface for rotate, translate, and scale, [2] better feedback, [3] locate highlighting.
SoTransformerManip is derived from SoTransform (by way of SoTransformManip). When its fields change, nodes following it in the scene graph rotate, scale, and/or translate.
As a subclass of SoTransformManip, this manipulator also has a 3D interface to edit some of its fields. In this case, the interface edits the scaleFactor , rotation and translation fields.
A manipulator differs from a dragger. When you move a dragger, no other nodes are affected. When you move an SoTransformManip, other nodes move along with it. (See the reference page for SoTransformManip).
The interface for an SoTransformerManip is exactly the same as that of the SoTransformerDragger. To find out more about the interface, see the reference page for SoTransformerDragger. To find out how the manipulator uses a dragger to provide its interface, see the reference page for SoTransformManip.
On screen, this manipulator will surround the objects influenced by its motion. This is because it turns on the surroundScale part of the dragger (See the reference page for SoSurroundScale)
TransformerManip { translation 0 0 0 rotation 0 0 1 0 scaleFactor 1 1 1 scaleOrientation 0 0 1 0 center 0 0 0 }
Definition at line 118 of file SoTransformerManip.h.
SoTransformerManip::SoTransformerManip | ( | ) |
virtual SoTransformerManip::~SoTransformerManip | ( | ) | [protected, virtual] |
static void SoTransformerManip::initClass | ( | ) | [static] |
Reimplemented from SoTransformManip.
SbBool SoTransformerManip::isLocateHighlighting | ( | ) |
Default is TRUE.
void SoTransformerManip::setLocateHighlighting | ( | SbBool | onOff | ) |
Default is TRUE.
void SoTransformerManip::unsquishKnobs | ( | ) |
Ordinarily, the knobs are only unsquished upon readin from file and when the mouse button is released at the end of a drag. If you want this to happen more often, then you should call this method.