igtl::MoveToMessage Class Reference

#include <igtlMoveToMessage.h>

Inheritance diagram for igtl::MoveToMessage:
MessageBase

List of all members.

Public Types

enum  { POSITION_ONLY = 1, WITH_QUATERNION3, ALL }
typedef SmartPointer< const SelfConstPointer
typedef SmartPointer< SelfPointer
typedef MoveToMessage Self
typedef MessageBase Superclass

Public Member Functions

void GetPosition (float *x, float *y, float *z)
void GetPosition (float *pos)
void GetQuaternion (float *ox, float *oy, float *oz, float *w)
void GetQuaternion (float *quat)
 igtlNewMacro (igtl::MoveToMessage)
 igtlTypeMacro (igtl::MoveToMessage, igtl::MessageBase)
void Init ()
virtual int SetMessageHeader (const MessageHeader *mb)
void SetPackType (int t)
int SetPackTypeByBodySize (int s)
void SetPosition (float x, float y, float z)
void SetPosition (const float *pos)
void SetQuaternion (float ox, float oy, float oz, float w)
void SetQuaternion (const float *quat)

Protected Member Functions

virtual int GetBodyPackSize ()
 MoveToMessage ()
virtual int PackBody ()
virtual int UnpackBody ()
 ~MoveToMessage ()

Protected Attributes

igtlInt32 m_PackType
igtlFloat32 m_Position [3]
igtlFloat32 m_Quaternion [4]

Member Typedef Documentation

typedef SmartPointer<const Self> igtl::MoveToMessage::ConstPointer
typedef SmartPointer<Self> igtl::MoveToMessage::Pointer

Member Enumeration Documentation

anonymous enum
Enumerator:
POSITION_ONLY 
WITH_QUATERNION3 
ALL 

Constructor & Destructor Documentation

igtl::MoveToMessage::MoveToMessage (  )  [protected]

References Init().

igtl::MoveToMessage::~MoveToMessage (  )  [protected]

Member Function Documentation

int igtl::MoveToMessage::GetBodyPackSize (  )  [protected, virtual]
void igtl::MoveToMessage::GetPosition ( float *  x,
float *  y,
float *  z 
)

References m_Position.

void igtl::MoveToMessage::GetPosition ( float *  pos  ) 

References m_Position.

void igtl::MoveToMessage::GetQuaternion ( float *  ox,
float *  oy,
float *  oz,
float *  w 
)

References m_Quaternion.

void igtl::MoveToMessage::GetQuaternion ( float *  quat  ) 

References m_Quaternion.

igtl::MoveToMessage::igtlNewMacro ( igtl::MoveToMessage   ) 
igtl::MoveToMessage::igtlTypeMacro ( igtl::MoveToMessage  ,
igtl::MessageBase   
)
void igtl::MoveToMessage::Init (  ) 

References ALL, m_PackType, m_Position, and m_Quaternion.

Referenced by MoveToMessage().

int igtl::MoveToMessage::PackBody (  )  [protected, virtual]

References m_Position, m_Quaternion, and p.

int igtl::MoveToMessage::SetMessageHeader ( const MessageHeader *  mb  )  [virtual]
void igtl::MoveToMessage::SetPackType ( int  t  ) 

References ALL, m_PackType, and POSITION_ONLY.

int igtl::MoveToMessage::SetPackTypeByBodySize ( int  s  ) 

Specify pack type by body size (in most case obtained from general header)

References ALL, m_PackType, POSITION_ONLY, and WITH_QUATERNION3.

Referenced by SetMessageHeader().

void igtl::MoveToMessage::SetPosition ( float  x,
float  y,
float  z 
)

References m_Position.

void igtl::MoveToMessage::SetPosition ( const float *  pos  ) 

References m_Position.

void igtl::MoveToMessage::SetQuaternion ( float  ox,
float  oy,
float  oz,
float  w 
)

References m_Quaternion.

void igtl::MoveToMessage::SetQuaternion ( const float *  quat  ) 

References m_Quaternion.

int igtl::MoveToMessage::UnpackBody (  )  [protected, virtual]

References m_Position, m_Quaternion, and p.


Member Data Documentation

igtlInt32 igtl::MoveToMessage::m_PackType [protected]
igtlFloat32 igtl::MoveToMessage::m_Position[3] [protected]
igtlFloat32 igtl::MoveToMessage::m_Quaternion[4] [protected]

The documentation for this class was generated from the following files:

Generated on 6 Apr 2011 for Slicer3 by  doxygen 1.6.1