| 1 |
NAME SoTransformerManip "" "" { transform node with 3D interface for changing scaling, rotation, and translation } |
| 2 |
|
| 3 |
INCLUDE manips/SoTransformerManip.h |
| 4 |
|
| 5 |
DESC { |
| 6 |
This is a new manipulator with some improvements over the older inventor |
| 7 |
manips. It has the following features: [1] full interface for rotate, |
| 8 |
translate, and scale, [2] better feedback, [3] locate highlighting. |
| 9 |
\p |
| 10 |
\cSoTransformerManip\. |
| 11 |
is derived from \cSoTransform\. (by way of \cSoTransformManip\.). |
| 12 |
When its fields |
| 13 |
change, nodes following it in the scene graph rotate, scale, and/or translate. |
| 14 |
\p |
| 15 |
As a subclass of \cSoTransformManip\., this manipulator |
| 16 |
also has a 3D interface to edit some of its fields. |
| 17 |
In this case, the interface edits the \vscaleFactor\., \vrotation\. |
| 18 |
and \vtranslation\. fields. |
| 19 |
\p |
| 20 |
A manipulator differs from a dragger. When you move a dragger, |
| 21 |
no other nodes are affected. When you move an \cSoTransformManip\., |
| 22 |
other nodes move along with it. |
| 23 |
(See the reference page for \cSoTransformManip\.). |
| 24 |
\p |
| 25 |
The interface for an \cSoTransformerManip\. is exactly the same as that |
| 26 |
of the \cSoTransformerDragger\.. |
| 27 |
To find out more about the interface, see the reference page |
| 28 |
for \cSoTransformerDragger\.. To find out how the manipulator uses a |
| 29 |
dragger to provide its interface, see the reference page for |
| 30 |
\cSoTransformManip\.. |
| 31 |
\p |
| 32 |
On screen, this manipulator will surround the objects influenced by its |
| 33 |
motion. This is because it turns on the \esurroundScale\. part of the |
| 34 |
dragger (See the reference page for \cSoSurroundScale\.) |
| 35 |
} |
| 36 |
|
| 37 |
METHOD "" SoTransformerManip() { |
| 38 |
Constructor. |
| 39 |
} |
| 40 |
|
| 41 |
METHOD "" static SoType getClassTypeId() { |
| 42 |
Returns type identifier for this class. |
| 43 |
} |
| 44 |
|
| 45 |
METHOD "" void setLocateHighlighting( SbBool onOff ) {} |
| 46 |
METHOD "" SbBool isLocateHighlighting() |
| 47 |
{ |
| 48 |
Controls whether or not the dragger inside this manip will perform locate |
| 49 |
highlighting is used. Default is TRUE. |
| 50 |
} |
| 51 |
|
| 52 |
METHOD "" void unsquishKnobs() { |
| 53 |
Tells the dragger inside this manip to unsquish its rotation and scale knobs |
| 54 |
during the next traversal. |
| 55 |
Ordinarily, the knobs are only unsquished upon readin from file and when |
| 56 |
the mouse button is released at the end of a drag. If you want this to |
| 57 |
happen more often, then you should call this method. |
| 58 |
} |
| 59 |
|
| 60 |
ALSO { |
| 61 |
SoTransformerDragger, |
| 62 |
SoTransform, |
| 63 |
SoCenterballManip, |
| 64 |
SoHandleBoxManip, |
| 65 |
SoJackManip, |
| 66 |
SoTabBoxManip, |
| 67 |
SoTrackballManip, |
| 68 |
SoTransformBoxManip, |
| 69 |
SoTransformManip |
| 70 |
} |