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