Main Page
Namespace List
Class Hierarchy
Alphabetical List
Compound List
File List
Namespace Members
Compound Members
File Members
Source
igtlutil
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) */
38
}
igtl_position
;
40
41
#pragma pack()
42
46
void
igtl_export
igtl_position_convert_byte_order
(
igtl_position
* pos);
47
void
igtl_export
igtl_position_convert_byte_order_position_only
(
igtl_position
* pos);
48
void
igtl_export
igtl_position_convert_byte_order_quaternion3
(
igtl_position
* pos);
50
52
igtl_uint64
igtl_export
igtl_position_get_crc
(
igtl_position
* pos);
53
54
#ifdef __cplusplus
55
}
56
#endif
57
58
#endif
/* __IGTL_POSITION_H */
59
60
igtl_util.h
igtl_types.h
igtl_position_convert_byte_order_position_only
void igtl_export igtl_position_convert_byte_order_position_only(igtl_position *pos)
igtl_position_get_crc
igtl_uint64 igtl_export igtl_position_get_crc(igtl_position *pos)
igtl_win32header.h
igtl_position_convert_byte_order
void igtl_export igtl_position_convert_byte_order(igtl_position *pos)
igtl_position_convert_byte_order_quaternion3
void igtl_export igtl_position_convert_byte_order_quaternion3(igtl_position *pos)
igtl_position
Definition:
igtl_position.h:35
igtl_export
#define igtl_export
Definition:
igtl_win32header.h:28
Generated for OpenIGTLink by
Doxygen
1.8.17 written by
Dimitri van Heesch
, © 1997-2012