igtl_position.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017 #ifndef __IGTL_POSITION_H
00018 #define __IGTL_POSITION_H
00019
00020 #include "igtl_win32header.h"
00021 #include "igtl_util.h"
00022 #include "igtl_types.h"
00023
00024 #define IGTL_POSITION_MESSAGE_DEFAULT_SIZE 28
00025
00026 #define IGTL_POSITION_MESSAGE_POSITON_ONLY_SIZE 12
00027 #define IGTL_POSITION_MESSAGE_WITH_QUATERNION3_SIZE 24
00028
00029
00030 #ifdef __cplusplus
00031 extern "C" {
00032 #endif
00033
00034 #pragma pack(1)
00035
00036
00037
00038
00039
00040 typedef struct {
00041 igtl_float32 position[3];
00042 igtl_float32 quaternion[4];
00043 } igtl_position;
00044
00045 #pragma pack()
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055 void igtl_export igtl_position_convert_byte_order(igtl_position* pos);
00056
00057
00058
00059
00060
00061
00062
00063
00064
00065 igtl_uint64 igtl_export igtl_position_get_crc(igtl_position* pos);
00066
00067 #ifdef __cplusplus
00068 }
00069 #endif
00070
00071 #endif
00072
00073
00074