17 #ifndef __igtlTrajectoryMessage_h
18 #define __igtlTrajectoryMessage_h
48 TYPE_ENTRY_TARGET = 3,
52 int SetName(
const char* name);
53 const char*
GetName() {
return this->m_Name.c_str(); };
55 int SetGroupName(
const char* grpname);
58 int SetType(igtlUint8 type);
59 igtlUint8
GetType() {
return this->m_Type; };
61 void SetRGBA(igtlUint8 rgba[4]);
62 void SetRGBA(igtlUint8 r, igtlUint8 g, igtlUint8 b, igtlUint8 a);
63 void GetRGBA(igtlUint8* rgba);
64 void GetRGBA(igtlUint8& r, igtlUint8& g, igtlUint8& b, igtlUint8& a);
66 void SetEntryPosition(igtlFloat32 position[3]);
67 void SetEntryPosition(igtlFloat32 x, igtlFloat32 y, igtlFloat32 z);
68 void GetEntryPosition(igtlFloat32* position);
69 void GetEntryPosition(igtlFloat32& x, igtlFloat32& y, igtlFloat32& z);
71 void SetTargetPosition(igtlFloat32 position[3]);
72 void SetTargetPosition(igtlFloat32 x, igtlFloat32 y, igtlFloat32 z);
73 void GetTargetPosition(igtlFloat32* position);
74 void GetTargetPosition(igtlFloat32& x, igtlFloat32& y, igtlFloat32& z);
76 void SetRadius(igtlFloat32 radius) { this->m_Radius = radius; };
79 int SetOwner(
const char* owner);
80 const char*
GetOwner() {
return this->m_Owner.c_str(); };
92 igtlFloat32 m_EntryPosition[3];
93 igtlFloat32 m_TargetPosition[3];
115 virtual int PackBody() { AllocatePack();
return 1; };
135 int GetNumberOfTrajectoryElement();
145 virtual int GetBodyPackSize();
146 virtual int PackBody();
147 virtual int UnpackBody();
156 #endif // _igtlTrajectoryMessage_h