15 #ifndef __igtlTrajectoryMessage_h
16 #define __igtlTrajectoryMessage_h
47 TYPE_ENTRY_TARGET = 3,
53 int SetName(
const char* name);
56 const char*
GetName() {
return this->m_Name.c_str(); };
59 int SetGroupName(
const char* grpname);
65 int SetType(igtlUint8 type);
67 igtlUint8
GetType() {
return this->m_Type; };
70 void SetRGBA(igtlUint8 rgba[4]);
73 void SetRGBA(igtlUint8 r, igtlUint8 g, igtlUint8 b, igtlUint8 a);
76 void GetRGBA(igtlUint8* rgba);
79 void GetRGBA(igtlUint8& r, igtlUint8& g, igtlUint8& b, igtlUint8& a);
82 void SetEntryPosition(igtlFloat32 position[3]);
85 void SetEntryPosition(igtlFloat32 x, igtlFloat32 y, igtlFloat32 z);
88 void GetEntryPosition(igtlFloat32* position);
91 void GetEntryPosition(igtlFloat32& x, igtlFloat32& y, igtlFloat32& z);
94 void SetTargetPosition(igtlFloat32 position[3]);
97 void SetTargetPosition(igtlFloat32 x, igtlFloat32 y, igtlFloat32 z);
100 void GetTargetPosition(igtlFloat32* position);
103 void GetTargetPosition(igtlFloat32& x, igtlFloat32& y, igtlFloat32& z);
106 void SetRadius(igtlFloat32 radius) { this->m_Radius = radius; };
112 int SetOwner(
const char* owner);
115 const char*
GetOwner() {
return this->m_Owner.c_str(); };
136 igtlFloat32 m_EntryPosition[3];
139 igtlFloat32 m_TargetPosition[3];
166 virtual int PackBody() { AllocatePack();
return 1; };
193 int GetNumberOfTrajectoryElement();
205 virtual int GetBodyPackSize();
206 virtual int PackBody();
207 virtual int UnpackBody();
217 #endif // _igtlTrajectoryMessage_h