19 #ifndef vtkEventData_h 20 #define vtkEventData_h 68 int GetType()
const {
return this->Type; }
73 return this->Type == a.
Type && this->Equivalent(&a);
86 virtual bool Equivalent(
const vtkEventData *ed)
const = 0;
123 return this->Device == edd->
Device && this->Input == edd->
Input && this->Action == edd->
Action;
147 v[0] = this->WorldPosition[0];
148 v[1] = this->WorldPosition[1];
149 v[2] = this->WorldPosition[2];
152 return this->WorldPosition;
156 this->WorldPosition[0] = p[0];
157 this->WorldPosition[1] = p[1];
158 this->WorldPosition[2] = p[2];
162 v[0] = this->WorldDirection[0];
163 v[1] = this->WorldDirection[1];
164 v[2] = this->WorldDirection[2];
167 return this->WorldDirection;
171 this->WorldDirection[0] = p[0];
172 this->WorldDirection[1] = p[1];
173 this->WorldDirection[2] = p[2];
177 v[0] = this->WorldOrientation[0];
178 v[1] = this->WorldOrientation[1];
179 v[2] = this->WorldOrientation[2];
180 v[3] = this->WorldOrientation[3];
183 return this->WorldOrientation;
187 this->WorldOrientation[0] = p[0];
188 this->WorldOrientation[1] = p[1];
189 this->WorldOrientation[2] = p[2];
190 this->WorldOrientation[3] = p[3];
194 v[0] = this->TrackPadPosition[0];
195 v[1] = this->TrackPadPosition[1];
198 return this->TrackPadPosition;
202 this->TrackPadPosition[0] = p[0];
203 this->TrackPadPosition[1] = p[1];
207 this->TrackPadPosition[0] = x;
208 this->TrackPadPosition[1] = y;
212 double WorldPosition[3];
213 double WorldOrientation[4];
214 double WorldDirection[3];
215 double TrackPadPosition[2];
void InitializeObjectBase()
void SetWorldDirection(const double p[3])
void GetTrackPadPosition(double v[2]) const
const double * GetTrackPadPosition() const
void SetWorldOrientation(const double p[4])
const double * GetWorldOrientation() const
vtkEventDataDeviceInput GetInput() const
virtual vtkEventDataForDevice * GetAsEventDataForDevice()
vtkEventDataDevice3D * GetAsEventDataDevice3D() override
vtkEventDataAction Action
const double * GetWorldDirection() const
~vtkEventDataMove3D() override
void SetTrackPadPosition(const double p[2])
const int vtkEventDataNumberOfDevices
vtkEventDataDevice Device
const int vtkEventDataNumberOfInputs
void SetInput(vtkEventDataDeviceInput v)
~vtkEventDataDevice3D() override
vtkEventDataAction GetAction() const
void GetWorldDirection(double v[3]) const
void SetTrackPadPosition(double x, double y)
vtkEventDataForDevice * GetAsEventDataForDevice() override
abstract base class for most VTK objects
vtkEventDataDevice
platform-independent event data structures
bool Equivalent(const vtkEventData *e) const override
static vtkEventDataForDevice * New()
const double * GetWorldPosition() const
virtual vtkEventDataDevice3D * GetAsEventDataDevice3D()
~vtkEventDataForDevice() override
bool operator==(const vtkEventData &a) const
static vtkEventDataMove3D * New()
void SetWorldPosition(const double p[3])
void SetAction(vtkEventDataAction v)
void GetWorldPosition(double v[3]) const
vtkEventDataDeviceInput Input
void GetWorldOrientation(double v[4]) const
void SetDevice(vtkEventDataDevice v)
vtkEventDataDevice GetDevice() const