15 #ifndef __igtlColorTableMessage_h
16 #define __igtlColorTableMessage_h
44 virtual int PackBody() { AllocatePack();
return 1; };
99 int GetColorTableSize();
102 void AllocateTable();
105 void* GetTablePointer();
113 virtual int GetBodyPackSize();
114 virtual int PackBody();
115 virtual int UnpackBody();
134 #endif // _igtlColorTableMessage_h
void SetMapType(int t)
Sets the scalar type of the map.
SmartPointer< Self > Pointer
#define igtlTypeMacro(thisClass, superclass)
GetColorTableMessage Self
A class for the COLORT message type.
SmartPointer< const Self > ConstPointer
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...
A class for the GET_COLORT message type.
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
unsigned char * m_ColorTableHeader
A pointer to the header for the color table.
virtual int GetBodyPackSize()
Gets the size of the serialized body.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
int GetMapType()
Gets the type of the map.
void SetIndexTypeToUint8()
Sets the index type for the color type to 8-bit unsigned integer.
SmartPointer< const Self > ConstPointer
int mapType
A variable to store the type of the map. Either MAP_UINT8, MAP_UINT16 or MAP_RGB. ...
int GetIndexType()
Gets the index type. Returns either INDEX_UINT8 or INDEX_UINT16.
void SetMapTypeToUint8()
Sets the scalar type of the map to 8-bit unsigned integer.
unsigned char * m_ColorTable
A pointer to the color table data.
void SetMapTypeToUint16()
Sets the scalar type of the map to 16-bit unsigned integer.
void SetIndexType(int t)
Sets the index type for the color type.
void SetIndexTypeToUint16()
Sets the index type for the color type to 16-bit unsigned integer.
SmartPointer< Self > Pointer
int indexType
A variable to store the index type. Either INDEX_UINT8 or INDEX_UINT16.