15#ifndef __igtlBindMessage_h
16#define __igtlBindMessage_h
212 virtual int PackBody() { AllocatePack();
return 1; };
238 void SetStatus(igtlUint8 status){ this->m_Status = status; }
int AppendChildMessage(igtl::MessageBase *child)
int SetNumberOfChildMessages(unsigned int n)
SmartPointer< Self > Pointer
igtlNewMacro(igtl::BindMessageBase)
void Init()
Initializes the BindMessageBase class.
int SetChildMessage(unsigned int i, igtl::MessageBase *child)
const char * GetChildMessageType(unsigned int i)
Gets the name of a child message specified by the index 'i'.
igtlTypeMacro(igtl::BindMessageBase, igtl::MessageBase)
std::vector< ChildMessageInfo > m_ChildMessages
A vector to manage a list of ChildMessageInfo structures.
SmartPointer< const Self > ConstPointer
int GetNumberOfChildMessages()
Gets the number of child messages bundled in the message.
A class for the BIND message type.
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
virtual int GetBodyPackSize()
Gets the size of the serialized body.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
igtlNewMacro(igtl::BindMessage)
igtlTypeMacro(igtl::BindMessage, igtl::BindMessageBase)
SmartPointer< const Self > ConstPointer
int GetChildMessage(unsigned int i, igtl::MessageBase *child)
SmartPointer< Self > Pointer
BindMessageBase Superclass
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
SmartPointer< const Self > ConstPointer
BindMessageBase Superclass
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
virtual int GetBodyPackSize()
Gets the size of the serialized body.
igtlNewMacro(igtl::GetBindMessage)
SmartPointer< Self > Pointer
igtlTypeMacro(igtl::GetBindMessage, igtl::BindMessageBase)
int AppendChildMessage(const char *type, const char *name)
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
igtlNewMacro(igtl::RTSBindMessage)
igtlTypeMacro(igtl::RTSBindMessage, igtl::MessageBase)
igtlUint8 m_Status
Stores the status for the start/stop request.
SmartPointer< Self > Pointer
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
void SetStatus(igtlUint8 status)
Sets the status for the start/stop request. 'status' must be either RTSBindMessage::STATUS_SUCCESS or...
virtual int GetBodyPackSize()
Gets the size of the serialized body.
igtlUint8 GetStatus()
Gets the status for the start/stop request. 'status' must be either RTSBindMessage::STATUS_SUCCESS or...
SmartPointer< const Self > ConstPointer
Implements transparent reference counting.
SmartPointer< Self > Pointer
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
igtlNewMacro(igtl::StartBindMessage)
virtual int GetBodyPackSize()
Gets the size of the serialized body.
void SetResolution(igtlUint64 res)
SmartPointer< const Self > ConstPointer
igtlTypeMacro(igtl::StartBindMessage, igtl::GetBindMessage)
GetBindMessage Superclass
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
igtlUint64 GetResolution()
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
SmartPointer< Self > Pointer
igtlNewMacro(igtl::StopBindMessage)
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
SmartPointer< const Self > ConstPointer
virtual int GetBodyPackSize()
Gets the size of the serialized body.
igtlTypeMacro(igtl::StopBindMessage, igtl::MessageBase)
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...