Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlutil
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
31
extern
"C"
{
32
#endif
33
34
#pragma pack(1)
/* For 1-byte boundary in memroy */
35
37
typedef
struct
{
38
igtl_int8
indexType
;
/* Index Type: 3:uint8 5:uint16 */
39
igtl_int8
mapType
;
/* 3: uint8 5:uint16 19:RGB color */
40
}
igtl_colortable_header
;
41
42
#pragma pack()
43
48
igtl_uint64
igtl_export
igtl_colortable_get_table_size
(
igtl_colortable_header
* header);
49
53
void
igtl_export
igtl_colortable_convert_byte_order
(
igtl_colortable_header
* header,
void
* table);
54
56
igtl_uint64
igtl_export
igtl_colortable_get_crc
(
igtl_colortable_header
* header,
void
* table);
57
58
#ifdef __cplusplus
59
}
60
#endif
61
62
#endif
/* __IGTL_COLORTABLE_H */
63
64
igtl_util.h
igtl_types.h
igtl_colortable_get_crc
igtl_uint64 igtl_export igtl_colortable_get_crc(igtl_colortable_header *header, void *table)
igtl_colortable_convert_byte_order
void igtl_export igtl_colortable_convert_byte_order(igtl_colortable_header *header, void *table)
igtl_colortable_get_table_size
igtl_uint64 igtl_export igtl_colortable_get_table_size(igtl_colortable_header *header)
igtl_win32header.h
igtl_colortable_header::indexType
igtl_int8 indexType
Definition:
igtl_colortable.h:38
igtl_export
#define igtl_export
Definition:
igtl_win32header.h:28
igtl_colortable_header::mapType
igtl_int8 mapType
Definition:
igtl_colortable.h:39
igtl_colortable_header
Definition:
igtl_colortable.h:37
Generated for OpenIGTLink by
Doxygen
1.8.17 written by
Dimitri van Heesch
, © 1997-2012