Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_position.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_POSITION_H
16 #define __IGTL_POSITION_H
17 
18 #include "igtl_win32header.h"
19 #include "igtl_util.h"
20 #include "igtl_types.h"
21 
22 #define IGTL_POSITION_MESSAGE_DEFAULT_SIZE 28
23 
24 #define IGTL_POSITION_MESSAGE_POSITON_ONLY_SIZE 12 /* size w/o quaternion */
25 #define IGTL_POSITION_MESSAGE_WITH_QUATERNION3_SIZE 24 /* size 3-element quaternion */
26 
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  igtl_float32 position[3]; /* (x, y, z) */
37  igtl_float32 quaternion[4]; /* (ox, oy, oz, w) */
40 
41 #pragma pack()
42 
50 
53 
54 #ifdef __cplusplus
55 }
56 #endif
57 
58 #endif /* __IGTL_POSITION_H */
59 
60 
#define igtl_export
void igtl_export igtl_position_convert_byte_order_position_only(igtl_position *pos)
void igtl_export igtl_position_convert_byte_order_quaternion3(igtl_position *pos)
igtl_uint64 igtl_export igtl_position_get_crc(igtl_position *pos)
void igtl_export igtl_position_convert_byte_order(igtl_position *pos)

Generated at Wed Dec 4 2013 11:11:30 for OpenIGTLink by doxygen 1.8.5 written by Dimitri van Heesch, © 1997-2012