29 #ifndef vtkRenderWindowInteractor3D_h
30 #define vtkRenderWindowInteractor3D_h
32 #include "vtkRenderingCoreModule.h"
89 return this->WorldEventPositions[pointerIndex];
97 return this->LastWorldEventPositions[pointerIndex];
105 return this->WorldEventOrientations[pointerIndex];
113 return this->LastWorldEventOrientations[pointerIndex];
131 <<
"): setting PhysicalEventPosition to ("
132 << x <<
"," << y <<
"," << z
133 <<
") for pointerIndex number " << pointerIndex);
134 if (this->PhysicalEventPositions[pointerIndex][0] != x ||
135 this->PhysicalEventPositions[pointerIndex][1] != y ||
136 this->PhysicalEventPositions[pointerIndex][2] != z ||
137 this->LastPhysicalEventPositions[pointerIndex][0] != x ||
138 this->LastPhysicalEventPositions[pointerIndex][1] != y ||
139 this->LastPhysicalEventPositions[pointerIndex][2] != z)
141 this->LastPhysicalEventPositions[pointerIndex][0] = this->PhysicalEventPositions[pointerIndex][0];
142 this->LastPhysicalEventPositions[pointerIndex][1] = this->PhysicalEventPositions[pointerIndex][1];
143 this->LastPhysicalEventPositions[pointerIndex][2] = this->PhysicalEventPositions[pointerIndex][2];
144 this->PhysicalEventPositions[pointerIndex][0] = x;
145 this->PhysicalEventPositions[pointerIndex][1] = y;
146 this->PhysicalEventPositions[pointerIndex][2] = z;
166 <<
"): setting WorldEventPosition to ("
167 << x <<
"," << y <<
"," << z
168 <<
") for pointerIndex number " << pointerIndex);
169 if (this->WorldEventPositions[pointerIndex][0] != x ||
170 this->WorldEventPositions[pointerIndex][1] != y ||
171 this->WorldEventPositions[pointerIndex][2] != z ||
172 this->LastWorldEventPositions[pointerIndex][0] != x ||
173 this->LastWorldEventPositions[pointerIndex][1] != y ||
174 this->LastWorldEventPositions[pointerIndex][2] != z)
176 this->LastWorldEventPositions[pointerIndex][0] = this->WorldEventPositions[pointerIndex][0];
177 this->LastWorldEventPositions[pointerIndex][1] = this->WorldEventPositions[pointerIndex][1];
178 this->LastWorldEventPositions[pointerIndex][2] = this->WorldEventPositions[pointerIndex][2];
179 this->WorldEventPositions[pointerIndex][0] = x;
180 this->WorldEventPositions[pointerIndex][1] = y;
181 this->WorldEventPositions[pointerIndex][2] = z;
193 <<
"): setting WorldEventOrientation to ("
194 << w <<
"," << x <<
"," << y <<
"," << z
195 <<
") for pointerIndex number " << pointerIndex);
196 if (this->WorldEventOrientations[pointerIndex][0] != w ||
197 this->WorldEventOrientations[pointerIndex][1] != x ||
198 this->WorldEventOrientations[pointerIndex][2] != y ||
199 this->WorldEventOrientations[pointerIndex][3] != z ||
200 this->LastWorldEventOrientations[pointerIndex][0] != w ||
201 this->LastWorldEventOrientations[pointerIndex][1] != x ||
202 this->LastWorldEventOrientations[pointerIndex][2] != y ||
203 this->LastWorldEventOrientations[pointerIndex][3] != z)
205 this->LastWorldEventOrientations[pointerIndex][0] = this->WorldEventOrientations[pointerIndex][0];
206 this->LastWorldEventOrientations[pointerIndex][1] = this->WorldEventOrientations[pointerIndex][1];
207 this->LastWorldEventOrientations[pointerIndex][2] = this->WorldEventOrientations[pointerIndex][2];
208 this->LastWorldEventOrientations[pointerIndex][3] = this->WorldEventOrientations[pointerIndex][3];
209 this->WorldEventOrientations[pointerIndex][0] = w;
210 this->WorldEventOrientations[pointerIndex][1] = x;
211 this->WorldEventOrientations[pointerIndex][2] = y;
212 this->WorldEventOrientations[pointerIndex][3] = z;
230 vtkSetVector2Macro(TouchPadPosition,
float);
231 vtkGetVector2Macro(TouchPadPosition,
float);
248 vtkGetVector3Macro(Translation3D,
double);
249 vtkGetVector3Macro(LastTranslation3D,
double);
258 float TouchPadPosition[2];
259 double Translation3D[3];
260 double LastTranslation3D[3];