igtl::TransformMessage Class Reference
#include <igtlTransformMessage.h>
List of all members.
Public Types |
enum | {
UNPACK_UNDEF = 0x0000,
UNPACK_HEADER = 0x0001,
UNPACK_BODY = 0x0002
} |
typedef SmartPointer< const Self > | ConstPointer |
typedef SmartPointer< Self > | Pointer |
typedef TransformMessage | Self |
typedef MessageBase | Superclass |
Public Member Functions |
void | AllocatePack () |
int | Copy (const MessageBase *mb) |
virtual LightObject::Pointer | CreateAnother () const |
virtual void | DebugOff () const |
virtual void | DebugOn () const |
virtual void | Delete () |
int | GetBodySizeToRead () |
const char * | GetBodyType () |
bool | GetDebug () const |
const char * | GetDeviceName () |
const char * | GetDeviceType () |
void | GetMatrix (Matrix4x4 &mat) |
virtual const char * | GetNameOfClass () const |
void | GetNormals (float t[3], float s[3], float n[3]) |
void | GetNormals (float o[3][3]) |
void * | GetPackBodyPointer () |
int | GetPackBodySize () |
void * | GetPackPointer () |
int | GetPackSize () |
void | GetPosition (float *px, float *py, float *pz) |
void | GetPosition (float p[3]) |
virtual int | GetReferenceCount () const |
void | GetTimeStamp (igtl::TimeStamp::Pointer &ts) |
int | GetTimeStamp (unsigned int *sec, unsigned int *frac) |
| igtlNewMacro (igtl::TransformMessage) |
| igtlTypeMacro (Object, LightObject) |
| igtlTypeMacro (igtl::TransformMessage, igtl::MessageBase) |
void | InitPack () |
int | Pack () |
void | Print (std::ostream &os) const |
virtual void | Register () const |
void | SetDebug (bool debugFlag) const |
void | SetDeviceName (const char *name) |
void | SetMatrix (Matrix4x4 &mat) |
virtual int | SetMessageHeader (const MessageHeader *mb) |
void | SetNormals (float t[3], float s[3], float n[3]) |
void | SetNormals (float o[3][3]) |
void | SetPosition (float px, float py, float pz) |
void | SetPosition (float p[3]) |
virtual void | SetReferenceCount (int) |
void | SetTimeStamp (igtl::TimeStamp::Pointer &ts) |
int | SetTimeStamp (unsigned int sec, unsigned int frac) |
int | Unpack (int crccheck=0) |
virtual void | UnRegister () const |
Static Public Member Functions |
static void | BreakOnError () |
static Pointer | New () |
|
|
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static void | SetGlobalWarningDisplay (bool flag) |
Protected Member Functions |
void | AllocatePack (int bodySize) |
int | CopyBody (const MessageBase *mb) |
int | CopyHeader (const MessageBase *mb) |
virtual int | GetBodyPackSize () |
virtual int | PackBody () |
virtual void | PrintSelf (std::ostream &os) const |
| TransformMessage () |
virtual int | UnpackBody () |
| ~TransformMessage () |
|
|
virtual void | PrintHeader (std::ostream &os) const |
virtual void | PrintTrailer (std::ostream &os) const |
Protected Attributes |
unsigned char * | m_Body |
int | m_BodySizeToRead |
std::string | m_BodyType |
std::string | m_DefaultBodyType |
std::string | m_DeviceName |
unsigned char * | m_Header |
int | m_IsBodyUnpacked |
int | m_IsHeaderUnpacked |
int | m_PackSize |
volatile int | m_ReferenceCount |
SimpleFastMutexLock | m_ReferenceCountLock |
unsigned int | m_TimeStampSec |
unsigned int | m_TimeStampSecFraction |
unsigned char * | m_Transform |
Matrix4x4 | matrix |
Detailed Description
Definition at line 28 of file igtlTransformMessage.h.
Member Typedef Documentation
Member Enumeration Documentation
anonymous enum [inherited] |
- Enumerator:
UNPACK_UNDEF |
|
UNPACK_HEADER |
|
UNPACK_BODY |
|
Definition at line 72 of file igtlMessageBase.h.
Constructor & Destructor Documentation
igtl::TransformMessage::TransformMessage |
( |
|
) |
[protected] |
igtl::TransformMessage::~TransformMessage |
( |
|
) |
[protected] |
Member Function Documentation
void igtl::MessageBase::AllocatePack |
( |
int |
bodySize |
) |
[protected, inherited] |
void igtl::MessageBase::AllocatePack |
( |
|
) |
[inherited] |
static void igtl::LightObject::BreakOnError |
( |
|
) |
[static, inherited] |
This method is called when igtlExceptionMacro executes. It allows the debugger to break on error.
int igtl::MessageBase::Copy |
( |
const MessageBase * |
mb |
) |
[inherited] |
int igtl::MessageBase::CopyBody |
( |
const MessageBase * |
mb |
) |
[protected, inherited] |
int igtl::MessageBase::CopyHeader |
( |
const MessageBase * |
mb |
) |
[protected, inherited] |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from igtl::LightObject.
virtual void igtl::Object::DebugOff |
( |
|
) |
const [virtual, inherited] |
Turn debugging output off.
virtual void igtl::Object::DebugOn |
( |
|
) |
const [virtual, inherited] |
Turn debugging output on.
virtual void igtl::LightObject::Delete |
( |
|
) |
[virtual, inherited] |
Delete an igtl object. This method should always be used to delete an object when the new operator was used to create it. Using the C delete method will not work with reference counting.
virtual int igtl::TransformMessage::GetBodyPackSize |
( |
|
) |
[protected, virtual] |
int igtl::MessageBase::GetBodySizeToRead |
( |
|
) |
[inline, inherited] |
const char* igtl::MessageBase::GetBodyType |
( |
|
) |
[inline, inherited] |
bool igtl::Object::GetDebug |
( |
|
) |
const [inherited] |
Get the value of the debug flag.
const char* igtl::MessageBase::GetDeviceName |
( |
|
) |
[inherited] |
const char* igtl::MessageBase::GetDeviceType |
( |
|
) |
[inherited] |
static bool igtl::Object::GetGlobalWarningDisplay |
( |
|
) |
[static, inherited] |
This is a global flag that controls whether any debug, warning or error messages are displayed.
void igtl::TransformMessage::GetMatrix |
( |
Matrix4x4 & |
mat |
) |
|
virtual const char* igtl::LightObject::GetNameOfClass |
( |
|
) |
const [inline, virtual, inherited] |
Return the name of this class as a string. Used by the object factory (implemented in New()) to instantiate objects of a named type. Also used for debugging and other output information.
Definition at line 86 of file igtlLightObject.h.
void igtl::TransformMessage::GetNormals |
( |
float |
t[3], |
|
|
float |
s[3], |
|
|
float |
n[3] | |
|
) |
| | |
void igtl::TransformMessage::GetNormals |
( |
float |
o[3][3] |
) |
|
void* igtl::MessageBase::GetPackBodyPointer |
( |
|
) |
[inherited] |
int igtl::MessageBase::GetPackBodySize |
( |
|
) |
[inherited] |
void* igtl::MessageBase::GetPackPointer |
( |
|
) |
[inherited] |
int igtl::MessageBase::GetPackSize |
( |
|
) |
[inherited] |
void igtl::TransformMessage::GetPosition |
( |
float * |
px, |
|
|
float * |
py, |
|
|
float * |
pz | |
|
) |
| | |
void igtl::TransformMessage::GetPosition |
( |
float |
p[3] |
) |
|
virtual int igtl::LightObject::GetReferenceCount |
( |
|
) |
const [inline, virtual, inherited] |
int igtl::MessageBase::GetTimeStamp |
( |
unsigned int * |
sec, |
|
|
unsigned int * |
frac | |
|
) |
| | [inherited] |
static void igtl::Object::GlobalWarningDisplayOff |
( |
|
) |
[inline, static, inherited] |
static void igtl::Object::GlobalWarningDisplayOn |
( |
|
) |
[inline, static, inherited] |
Standard part of all igtl objects.
void igtl::MessageBase::InitPack |
( |
|
) |
[inherited] |
static Pointer igtl::Object::New |
( |
|
) |
[static, inherited] |
int igtl::MessageBase::Pack |
( |
|
) |
[inherited] |
virtual int igtl::TransformMessage::PackBody |
( |
|
) |
[protected, virtual] |
void igtl::LightObject::Print |
( |
std::ostream & |
os |
) |
const [inherited] |
Cause the object to print itself out.
virtual void igtl::LightObject::PrintHeader |
( |
std::ostream & |
os |
) |
const [protected, virtual, inherited] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
virtual void igtl::Object::PrintSelf |
( |
std::ostream & |
os |
) |
const [protected, virtual, inherited] |
virtual void igtl::LightObject::PrintTrailer |
( |
std::ostream & |
os |
) |
const [protected, virtual, inherited] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
virtual void igtl::Object::Register |
( |
|
) |
const [virtual, inherited] |
Return this objects modified time. Update the modification time for this object. Many filters rely on the modification time to determine if they need to recompute their data. Increase the reference count (mark as used by another object).
Reimplemented from igtl::LightObject.
void igtl::Object::SetDebug |
( |
bool |
debugFlag |
) |
const [inherited] |
Set the value of the debug flag. A non-zero value turns debugging on.
void igtl::MessageBase::SetDeviceName |
( |
const char * |
name |
) |
[inherited] |
static void igtl::Object::SetGlobalWarningDisplay |
( |
bool |
flag |
) |
[static, inherited] |
void igtl::TransformMessage::SetMatrix |
( |
Matrix4x4 & |
mat |
) |
|
virtual int igtl::MessageBase::SetMessageHeader |
( |
const MessageHeader * |
mb |
) |
[inline, virtual, inherited] |
void igtl::TransformMessage::SetNormals |
( |
float |
t[3], |
|
|
float |
s[3], |
|
|
float |
n[3] | |
|
) |
| | |
void igtl::TransformMessage::SetNormals |
( |
float |
o[3][3] |
) |
|
void igtl::TransformMessage::SetPosition |
( |
float |
px, |
|
|
float |
py, |
|
|
float |
pz | |
|
) |
| | |
void igtl::TransformMessage::SetPosition |
( |
float |
p[3] |
) |
|
virtual void igtl::Object::SetReferenceCount |
( |
int |
|
) |
[virtual, inherited] |
int igtl::MessageBase::SetTimeStamp |
( |
unsigned int |
sec, |
|
|
unsigned int |
frac | |
|
) |
| | [inherited] |
int igtl::MessageBase::Unpack |
( |
int |
crccheck = 0 |
) |
[inherited] |
virtual int igtl::TransformMessage::UnpackBody |
( |
|
) |
[protected, virtual] |
virtual void igtl::Object::UnRegister |
( |
|
) |
const [virtual, inherited] |
Decrease the reference count (release by another object).
Reimplemented from igtl::LightObject.
Member Data Documentation
Mutex lock to protect modification to the reference count
Definition at line 136 of file igtlLightObject.h.
The documentation for this class was generated from the following file: