29 #ifndef vtkRenderWindowInteractor3D_h
30 #define vtkRenderWindowInteractor3D_h
33 #include "vtkRenderingCoreModule.h"
79 return this->WorldEventPositions[pointerIndex];
87 return this->LastWorldEventPositions[pointerIndex];
95 return this->WorldEventOrientations[pointerIndex];
103 return this->LastWorldEventOrientations[pointerIndex];
121 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting PhysicalEventPosition to ("
122 << x <<
"," << y <<
"," << z <<
") for pointerIndex number " << pointerIndex);
123 if (this->PhysicalEventPositions[pointerIndex][0] != x ||
124 this->PhysicalEventPositions[pointerIndex][1] != y ||
125 this->PhysicalEventPositions[pointerIndex][2] != z ||
126 this->LastPhysicalEventPositions[pointerIndex][0] != x ||
127 this->LastPhysicalEventPositions[pointerIndex][1] != y ||
128 this->LastPhysicalEventPositions[pointerIndex][2] != z)
130 this->LastPhysicalEventPositions[pointerIndex][0] =
131 this->PhysicalEventPositions[pointerIndex][0];
132 this->LastPhysicalEventPositions[pointerIndex][1] =
133 this->PhysicalEventPositions[pointerIndex][1];
134 this->LastPhysicalEventPositions[pointerIndex][2] =
135 this->PhysicalEventPositions[pointerIndex][2];
136 this->PhysicalEventPositions[pointerIndex][0] = x;
137 this->PhysicalEventPositions[pointerIndex][1] = y;
138 this->PhysicalEventPositions[pointerIndex][2] = z;
168 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting WorldEventPosition to ("
169 << x <<
"," << y <<
"," << z <<
") for pointerIndex number " << pointerIndex);
170 if (this->WorldEventPositions[pointerIndex][0] != x ||
171 this->WorldEventPositions[pointerIndex][1] != y ||
172 this->WorldEventPositions[pointerIndex][2] != z ||
173 this->LastWorldEventPositions[pointerIndex][0] != x ||
174 this->LastWorldEventPositions[pointerIndex][1] != y ||
175 this->LastWorldEventPositions[pointerIndex][2] != z)
177 this->LastWorldEventPositions[pointerIndex][0] = this->WorldEventPositions[pointerIndex][0];
178 this->LastWorldEventPositions[pointerIndex][1] = this->WorldEventPositions[pointerIndex][1];
179 this->LastWorldEventPositions[pointerIndex][2] = this->WorldEventPositions[pointerIndex][2];
180 this->WorldEventPositions[pointerIndex][0] = x;
181 this->WorldEventPositions[pointerIndex][1] = y;
182 this->WorldEventPositions[pointerIndex][2] = z;
192 vtkDebugMacro(<< this->
GetClassName() <<
" (" <<
this <<
"): setting WorldEventOrientation to ("
193 << w <<
"," << x <<
"," << y <<
"," << z <<
") for pointerIndex number "
195 if (this->WorldEventOrientations[pointerIndex][0] != w ||
196 this->WorldEventOrientations[pointerIndex][1] != x ||
197 this->WorldEventOrientations[pointerIndex][2] != y ||
198 this->WorldEventOrientations[pointerIndex][3] != z ||
199 this->LastWorldEventOrientations[pointerIndex][0] != w ||
200 this->LastWorldEventOrientations[pointerIndex][1] != x ||
201 this->LastWorldEventOrientations[pointerIndex][2] != y ||
202 this->LastWorldEventOrientations[pointerIndex][3] != z)
204 this->LastWorldEventOrientations[pointerIndex][0] =
205 this->WorldEventOrientations[pointerIndex][0];
206 this->LastWorldEventOrientations[pointerIndex][1] =
207 this->WorldEventOrientations[pointerIndex][1];
208 this->LastWorldEventOrientations[pointerIndex][2] =
209 this->WorldEventOrientations[pointerIndex][2];
210 this->LastWorldEventOrientations[pointerIndex][3] =
211 this->WorldEventOrientations[pointerIndex][3];
212 this->WorldEventOrientations[pointerIndex][0] = w;
213 this->WorldEventOrientations[pointerIndex][1] = x;
214 this->WorldEventOrientations[pointerIndex][2] = y;
215 this->WorldEventOrientations[pointerIndex][3] = z;
261 vtkGetVector3Macro(Translation3D,
double);
262 vtkGetVector3Macro(LastTranslation3D,
double);
271 double Translation3D[3];
272 double LastTranslation3D[3];