Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
Classes | Macros | Functions
igtl_colortable.h File Reference
#include "igtl_win32header.h"
#include "igtl_util.h"
#include "igtl_types.h"
Include dependency graph for igtl_colortable.h:

Go to the source code of this file.

Classes

struct  igtl_colortable_header
 

Macros

#define IGTL_COLORTABLE_HEADER_SIZE   2
 
#define IGTL_COLORTABLE_INDEX_UINT16   5
 
#define IGTL_COLORTABLE_INDEX_UINT8   3
 
#define IGTL_COLORTABLE_MAP_RGB   19
 
#define IGTL_COLORTABLE_MAP_UINT16   5
 
#define IGTL_COLORTABLE_MAP_UINT8   3
 

Functions

void igtl_export igtl_colortable_convert_byte_order (igtl_colortable_header *header, void *table)
 
igtl_uint64 igtl_export igtl_colortable_get_crc (igtl_colortable_header *header, void *table)
 
igtl_uint64 igtl_export igtl_colortable_get_table_size (igtl_colortable_header *header)
 

Macro Definition Documentation

#define IGTL_COLORTABLE_HEADER_SIZE   2

Definition at line 22 of file igtl_colortable.h.

#define IGTL_COLORTABLE_INDEX_UINT16   5

Definition at line 25 of file igtl_colortable.h.

#define IGTL_COLORTABLE_INDEX_UINT8   3

Definition at line 24 of file igtl_colortable.h.

#define IGTL_COLORTABLE_MAP_RGB   19

Definition at line 28 of file igtl_colortable.h.

#define IGTL_COLORTABLE_MAP_UINT16   5

Definition at line 27 of file igtl_colortable.h.

#define IGTL_COLORTABLE_MAP_UINT8   3

Definition at line 26 of file igtl_colortable.h.

Function Documentation

void igtl_export igtl_colortable_convert_byte_order ( igtl_colortable_header header,
void *  table 
)

Converts endianness of each element in an array of igtl_igtl_colortable_header and color table from host byte order to network byte order, or vice versa (if necessary). The function automatically determins the endian type of the host.

igtl_uint64 igtl_export igtl_colortable_get_crc ( igtl_colortable_header header,
void *  table 
)

Calculates CRC of color table message

igtl_uint64 igtl_export igtl_colortable_get_table_size ( igtl_colortable_header header)

igtl_colortable_get_data_size(n) calculates the size of body based on the index and map types. The size of body is used in the message header. igtl_colortable_get_data_n(size) calculates the number of images in the body, based on the body size. This function may be used when a client program parses a COLORTABLE message.


Generated at Mon Nov 11 2013 05:19:49 for OpenIGTLink by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2012