15#ifndef __igtlColorTableMessage_h
16#define __igtlColorTableMessage_h
44 virtual int PackBody() { AllocatePack();
return 1; };
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.
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 PackBody()
Packs (serialize) the body. Must be implemented in a child class.
SmartPointer< const Self > ConstPointer
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
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.
virtual int GetBodyPackSize()
Gets the size of the serialized body.
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)
virtual int GetBodyPackSize()
Gets the size of the serialized body.
virtual int UnpackBody()
Unpacks (deserialize) the body. Must be implemented in a child class.
SmartPointer< Self > Pointer
SmartPointer< const Self > ConstPointer
GetColorTableMessage Self
virtual int PackBody()
Packs (serialize) the body. Must be implemented in a child class.
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...