Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_point.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_POINT_H
16 #define __IGTL_POINT_H
17 
18 #include "igtl_win32header.h"
19 #include "igtl_util.h"
20 #include "igtl_types.h"
21 
22 #define IGTL_POINT_ELEMENT_SIZE 136
23 
24 #define IGTL_POINT_LEN_NAME 64
25 #define IGTL_POINT_LEN_GROUP_NAME 32
26 #define IGTL_POINT_LEN_OWNER 20
27 
28 #ifdef __cplusplus
29 extern "C" {
30 #endif
31 
32 #pragma pack(1) /* For 1-byte boundary in memroy */
33 
35 typedef struct {
36  char name[IGTL_POINT_LEN_NAME]; /* Name or description of the point */
37  char group_name[IGTL_POINT_LEN_GROUP_NAME]; /* Can be "Labeled Point", "Landmark", Fiducial", ... */
38  igtl_uint8 rgba[4]; /* Color in R/G/B/A */
39  igtl_float32 position[3]; /* Coordinate of the point */
40  igtl_float32 radius; /* Radius of the point. Can be 0. */
41  char owner[IGTL_POINT_LEN_OWNER];/* Device name of the ower image */
43 
44 #pragma pack()
45 
48 #define igtl_point_get_data_size(n) ((n) * IGTL_POINT_ELEMENT_SIZE)
49 
52 #define igtl_point_get_data_n(size) ((size) / IGTL_POINT_ELEMENT_SIZE)
53 
58 
60 igtl_uint64 igtl_export igtl_point_get_crc(igtl_point_element* pointlist, int nelem);
61 
62 #ifdef __cplusplus
63 }
64 #endif
65 
66 #endif /* __IGTL_POINT_H */
67 
68 
void igtl_export igtl_point_convert_byte_order(igtl_point_element *pointlist, int nelem)
#define IGTL_POINT_LEN_NAME
Definition: igtl_point.h:24
igtl_float32 radius
Definition: igtl_point.h:40
#define igtl_export
igtl_uint64 igtl_export igtl_point_get_crc(igtl_point_element *pointlist, int nelem)
#define IGTL_POINT_LEN_OWNER
Definition: igtl_point.h:26
#define IGTL_POINT_LEN_GROUP_NAME
Definition: igtl_point.h:25

Generated at Sat Aug 22 2015 03:53:40 for OpenIGTLink by doxygen 1.8.9.1 written by Dimitri van Heesch, © 1997-2012