15 #ifndef __igtlPointMessage_h 16 #define __igtlPointMessage_h 47 int SetName(
const char* name);
50 const char*
GetName() {
return this->m_Name.c_str(); };
53 int SetGroupName(
const char* grpname);
59 void SetRGBA(igtlUint8 rgba[4]);
62 void SetRGBA(igtlUint8 r, igtlUint8 g, igtlUint8 b, igtlUint8 a);
65 void GetRGBA(igtlUint8* rgba);
68 void GetRGBA(igtlUint8& r, igtlUint8& g, igtlUint8& b, igtlUint8& a);
71 void SetPosition(igtlFloat32 position[3]);
74 void SetPosition(igtlFloat32 x, igtlFloat32 y, igtlFloat32 z);
77 void GetPosition(igtlFloat32* position);
80 void GetPosition(igtlFloat32& x, igtlFloat32& y, igtlFloat32& z);
83 void SetRadius(igtlFloat32 radius) { this->m_Radius = radius; };
89 int SetOwner(
const char* owner);
92 const char*
GetOwner() {
return this->m_Owner.c_str(); };
110 igtlFloat32 m_Position[3];
137 virtual int PackBody() { AllocatePack();
return 1; };
162 void ClearPointElement();
165 int GetNumberOfPointElement();
177 virtual int GetBodyPackSize();
178 virtual int PackBody();
179 virtual int UnpackBody();
189 #endif // _igtlPointMessage_h std::string m_Owner
Device name of the ower image.
SmartPointer< Self > Pointer
std::string m_Name
name / description (< 64 bytes)
#define igtlTypeMacro(thisClass, superclass)
std::vector< PointElement::Pointer > m_PointList
A list of pointers to the points.
igtlFloat32 m_Radius
Radius of the point. Can be 0.
SmartPointer< const Self > ConstPointer
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
const char * GetOwner()
Gets the name of the image that owns this label map.
A class to manage point information.
igtlFloat32 GetRadius()
Gets the radius of the point.
SmartPointer< const Self > ConstPointer
A class for the GET_POINT message type.
SmartPointer< Self > Pointer
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
const char * GetGroupName()
Gets the group name.
void SetRadius(igtlFloat32 radius)
Sets the radius of the point.
SmartPointer< const Self > ConstPointer
SmartPointer< Self > Pointer
virtual int GetBodyPackSize()
Gets the size of the serialized body.
const char * GetName()
Gets the name/description of the point.
std::string m_GroupName
Can be "Labeled Point", "Landmark", Fiducial", ...
Base class for most igtl classes.