Debian Codegraph @

lib/interaction/src/draggers/SoTranslate1Dragger.c++

raw symbols SCIP
1 /*
2 *
3 * Copyright (C) 2000 Silicon Graphics, Inc. All Rights Reserved.
4 *
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
9 *
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
14 *
15 * Further, this software is distributed without any warranty that it is
16 * free of the rightful claim of any third person regarding infringement
17 * or the like. Any license provided herein, whether implied or
18 * otherwise, applies only to this software file. Patent licenses, if
19 * any, provided herein do not apply to combinations of this program with
20 * other software, or any other product whatsoever.
21 *
22 * You should have received a copy of the GNU Lesser General Public
23 * License along with this library; if not, write to the Free Software
24 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
25 *
26 * Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
27 * Mountain View, CA 94043, or:
28 *
29 * http://www.sgi.com
30 *
31 * For further information regarding this notice, see:
32 *
33 * http://oss.sgi.com/projects/GenInfo/NoticeExplan/
34 *
35 */
36
37 /*
38 * Copyright (C) 1990,91 Silicon Graphics, Inc.
39 *
40 _______________________________________________________________________
41 ______________ S I L I C O N G R A P H I C S I N C . ____________
42 |
43 | $Revision: 1.1.1.1 $
44 |
45 | Classes:
46 | SoTranslate1Dragger
47 |
48 | Author(s): Paul Isaacs
49 |
50 ______________ S I L I C O N G R A P H I C S I N C . ____________
51 _______________________________________________________________________
52 */
53
54
55 #include <cstdio>
56 #include <Inventor/SbLinear.h>cxx . . $ `<file>/lib/database/include/Inventor/SbLinear.h`/
57 #include <Inventor/SoDB.h>cxx . . $ `<file>/lib/database/include/Inventor/SoDB.h`/
58 #include <Inventor/sensors/SoFieldSensor.h>cxx . . $ `<file>/lib/database/include/Inventor/sensors/SoFieldSensor.h`/
59 #include <Inventor/SoInput.h>cxx . . $ `<file>/lib/database/include/Inventor/SoInput.h`/
60 #include <Inventor/SoPath.h>cxx . . $ `<file>/lib/database/include/Inventor/SoPath.h`/
61 #include <Inventor/projectors/SbLineProjector.h>cxx . . $ `<file>/lib/database/include/Inventor/projectors/SbLineProjector.h`/
62 #include <Inventor/draggers/SoTranslate1Dragger.h>cxx . . $ `<file>/lib/interaction/include/Inventor/draggers/SoTranslate1Dragger.h`/
63 #include <Inventor/nodes/SoSeparator.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoSeparator.h`/
64 #include <Inventor/nodes/SoSwitch.h>cxx . . $ `<file>/lib/database/include/Inventor/nodes/SoSwitch.h`/
65
66 #include "geom/SoTranslate1DraggerGeom.h"cxx . . $ `<file>/lib/interaction/src/draggers/geom/SoTranslate1DraggerGeom.h`/
67
68
69 SO_KIT_SOURCEcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:194:9`!(SoTranslate1Dragger);
70
71 ////////////////////////////////////////////////////////////////////////
72 //
73 // Description:
74 // Constructor
75 //
76 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::SoTranslate1Draggercxx . . $ SoTranslate1Dragger#SoTranslate1Dragger(49f6e7a06ebc5aa8).()
77 //
78 ////////////////////////////////////////////////////////////////////////
79 {
80 SO_KIT_CONSTRUCTORcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:254:9`!(SoTranslate1Dragger);
81
82 isBuiltIncxx . . $ SoFieldContainer#isBuiltIn. = TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!;
83
84 // Put this stuff under the geomSeparator so it will draw more
85 // efficiently.
86 SO_KIT_ADD_CATALOG_ENTRYcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:333:9`!(translatorSwitch, SoSwitch, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!,
87 geomSeparator, ,FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!);
88 SO_KIT_ADD_CATALOG_ENTRYcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:333:9`!(translator, SoSeparator, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!,
89 translatorSwitch, ,TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
90 SO_KIT_ADD_CATALOG_ENTRYcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:333:9`!(translatorActive, SoSeparator, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!,
91 translatorSwitch, ,TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
92 SO_KIT_ADD_CATALOG_ENTRYcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:333:9`!(feedbackSwitch, SoSwitch, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!,
93 geomSeparator, ,FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`!);
94 SO_KIT_ADD_CATALOG_ENTRYcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:333:9`!(feedback, SoSeparator, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!,
95 feedbackSwitch, ,TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
96 SO_KIT_ADD_CATALOG_ENTRYcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:333:9`!(feedbackActive, SoSeparator, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!,
97 feedbackSwitch, ,TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!);
98
99 // read geometry for shared parts
100 if (SO_KIT_IS_FIRST_INSTANCEcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:258:9`!())
101 readDefaultPartscxx . . $ SoInteractionKit#readDefaultParts(5e891a9f77bb0eff).("translate1Dragger.iv", geomBuffercxx . . $ SoTranslate1Dragger#geomBuffer., sizeof(geomBuffercxx . . $ SoTranslate1Dragger#geomBuffer.) );
102
103 SO_KIT_ADD_FIELDcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:261:9`!(translation, (0.0, 0.0, 0.0));
104
105 SO_KIT_INIT_INSTANCEcxx . . $ `lib/nodekits/include/Inventor/nodekits/SoSubKit.h:546:9`!();
106
107 // create the parts...
108 setPartAsDefaultcxx . . $ SoInteractionKit#setPartAsDefault(91c97549ed5f0a6b).("translator"cxx . . $ SbName#SbName(85c52e162fed56f9)., "translate1Translator"cxx . . $ SbName#SbName(85c52e162fed56f9).);
109 setPartAsDefaultcxx . . $ SoInteractionKit#setPartAsDefault(91c97549ed5f0a6b).("translatorActive"cxx . . $ SbName#SbName(85c52e162fed56f9).,"translate1TranslatorActive"cxx . . $ SbName#SbName(85c52e162fed56f9).);
110 setPartAsDefaultcxx . . $ SoInteractionKit#setPartAsDefault(91c97549ed5f0a6b).("feedback"cxx . . $ SbName#SbName(85c52e162fed56f9)., "translate1Feedback"cxx . . $ SbName#SbName(85c52e162fed56f9).);
111 setPartAsDefaultcxx . . $ SoInteractionKit#setPartAsDefault(91c97549ed5f0a6b).("feedbackActive"cxx . . $ SbName#SbName(85c52e162fed56f9)., "translate1FeedbackActive"cxx . . $ SbName#SbName(85c52e162fed56f9).);
112
113 // Set the switches to 0...
114 setSwitchValuecxx . . $ SoInteractionKit#setSwitchValue(de18c6a3dadfdca6).( translatorSwitchcxx . . $ SoTranslate1Dragger#translatorSwitch..getValuecxx . . $ SoSFNode#getValue(b794963b450d51b3).(), 0 );
115 setSwitchValuecxx . . $ SoInteractionKit#setSwitchValue(de18c6a3dadfdca6).( feedbackSwitchcxx . . $ SoTranslate1Dragger#feedbackSwitch..getValuecxx . . $ SoSFNode#getValue(b794963b450d51b3).(), 0 );
116
117 // Create the line projector
118 lineProjcxx . . $ SoTranslate1Dragger#lineProj. = new SbLineProjectorcxx . . $ SbLineProjector#();
119
120 // add the callbacks to perform the dragging
121 addStartCallbackcxx . . $ SoDragger#addStartCallback(5d3f11b67c4aec04).( &SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::startCBcxx . . $ SoTranslate1Dragger#startCB(7027446dc0b7318f). );
122 addMotionCallbackcxx . . $ SoDragger#addMotionCallback(5d3f11b67c4aec04).( &SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::motionCBcxx . . $ SoTranslate1Dragger#motionCB(7027446dc0b7318f). );
123 addFinishCallbackcxx . . $ SoDragger#addFinishCallback(5d3f11b67c4aec04).( &SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::finishCBcxx . . $ SoTranslate1Dragger#finishCB(7027446dc0b7318f). );
124
125 // Updates the translation field when the motionMatrix is set.
126 addValueChangedCallbackcxx . . $ SoDragger#addValueChangedCallback(5d3f11b67c4aec04).( &SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::valueChangedCBcxx . . $ SoTranslate1Dragger#valueChangedCB(7027446dc0b7318f). );
127
128 // Updates the motionMatrix when the translation field is set.
129 fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor. = new SoFieldSensorcxx . . $ SoFieldSensor#( &SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::fieldSensorCBcxx . . $ SoTranslate1Dragger#fieldSensorCB(c8d298b3e215c027)., this);
130 fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->setPrioritycxx . . $ SoDelayQueueSensor#setPriority(cb2f890c2fdad230).( 0 );
131
132 setUpConnectionscxx . . $ SoTranslate1Dragger#setUpConnections(9b79fb6aee4c0440).( TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`!, TRUEcxx . . $ `lib/database/include/Inventor/SbBasic.h:80:12`! );
133 }
134
135 ////////////////////////////////////////////////////////////////////////
136 //
137 // Description:
138 // Destructor
139 //
140 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::~cxx . . $ SoTranslate1Dragger#`~SoTranslate1Dragger`(49f6e7a06ebc5aa8).SoTranslate1Draggercxx . . $ SoTranslate1Dragger#()
141 //
142 ////////////////////////////////////////////////////////////////////////
143 {
144 delete lineProjcxx . . $ SoTranslate1Dragger#lineProj.;
145 if (fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.)
146 delete fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.;
147 }
148
149 // detach/attach any sensors, callbacks, and/or field connections.
150 // Called by: start/end of SoBaseKit::readInstance
151 // and on new copy by: start/end of SoBaseKit::copy.
152 // Classes that redefine must call setUpConnections(TRUE,TRUE)
153 // at end of constructor.
154 // Returns the state of the node when this was called.
155 SbBoolcxx . . $ SbBool#
156 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::setUpConnectionscxx . . $ SoTranslate1Dragger#setUpConnections(9b79fb6aee4c0440).( SbBoolcxx . . $ SbBool# onOff, SbBoolcxx . . $ SbBool# doItAlways )
157 {
158 if ( !doItAlways && connectionsSetUpcxx . . $ SoBaseKit#connectionsSetUp. == onOff)
159 return onOff;
160
161 if ( onOff ) {
162
163 // We connect AFTER base class.
164 SoDraggercxx . . $ SoDragger#::setUpConnectionscxx . . $ SoInteractionKit#setUpConnections(9b79fb6aee4c0440).( onOff, FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`! );
165
166 // Call the sensor CBs to make things are up-to-date.
167 fieldSensorCBcxx . . $ SoTranslate1Dragger#fieldSensorCB(c8d298b3e215c027).( this, NULLcxx . . $ `/usr/lib/gcc/x86_64-linux-gnu/15/include/stddef.h:416:9`! );
168
169 // Connect the field sensors
170 if (fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->getAttachedFieldcxx . . $ SoFieldSensor#getAttachedField(c4a4d937024b6702).() != &translationcxx . . $ SoTranslate1Dragger#translation.)
171 fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->attachcxx . . $ SoFieldSensor#attach(6a35cc9f7090653f).( &translationcxx . . $ SoTranslate1Dragger#translation. );
172 }
173 else {
174
175 // We disconnect BEFORE base class.
176
177 // Disconnect the field sensors.
178 if (fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->getAttachedFieldcxx . . $ SoFieldSensor#getAttachedField(c4a4d937024b6702).())
179 fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->detachcxx . . $ SoFieldSensor#detach(49f6e7a06ebc5aa8).();
180
181 SoDraggercxx . . $ SoDragger#::setUpConnectionscxx . . $ SoInteractionKit#setUpConnections(9b79fb6aee4c0440).( onOff, FALSEcxx . . $ `lib/database/include/Inventor/SbBasic.h:79:12`! );
182 }
183
184 return !(connectionsSetUpcxx . . $ SoBaseKit#connectionsSetUp. = onOff);
185 }
186
187 ////////////////////////////////////////////////////////////////////////
188 //
189 // Description:
190 // Set up the highlighting, projector, and the initial hit on
191 // the dragger
192 //
193 // Use: private
194 //
195 void
196 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::dragStartcxx . . $ SoTranslate1Dragger#dragStart(49f6e7a06ebc5aa8).()
197 //
198 ////////////////////////////////////////////////////////////////////////
199 {
200 // Set the switches to 1...
201 setSwitchValuecxx . . $ SoInteractionKit#setSwitchValue(de18c6a3dadfdca6).( translatorSwitchcxx . . $ SoTranslate1Dragger#translatorSwitch..getValuecxx . . $ SoSFNode#getValue(b794963b450d51b3).(), 1 );
202 setSwitchValuecxx . . $ SoInteractionKit#setSwitchValue(de18c6a3dadfdca6).( feedbackSwitchcxx . . $ SoTranslate1Dragger#feedbackSwitch..getValuecxx . . $ SoSFNode#getValue(b794963b450d51b3).(), 1 );
203
204 // Establish the projector line in working space.
205 // Working space is space at end of motion matrix.
206 // translate direction is defined as (1,0,0) in local space.
207 SbVec3fcxx . . $ SbVec3f# startLocalHitPt = getLocalStartingPointcxx . . $ SoDragger#getLocalStartingPoint(42d43ea8522fe3bf).();
208 lineProjcxx . . $ SoTranslate1Dragger#lineProj.->setLinecxx . . $ SbLineProjector#setLine(40219236977e8d5e).(SbLinecxx . . $ SbLine#SbLine(d696704770a33d8f).(startLocalHitPt,
209 startLocalHitPt +cxx . . $ operator+(af63bf8d0639b76b). SbVec3fcxx . . $ SbVec3f#SbVec3f(bd1040fe176e0786).(1,0,0)));
210 }
211
212 ////////////////////////////////////////////////////////////////////////
213 //
214 // Description:
215 // Stretch the dragger according to the motion along the line
216 // projector
217 //
218 // Use: private
219 //
220 void
221 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::dragcxx . . $ SoTranslate1Dragger#drag(49f6e7a06ebc5aa8).()
222 //
223 ////////////////////////////////////////////////////////////////////////
224 {
225 // Set up the projector space and view.
226 // Working space is space at end of motion matrix.
227 lineProjcxx . . $ SoTranslate1Dragger#lineProj.->setViewVolumecxx . . $ SbProjector#setViewVolume(187982bfa537c808).( getViewVolumecxx . . $ SoDragger#getViewVolume(ee52a61c9e3934e6).() );
228 lineProjcxx . . $ SoTranslate1Dragger#lineProj.->setWorkingSpacecxx . . $ SbProjector#setWorkingSpace(37d2f951b3ffd7a6).( getLocalToWorldMatrixcxx . . $ SoDragger#getLocalToWorldMatrix(2db31fc6bbb60646).() );
229
230 // Get newHitPt and startHitPt in workspace.
231 SbVec3fcxx . . $ SbVec3f# newHitPt = lineProjcxx . . $ SoTranslate1Dragger#lineProj.->projectcxx . . $ SbLineProjector#project(52e93d88cc4c3965).( getNormalizedLocaterPositioncxx . . $ SoDragger#getNormalizedLocaterPosition(e67d94fc922bbbd4).());
232 SbVec3fcxx . . $ SbVec3f# startHitPt = getLocalStartingPointcxx . . $ SoDragger#getLocalStartingPoint(42d43ea8522fe3bf).();
233
234 // Figure out the translation relative to start position.
235 SbVec3fcxx . . $ SbVec3f# motion = newHitPt -cxx . . $ operator-(af63bf8d0639b76b). startHitPt;
236
237 // Append this to the startMotionMatrix, which we saved at the beginning
238 // of the drag, to find the current motion matrix.
239 setMotionMatrixcxx . . $ SoDragger#setMotionMatrix(37d2f951b3ffd7a6).( appendTranslationcxx . . $ SoDragger#appendTranslation(dddd3455b0488ad9).( getStartMotionMatrixcxx . . $ SoDragger#getStartMotionMatrix(c49c36ee78b0a89e).(), motion ) );
240 }
241
242 ////////////////////////////////////////////////////////////////////////
243 //
244 // Description:
245 //
246 // Use: private
247 //
248 void
249 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::dragFinishcxx . . $ SoTranslate1Dragger#dragFinish(49f6e7a06ebc5aa8).()
250 //
251 ////////////////////////////////////////////////////////////////////////
252 {
253 // Set the switches to 0...
254 setSwitchValuecxx . . $ SoInteractionKit#setSwitchValue(de18c6a3dadfdca6).( translatorSwitchcxx . . $ SoTranslate1Dragger#translatorSwitch..getValuecxx . . $ SoSFNode#getValue(b794963b450d51b3).(), 0 );
255 setSwitchValuecxx . . $ SoInteractionKit#setSwitchValue(de18c6a3dadfdca6).( feedbackSwitchcxx . . $ SoTranslate1Dragger#feedbackSwitch..getValuecxx . . $ SoSFNode#getValue(b794963b450d51b3).(), 0 );
256 }
257
258 ////////////////////////////////////////////////////////////////////
259 // Stubs for callbacks
260 ////////////////////////////////////////////////////////////////////
261 void
262 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::startCBcxx . . $ SoTranslate1Dragger#startCB(7027446dc0b7318f).( void *, SoDraggercxx . . $ SoDragger# *inDragger )
263 {
264 SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *m = (SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *) inDragger;
265 m->dragStartcxx . . $ SoTranslate1Dragger#dragStart(49f6e7a06ebc5aa8).();
266 }
267
268 void
269 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::motionCBcxx . . $ SoTranslate1Dragger#motionCB(7027446dc0b7318f).( void *, SoDraggercxx . . $ SoDragger# *inDragger )
270 {
271 SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *m = (SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *) inDragger;
272 m->dragcxx . . $ SoTranslate1Dragger#drag(49f6e7a06ebc5aa8).();
273 }
274
275 void
276 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::finishCBcxx . . $ SoTranslate1Dragger#finishCB(7027446dc0b7318f).( void *, SoDraggercxx . . $ SoDragger# *inDragger )
277 {
278 SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *m = (SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *) inDragger;
279 m->dragFinishcxx . . $ SoTranslate1Dragger#dragFinish(49f6e7a06ebc5aa8).();
280 }
281
282 void
283 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::valueChangedCBcxx . . $ SoTranslate1Dragger#valueChangedCB(7027446dc0b7318f).( void *, SoDraggercxx . . $ SoDragger# *inDragger )
284 {
285 SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *m = (SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *) inDragger;
286 SbMatrixcxx . . $ SbMatrix# motMat = m->getMotionMatrixcxx . . $ SoDragger#getMotionMatrix(c49c36ee78b0a89e).();
287
288 SbVec3fcxx . . $ SbVec3f# transcxx . . $ SbVec3f#SbVec3f(49f6e7a06ebc5aa8)., scalecxx . . $ SbVec3f#SbVec3f(49f6e7a06ebc5aa8).;
289 SbRotationcxx . . $ SbRotation# rotcxx . . $ SbRotation#SbRotation(49f6e7a06ebc5aa8)., scaleOrientcxx . . $ SbRotation#SbRotation(49f6e7a06ebc5aa8).;
290 getTransformFastcxx . . $ SoDragger#getTransformFast(87c9df4114162fa2).( motMat, trans, rot, scale, scaleOrient );
291
292 // Disconnect the field sensor
293 m->fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->detachcxx . . $ SoFieldSensor#detach(49f6e7a06ebc5aa8).();
294
295 if ( m->translationcxx . . $ SoTranslate1Dragger#translation..getValuecxx . . $ SoSFVec3f#getValue(b5c384c15c94bb12).() !=cxx . . $ `operator!=`(648f52454fd9f27). trans )
296 m->translationcxx . . $ SoTranslate1Dragger#translation. =cxx . . $ SoSFVec3f#`operator=`(861f7885f8980b32). trans;
297
298 // Reconnect the field sensor
299 m->fieldSensorcxx . . $ SoTranslate1Dragger#fieldSensor.->attachcxx . . $ SoFieldSensor#attach(6a35cc9f7090653f).( &(m->translationcxx . . $ SoTranslate1Dragger#translation.) );
300 }
301
302 void
303 SoTranslate1Draggercxx . . $ SoTranslate1Dragger#::fieldSensorCBcxx . . $ SoTranslate1Dragger#fieldSensorCB(c8d298b3e215c027).( void *inDragger, SoSensorcxx . . $ SoSensor# *)
304 {
305 SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *dragger = (SoTranslate1Draggercxx . . $ SoTranslate1Dragger# *) inDragger;
306
307 // Incorporate the new field value into the matrix...
308 SbMatrixcxx . . $ SbMatrix# motMat = dragger->getMotionMatrixcxx . . $ SoDragger#getMotionMatrix(c49c36ee78b0a89e).();
309 dragger->workFieldsIntoTransformcxx . . $ SoDragger#workFieldsIntoTransform(ab60305a37435a6f).( motMat );
310
311 dragger->setMotionMatrixcxx . . $ SoDragger#setMotionMatrix(37d2f951b3ffd7a6).( motMat );
312 }