15 #ifndef __igtlTrackingDataMessage_h
16 #define __igtlTrackingDataMessage_h
56 int SetName(
const char* name);
59 const char*
GetName() {
return this->m_Name.c_str(); };
62 int SetType(igtlUint8 type);
65 igtlUint8
GetType() {
return this->m_Type; };
68 void SetPosition(
float p[3]);
71 void GetPosition(
float p[3]);
74 void SetPosition(
float px,
float py,
float pz);
77 void GetPosition(
float* px,
float* py,
float* pz);
123 int SetCoordinateName(
const char* name);
133 virtual int GetBodyPackSize();
134 virtual int PackBody();
135 virtual int UnpackBody();
166 virtual int PackBody() { AllocatePack();
return 1; };
191 void SetStatus(igtlUint8 status){ this->m_Status = status; }
204 virtual int GetBodyPackSize();
205 virtual int PackBody();
206 virtual int UnpackBody();
233 void ClearTrackingDataElements();
236 int GetNumberOfTrackingDataElements();
250 virtual int GetBodyPackSize();
251 virtual int PackBody();
252 virtual int UnpackBody();
262 #endif // _igtlTrackingDataMessage_h
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
A class for the STP_TDATA message type.
SmartPointer< Self > Pointer
std::string m_Name
Name / description (< 20 bytes.
const char * GetCoordinateName()
Gets the name of the coordinate system.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
~RTSTrackingDataMessage()
#define igtlTypeMacro(thisClass, superclass)
StopTrackingDataMessage Self
SmartPointer< const Self > ConstPointer
StartTrackingDataMessage Self
virtual int GetBodyPackSize()
Gets the size of the serialized body.
std::string m_CoordinateName
Name of the coordinate system.
void SetResolution(igtlInt32 res)
Sets the time resolution for streaming of QTDATA messages.
Matrix4x4 m_Matrix
Transform matrix.
const char * GetName()
Gets the name of the instrument/tracker.
SmartPointer< Self > Pointer
SmartPointer< Self > Pointer
igtlInt32 m_Resolution
Minimum time between two frames (ms). Use 0 for as fast as possible.
~StopTrackingDataMessage()
StopTrackingDataMessage()
void SetStatus(igtlUint8 status)
Sets the status. 'status' must be either STATUS_SUCCESS or STATUS_ERROR.
igtlInt32 GetResolution()
Gets the time resolution for streaming of QTDATA messages.
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
A class for the RTS_TDATA message type.
RTSTrackingDataMessage Self
SmartPointer< const Self > ConstPointer
SmartPointer< const Self > ConstPointer
A class for the STT_TDATA message type.
SmartPointer< Self > Pointer
int GetNumberOfTrackingDataElement()
std::vector< TrackingDataElement::Pointer > m_TrackingDataList
The list of trakcing data elements.
igtlUint8 m_Type
Tracking data type (TYPE_TRACKER, TYPE_6D, TYPE_3D, TYPE_5D)
igtlUint8 GetStatus()
Gets the status. The function returns either STATUS_SUCCESS or STATUS_ERROR.
Base class for most igtl classes.
igtlUint8 GetType()
Gets the type of the instrument/tracker.
SmartPointer< const Self > ConstPointer