Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_lbmeta.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_LBMETA_H
16#define __IGTL_LBMETA_H
17
18#include "igtl_win32header.h"
19#include "igtl_util.h"
20#include "igtl_types.h"
21
22#define IGTL_LBMETA_ELEMENT_SIZE 116
23
24#define IGTL_LBMETA_LEN_NAME 64
25#define IGTL_LBMETA_LEN_DEVICE_NAME 20
26#define IGTL_LBMETA_LEN_OWNER 20
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
77#pragma pack(1) /* For 1-byte boundary in memroy */
78
79typedef struct {
80 char name[IGTL_LBMETA_LEN_NAME]; /* name / description */
81 char device_name[IGTL_LBMETA_LEN_DEVICE_NAME]; /* device name to query the IMAGE */
82 igtl_uint8 label; /* label */
83 igtl_uint8 reserved;
84 igtl_uint8 rgba[4]; /* Color in RGBA. default: (0, 0, 0, 0) */
85 igtl_uint16 size[3]; /* Number of pixels in each direction */
86 char owner[IGTL_LBMETA_LEN_OWNER];/* Device name of the owner image. (can be empty) */
88
89#pragma pack()
90
91
94#define igtl_lbmeta_get_data_size(n) ((n) * IGTL_LBMETA_ELEMENT_SIZE)
95
98#define igtl_lbmeta_get_data_n(size) ((size) / IGTL_LBMETA_ELEMENT_SIZE)
99
103
105igtl_uint64 igtl_export igtl_lbmeta_get_crc(igtl_lbmeta_element* metalist, int nitem);
106
107#ifdef __cplusplus
108}
109#endif
110
111#endif /* __IGTL_LBMETA_H */
112
113
#define IGTL_LBMETA_LEN_NAME
Definition igtl_lbmeta.h:24
#define IGTL_LBMETA_LEN_DEVICE_NAME
Definition igtl_lbmeta.h:25
#define IGTL_LBMETA_LEN_OWNER
Definition igtl_lbmeta.h:26
void igtl_export igtl_lbmeta_convert_byte_order(igtl_lbmeta_element *metalist, int nitem)
igtl_uint64 igtl_export igtl_lbmeta_get_crc(igtl_lbmeta_element *metalist, int nitem)
#define igtl_export
igtl_uint8 reserved
Definition igtl_lbmeta.h:83

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