Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  
igtl_qtrans.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_QTRANS_H
16#define __IGTL_QTRANS_H
17
18#include "igtl_win32header.h"
19#include "igtl_util.h"
20#include "igtl_types.h"
21
22#define IGTL_QTRANS_MESSAGE_DEFAULT_SIZE 28
24#define IGTL_QTRANS_MESSAGE_POSITON_ONLY_SIZE 12 /* size w/o quaternion */
25#define IGTL_QTRANS_MESSAGE_WITH_QUATERNION3_SIZE 24 /* size 3-element quaternion */
26
27
28#ifdef __cplusplus
29extern "C" {
30#endif
31
32#pragma pack(1) /* For 1-byte boundary in memroy */
33
35typedef struct {
36 igtl_float32 qtrans[3]; /* (x, y, z) */
37 igtl_float32 quaternion[4]; /* (ox, oy, oz, w) */
40
41#pragma pack()
42
46
49
50#ifdef __cplusplus
51}
52#endif
53
54#endif /* __IGTL_QTRANS_H */
55
56
void igtl_export igtl_qtrans_convert_byte_order(igtl_qtrans *pos)
igtl_uint64 igtl_export igtl_qtrans_get_crc(igtl_qtrans *pos)
#define igtl_export

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