| 1 |
NAME SoScaleUniformDragger SoScaleUniDrag "" { object you can scale uniformly in 3D by dragging with the mouse } |
| 2 |
|
| 3 |
INCLUDE draggers/SoScaleUniformDragger.h |
| 4 |
|
| 5 |
DESC { \cSoScaleUniformDragger\. |
| 6 |
is a simple dragger that scales |
| 7 |
uniformly in all 3 dimensions when dragged with the mouse. |
| 8 |
The local space is determined by its |
| 9 |
location in the scene graph. |
| 10 |
Transformation nodes placed before it will |
| 11 |
affect both the dragger and the plane of motion. |
| 12 |
\p |
| 13 |
This node has a \vscaleFactor\. field |
| 14 |
which always reflects |
| 15 |
its size in local space. |
| 16 |
If you set the field, the dragger will change accordingly. |
| 17 |
You can also connect fields of other nodes or engines from |
| 18 |
this one to make them follow the dragger's motion. |
| 19 |
\p |
| 20 |
This dragger contains four parts, \escaler\., \escalerActive\., |
| 21 |
\efeedback\., and \efeedbackActive\.. |
| 22 |
\p |
| 23 |
Each of these is set by default from a resource described in the Dragger |
| 24 |
Resources section of the online reference page for this class. You can |
| 25 |
change the parts in any instance of this dragger using |
| 26 |
\m\+setPart()\.\-SoDraggerSetPart()\.\.. |
| 27 |
\p |
| 28 |
You can make your program use different default resources for the parts |
| 29 |
by copying the file |
| 30 |
\v/usr/share/data/draggerDefaults/scaleUniformDragger.iv\. |
| 31 |
into your own directory, editing the file, and then |
| 32 |
setting the environment variable \vSO_DRAGGER_DIR\. to be a path to that directory. |
| 33 |
} |
| 34 |
|
| 35 |
DRAGGER_RESOURCE { |
| 36 |
scaleUniformScaler, |
| 37 |
scaler, |
| 38 |
"8 small white cubes at the corners of a larger 2x2x2 cube.", |
| 39 |
"picking this initiates the scaling" |
| 40 |
} |
| 41 |
|
| 42 |
DRAGGER_RESOURCE { |
| 43 |
scaleUniformScalerActive, |
| 44 |
scalerActive, |
| 45 |
"yellow version of scaler, but with extra yellow box connecting corners", |
| 46 |
"displayed instead of scaler while in motion" |
| 47 |
} |
| 48 |
|
| 49 |
DRAGGER_RESOURCE { |
| 50 |
scaleUniformFeedback, |
| 51 |
feedback, |
| 52 |
"thin purple 3-D crosshair", |
| 53 |
"shows center of scale when still" |
| 54 |
} |
| 55 |
|
| 56 |
DRAGGER_RESOURCE { |
| 57 |
scaleUniformFeedbackActive, |
| 58 |
feedbackActive, |
| 59 |
"thin, slightly brighter purple 3-D crosshair", |
| 60 |
"shows center of scale while in motion" |
| 61 |
} |
| 62 |
|
| 63 |
ALSO { |
| 64 |
SoInteractionKit, |
| 65 |
SoDragger, |
| 66 |
SoCenterballDragger, |
| 67 |
SoDirectionalLightDragger, |
| 68 |
SoDragPointDragger, |
| 69 |
SoHandleBoxDragger, |
| 70 |
SoJackDragger, |
| 71 |
SoPointLightDragger, |
| 72 |
SoRotateCylindricalDragger, |
| 73 |
SoRotateDiscDragger, |
| 74 |
SoRotateSphericalDragger, |
| 75 |
SoScale1Dragger, |
| 76 |
SoScale2Dragger, |
| 77 |
SoScale2UniformDragger, |
| 78 |
SoSpotLightDragger, |
| 79 |
SoTabBoxDragger, |
| 80 |
SoTabPlaneDragger, |
| 81 |
SoTrackballDragger, |
| 82 |
SoTransformBoxDragger, |
| 83 |
SoTransformerDragger, |
| 84 |
SoTranslate1Dragger, |
| 85 |
SoTranslate2Dragger |
| 86 |
} |
| 87 |
|