15#ifndef __igtlColorTableMessage_h
16#define __igtlColorTableMessage_h
A class for the COLORT message type.
void AllocateTable()
Allocates a memory area for the color table.
void * GetTablePointer()
Returns a pointer to the color table.
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
int mapType
A variable to store the type of the map. Either MAP_UINT8, MAP_UINT16 or MAP_RGB.
void SetMapTypeToUint8()
Sets the scalar type of the map to 8-bit unsigned integer.
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
SmartPointer< const Self > ConstPointer
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
void SetIndexType(int t)
Sets the index type for the color type.
int GetColorTableSize()
Gets the size of the color table.
void SetIndexTypeToUint16()
Sets the index type for the color type to 16-bit unsigned integer.
int GetMapType()
Gets the type of the map.
unsigned char * m_ColorTable
A pointer to the color table data.
void SetMapType(int t)
Sets the scalar type of the map.
int GetIndexType()
Gets the index type. Returns either INDEX_UINT8 or INDEX_UINT16.
int indexType
A variable to store the index type. Either INDEX_UINT8 or INDEX_UINT16.
void SetIndexTypeToUint8()
Sets the index type for the color type to 8-bit unsigned integer.
void SetMapTypeToUint16()
Sets the scalar type of the map to 16-bit unsigned integer.
SmartPointer< Self > Pointer
unsigned char * m_ColorTableHeader
A pointer to the header for the color table.
A class for the GET_COLORT message type.
igtlNewMacro(igtl::GetColorTableMessage)
SmartPointer< Self > Pointer
virtual int PackContent()
Packs (serialize) the content. Must be implemented in all child classes.
SmartPointer< const Self > ConstPointer
GetColorTableMessage Self
virtual int UnpackContent()
Unpacks (deserialize) the content. Must be implemented in all child classes.
virtual int CalculateContentBufferSize()
Gets the size of the serialized content.
igtlTypeMacro(igtl::GetColorTableMessage, igtl::MessageBase)
Implements transparent reference counting.
#define igtlTypeMacro(thisClass, superclass)
The "igtl" namespace contains all OpenIGTLink classes. There are several nested namespaces within the...