17 #ifndef __igtlPointMessage_h
18 #define __igtlPointMessage_h
46 int SetName(
const char* name);
47 const char*
GetName() {
return this->m_Name.c_str(); };
49 int SetGroupName(
const char* grpname);
52 void SetRGBA(igtlUint8 rgba[4]);
53 void SetRGBA(igtlUint8 r, igtlUint8 g, igtlUint8 b, igtlUint8 a);
54 void GetRGBA(igtlUint8* rgba);
55 void GetRGBA(igtlUint8& r, igtlUint8& g, igtlUint8& b, igtlUint8& a);
57 void SetPosition(igtlFloat32 position[3]);
58 void SetPosition(igtlFloat32 x, igtlFloat32 y, igtlFloat32 z);
59 void GetPosition(igtlFloat32* position);
60 void GetPosition(igtlFloat32& x, igtlFloat32& y, igtlFloat32& z);
62 void SetRadius(igtlFloat32 radius) { this->m_Radius = radius; };
65 int SetOwner(
const char* owner);
66 const char*
GetOwner() {
return this->m_Owner.c_str(); };
77 igtlFloat32 m_Position[3];
99 virtual int PackBody() { AllocatePack();
return 1; };
117 void ClearPointElement();
119 int GetNumberOfPointElement();
129 virtual int GetBodyPackSize();
130 virtual int PackBody();
131 virtual int UnpackBody();
140 #endif // _igtlPointMessage_h