1SoScale2UniformDragger(3IV)()                    SoScale2UniformDragger(3IV)()
2
3
4

NAME

6       SoScale2UniformDragger  —  object you can scale uniformly in two dimen‐
7       sions by dragging with the mouse
8

INHERITS FROM

10       SoBase > SoFieldContainer > SoNode >  SoBaseKit  >  SoInteractionKit  >
11       SoDragger > SoScale2UniformDragger
12

SYNOPSIS

14       #include <Inventor/draggers/SoScale2UniformDragger.h>
15
16          Fields from class SoScale2UniformDragger:
17
18     SoSFVec3f           scaleFactor
19
20          Fields from class SoDragger:
21
22     SoSFBool            isActive
23
24          Fields from class SoInteractionKit:
25
26     SoSFEnum            renderCaching
27     SoSFEnum            boundingBoxCaching
28     SoSFEnum            renderCulling
29     SoSFEnum            pickCulling
30
31          Parts from class SoBaseKit:
32
33     (SoNodeKitListPart)  callbackList
34
35          Methods from class SoScale2UniformDragger:
36
37                         SoScale2UniformDragger()
38     static const SoNodekitCatalog *
39                         getClassNodekitCatalog() const
40     static SoType       getClassTypeId()
41
42          Methods from class SoDragger:
43
44     void                addStartCallback(SoDraggerCB  *f,  void  *userData  =
45                              NULL)
46     void                removeStartCallback(SoDraggerCB *f, void *userData  =
47                              NULL)
48     void                addMotionCallback(SoDraggerCB  *f,  void  *userData =
49                              NULL)
50     void                removeMotionCallback(SoDraggerCB *f, void *userData =
51                              NULL)
52     void                addFinishCallback(SoDraggerCB  *f,  void  *userData =
53                              NULL)
54     void                removeFinishCallback(SoDraggerCB *f, void *userData =
55                              NULL)
56     void                addValueChangedCallback(SoDraggerCB  *f,  void *user‐
57                              Data = NULL)
58     void                removeValueChangedCallback(SoDraggerCB    *f,    void
59                              *userData = NULL)
60     SbBool              enableValueChangedCallbacks()
61     void                setMinGesture(int pixels)
62     int                 getMinGesture() const
63     static void         setMinScale(float newMinScale)
64     static float        getMinScale()
65
66          Methods from class SoInteractionKit:
67
68     virtual  SbBool      setPartAsPath(const SbName &partName, SoPath *surro‐
69                              gatePath )
70
71          Methods from class SoBaseKit:
72
73     virtual const SoNodekitCatalog *
74                              getNodekitCatalog() const
75     virtual   SoNode   *         getPart(const   SbName   &partName,   SbBool
76                                   makeIfNeeded)
77     SbString                 getPartString(const SoBase *part)
78     virtual  SoNodeKitPath *  createPathToPart(const SbName &partName, SbBool
79                                   makeIfNeeded, const SoPath *pathToExtend  =
80                                   NULL)
81     virtual SbBool           setPart(const SbName &partName, SoNode *newPart)
82     SbBool                   set(char *partName, char *parameters)
83     SbBool                   set(char *nameValuePairs)
84     static SbBool            isSearchingChildren()
85     static void              setSearchingChildren(SbBool newVal)
86
87          Methods from class SoNode:
88
89     void                setOverride(SbBool state)
90     SbBool              isOverride() const
91     SoNode *            copy(SbBool copyConnections = FALSE) const
92     virtual SbBool      affectsState() const
93     static SoNode *     getByName(const SbName &name)
94     static int          getByName(const SbName &name, SoNodeList &list)
95
96          Methods from class SoFieldContainer:
97
98     void                setToDefaults()
99     SbBool              hasDefaultValues() const
100     SbBool              fieldsAreEqual(const SoFieldContainer *fc) const
101     void                copyFieldValues(const  SoFieldContainer  *fc,  SbBool
102                              copyConnections = FALSE)
103     void                get(SbString &fieldDataString)
104     virtual int         getFields(SoFieldList &resultList) const
105     virtual SoField *   getField(const SbName &fieldName) const
106     SbBool              getFieldName(const SoField *field, SbName &fieldName)
107                              const
108     SbBool              isNotifyEnabled() const
109     SbBool              enableNotify(SbBool flag)
110
111          Methods from class SoBase:
112
113     void                ref()
114     void                unref() const
115     void                unrefNoDelete() const
116     void                touch()
117     virtual SoType      getTypeId() const
118     SbBool              isOfType(SoType type) const
119     virtual void        setName(const SbName &name)
120     virtual SbName      getName() const
121
122          Macros from class SoBaseKit:
123
124     SO_GET_PART(kit, partName, partClass)
125     SO_CHECK_PART(kit, partName, partClass)
126
127

DESCRIPTION

129       SoScale2UniformDragger is a simple dragger that scales uniformly in the
130       x and y dimensions when dragged within the x-y plane  with  the  mouse.
131       The  local  space  is  determined  by  its location in the scene graph.
132       Transformation nodes placed before it will affect both the dragger  and
133       the plane of motion.
134
135       This  node  has  a  scaleFactor field which always reflects its size in
136       local space. If you set the field, the dragger will change accordingly.
137       You  can also connect fields of other nodes or engines from this one to
138       make them follow the dragger's motion.
139
140       This dragger contains four parts, scaler, scalerActive,  feedback,  and
141       feedbackActive.
142
143       Each  of these is set by default from a resource described in the Drag‐
144       ger Resource section of the online reference page for this  class.  You
145       can change the parts in any instance of this dragger using setPart().
146
147       You can make your program use different default resources for the parts
148       by copying the file  /usr/share/data/draggerDefaults/scale2UniformDrag‐
149       ger.iv  into your own directory, editing the file, and then setting the
150       environment variable SO_DRAGGER_DIR to be a path to that directory.
151

FIELDS

153     SoSFVec3f           scaleFactor
154          Scale factor affecting the dragger.
155
156

METHODS

158                         SoScale2UniformDragger()
159          Constructor.
160
161     static const SoNodekitCatalog *
162                         getClassNodekitCatalog() const
163          Returns an SoNodekitCatalog for this class
164
165     static SoType       getClassTypeId()
166          Returns type identifier for this class.
167
168

CATALOG PARTS

170       ┌──────────────────────────────────────────────────────────┐
171All parts                         
172NULL by 
173Part Name        Part Type         Default Type   Default 
174       │                                                          │
175       │callbackList     NodeKitListPart   --               yes   │
176       │scaler           Separator         --               yes   │
177       │scalerActive     Separator         --               yes   │
178       │feedback         Separator         --               yes   │
179       │feedbackActive   Separator         --               yes   │
180       │                                                          │
181       └──────────────────────────────────────────────────────────┘
182       ┌───────────────────────────────────────────────────────────────┐
183Extra information for list parts from above table        
184       │                                                               │
185Part Name      Container Type   Permissible Types              
186       │                                                               │
187       │callbackList   Separator        Callback, EventCallback        │
188       │                                                               │
189       └───────────────────────────────────────────────────────────────┘

DRAGGER RESOURCES

191       .in 0n+.5i
192     Resource:         scale2UniformScaler
193       .in 0n+.5i
194     Part:             scaler
195     Appearance:       white outline of square  with  photo-corner  shapes  at
196     vertices. Lies within plane of motion
197     Description:      picking this initiates the scaling
198
199                         .in 0n+.5i
200     Resource:         scale2UniformScalerActive
201                         .in 0n+.5i
202     Part:             scalerActive
203     Appearance:       yellow version of scaler, but with an extra yellow sur‐
204     rounding box
205     Description:      displayed instead of scaler while in motion
206
207                         .in 0n+.5i
208     Resource:         scale2UniformFeedback
209                         .in 0n+.5i
210     Part:             feedback
211     Appearance:       thin purple 3-D crosshair
212     Description:      shows center of scale when still
213
214                         .in 0n+.5i
215     Resource:         scale2UniformFeedbackActive
216                         .in 0n+.5i
217     Part:             feedbackActive
218     Appearance:       thin, slightly brighter purple 3-D crosshair
219     Description:      shows center of scale while in motion
220
221

FILE FORMAT/DEFAULTS

223       Scale2UniformDragger {
224          renderCaching       AUTO
225          boundingBoxCaching  AUTO
226          renderCulling       AUTO
227          pickCulling         AUTO
228          isActive            FALSE
229          scaleFactor         1 1 1
230          callbackList        NULL
231          scaler              <scale2UniformScaler resource>
232          scalerActive        <scale2UniformScalerActive resource>
233          feedback            <scale2UniformFeedback resource>
234          feedbackActive      <scale2UniformFeedbackActive resource>
235     }
236

SEE ALSO

238       SoInteractionKit, SoDragger,  SoCenterballDragger,  SoDirectionalLight‐
239       Dragger,    SoDragPointDragger,    SoHandleBoxDragger,   SoJackDragger,
240       SoPointLightDragger,  SoRotateCylindricalDragger,  SoRotateDiscDragger,
241       SoRotateSphericalDragger, SoScale1Dragger, SoScale2Dragger, SoScaleUni‐
242       formDragger,  SoSpotLightDragger,  SoTabBoxDragger,  SoTabPlaneDragger,
243       SoTrackballDragger,     SoTransformBoxDragger,    SoTransformerDragger,
244       SoTranslate1Dragger, SoTranslate2Dragger
245
246
247
248
249                                                 SoScale2UniformDragger(3IV)()
Impressum