Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_colortable.h
Go to the documentation of this file.
1/*=========================================================================
2
3 Program: The OpenIGTLink Library
4 Language: C
5 Web page: http://openigtlink.org/
6
7 Copyright (c) Insight Software Consortium. All rights reserved.
8
9 This software is distributed WITHOUT ANY WARRANTY; without even
10 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11 PURPOSE. See the above copyright notices for more information.
12
13=========================================================================*/
14
15#ifndef __IGTL_COLORTABLE_H
16#define __IGTL_COLORTABLE_H
17
18#include "igtl_win32header.h"
19#include "igtl_util.h"
20#include "igtl_types.h"
21
22#define IGTL_COLORTABLE_HEADER_SIZE 2
23
24#define IGTL_COLORTABLE_INDEX_UINT8 3
25#define IGTL_COLORTABLE_INDEX_UINT16 5
26#define IGTL_COLORTABLE_MAP_UINT8 3
27#define IGTL_COLORTABLE_MAP_UINT16 5
28#define IGTL_COLORTABLE_MAP_RGB 19
29
30#ifdef __cplusplus
31extern "C" {
32#endif
33
34#pragma pack(1) /* For 1-byte boundary in memroy */
35
37typedef struct {
38 igtl_int8 indexType; /* Index Type: 3:uint8 5:uint16 */
39 igtl_int8 mapType; /* 3: uint8 5:uint16 19:RGB color */
41
42#pragma pack()
43
49
54
57
58#ifdef __cplusplus
59}
60#endif
61
62#endif /* __IGTL_COLORTABLE_H */
63
64
igtl_uint64 igtl_export igtl_colortable_get_table_size(igtl_colortable_header *header)
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)
#define igtl_export

Generated for OpenIGTLink by Doxygen 1.9.8 written by Dimitri van Heesch, © 1997-2012