Go to the source code of this file.
Classes | |
struct | igtl_qtdata_element |
struct | igtl_rts_qtdata |
struct | igtl_stt_qtdata |
#define IGTL_QTDATA_ELEMENT_SIZE 50 |
Definition at line 22 of file igtl_qtdata.h.
#define igtl_qtdata_get_data_n | ( | size | ) | ((size) / IGTL_QTDATA_ELEMENT_SIZE) |
igtl_qtdata_get_data_n(size) calculates the number of qtdatas in the body, based on the body size. This function may be used when a client program parses a QTDATA message.
Definition at line 70 of file igtl_qtdata.h.
#define igtl_qtdata_get_data_size | ( | n | ) | ((n) * IGTL_QTDATA_ELEMENT_SIZE) |
igtl_qtdata_get_data_size(n) calculates the size of body based on the number of qtdatas. The size of body is used in the message header.
Definition at line 66 of file igtl_qtdata.h.
#define IGTL_QTDATA_LEN_NAME 20 /* Maximum length of tracking instrument name */ |
Definition at line 26 of file igtl_qtdata.h.
#define IGTL_QTDATA_TYPE_3D 3 /* 3D instrument (only tip of the instrument defined) */ |
Definition at line 31 of file igtl_qtdata.h.
#define IGTL_QTDATA_TYPE_5D |
Definition at line 32 of file igtl_qtdata.h.
#define IGTL_QTDATA_TYPE_6D 2 /* 6D instrument (regular instrument) */ |
Definition at line 30 of file igtl_qtdata.h.
#define IGTL_QTDATA_TYPE_TRACKER 1 /* Tracker */ |
Definition at line 29 of file igtl_qtdata.h.
#define IGTL_RTS_QTDATA_SIZE 1 |
Definition at line 24 of file igtl_qtdata.h.
#define IGTL_STT_QTDATA_LEN_COORDNAME 32 /* Maximum length of coordinate system name */ |
Definition at line 27 of file igtl_qtdata.h.
#define IGTL_STT_QTDATA_SIZE 36 |
Definition at line 23 of file igtl_qtdata.h.
void igtl_export igtl_qtdata_convert_byte_order | ( | igtl_qtdata_element * | qtdatalist, |
int | nelem | ||
) |
Byte order conversion for an array of QTDATA, STT_QTDATA and RTS_QTDATA data structure Converts endianness of each element in an array of igtl_qtdata_element from host byte order to network byte order, or vice versa.
igtl_uint64 igtl_export igtl_qtdata_get_crc | ( | igtl_qtdata_element * | qtdatalist, |
int | nelem | ||
) |
Calculates CRC of QTDATA, STT_QTDATA and RTS_QTDATA messages
void igtl_export igtl_rts_qtdata_convert_byte_order | ( | igtl_rts_qtdata * | rts_qtdata | ) |
igtl_qtdata_get_data_size(n) calculates the size of body based on the number of qtdatas. The size of body is used in the message header.
igtl_uint64 igtl_export igtl_rts_qtdata_get_crc | ( | igtl_rts_qtdata * | rts_qtdata | ) |
igtl_qtdata_get_data_size(n) calculates the size of body based on the number of qtdatas. The size of body is used in the message header.
void igtl_export igtl_stt_qtdata_convert_byte_order | ( | igtl_stt_qtdata * | stt_qtdata | ) |
igtl_qtdata_get_data_size(n) calculates the size of body based on the number of qtdatas. The size of body is used in the message header.
igtl_uint64 igtl_export igtl_stt_qtdata_get_crc | ( | igtl_stt_qtdata * | stt_qtdata | ) |
igtl_qtdata_get_data_size(n) calculates the size of body based on the number of qtdatas. The size of body is used in the message header.