17 #ifndef __igtlQuaternionTrackingDataMessage_h
18 #define __igtlQuaternionTrackingDataMessage_h
54 int SetName(
const char* name);
55 const char*
GetName() {
return this->m_Name.c_str(); };
57 int SetType(igtlUint8 type);
58 igtlUint8
GetType() {
return this->m_Type; };
60 void SetPosition(
float p[3]);
61 void GetPosition(
float p[3]);
63 void SetPosition(
float px,
float py,
float pz);
64 void GetPosition(
float* px,
float* py,
float* pz);
66 void SetQuaternion(
float q[4]);
67 void GetQuaternion(
float q[4]);
69 void SetQuaternion(
float qx,
float qy,
float qz,
float w);
70 void GetQuaternion(
float* qx,
float* qy,
float* qz,
float* w);
80 igtlFloat32 m_position[3];
81 igtlFloat32 m_quaternion[4];
101 int SetCoordinateName(
const char* name);
109 virtual int GetBodyPackSize();
110 virtual int PackBody();
111 virtual int UnpackBody();
137 virtual int PackBody() { AllocatePack();
return 1; };
161 void SetStatus(igtlUint8 status){ this->m_Status = status; }
171 virtual int GetBodyPackSize();
172 virtual int PackBody();
173 virtual int UnpackBody();
191 void ClearQuaternionTrackingDataElements();
193 int GetNumberOfQuaternionTrackingDataElements();
203 virtual int GetBodyPackSize();
204 virtual int PackBody();
205 virtual int UnpackBody();
214 #endif // _igtlQuaternionTrackingDataMessage_h