CustusX
2023.01.05-dev+develop.0da12
An IGT application
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
igtl_us_status.h
Go to the documentation of this file.
1
/*=========================================================================
2
This file is part of CustusX, an Image Guided Therapy Application.
3
4
Copyright (c) SINTEF Department of Medical Technology.
5
All rights reserved.
6
7
CustusX is released under a BSD 3-Clause license.
8
9
See Lisence.txt (https://github.com/SINTEFMedtek/CustusX/blob/master/License.txt) for details.
10
=========================================================================*/
11
/*
12
* igtl_us_status.h
13
*
14
* Created on: Apr 23, 2012
15
* Author: olevs
16
*/
17
18
#ifndef IGTL_US_STATUS_H_
19
#define IGTL_US_STATUS_H_
20
21
#include "igtl_win32header.h"
22
#include "igtl_types.h"
23
#include "igtl_win32header.h"
24
25
// 8 * 6 + 4 = 52
26
#define IGTL_US_STATUS_HEADER_SIZE 52 // Calculate number of bytes
27
28
#ifdef __cplusplus
29
extern
"C"
{
30
#endif
31
32
#pragma pack(1)
/* For 1-byte boundary in memroy */
33
34
typedef
struct
{
35
igtl_float64
originX
;
36
igtl_float64
originY
;
37
igtl_float64
originZ
;
38
igtl_float64
depthStart
;
39
igtl_float64
depthEnd
;
40
igtl_float64
width
;
41
igtl_int32
probeType
;
42
// igtl_string dataFormat;
43
}
igtl_us_status_message
;
44
45
#pragma pack()
46
47
/*
48
* String data size
49
*
50
* This function calculates size of the pixel array, which will be
51
* transferred with the specified header.
52
*/
53
54
//igtl_uint32 igtl_export igtl_us_status_get_length(igtl_us_status_header * header);
55
56
/*
57
* Byte order conversion
58
*
59
* This function converts endianness from host byte order to network byte order,
60
* or vice versa.
61
* NOTE: It is developer's responsibility to have the string body with BOM
62
* (byte order mark) or in big endian ordrer.
63
*/
64
65
void
igtl_export
igtl_us_status_convert_byte_order
(
igtl_us_status_message
* message);
66
67
/*
68
* CRC calculation
69
*
70
* This function calculates CRC of image data body including header
71
* and array of pixel data.
72
*
73
*/
74
75
igtl_uint64 igtl_export
igtl_us_status_get_crc
(
igtl_us_status_message
* message);
76
77
#ifdef __cplusplus
78
}
79
#endif
80
81
#endif
/* IGTL_US_STATUS_H_ */
igtl_us_status_get_crc
igtl_uint64 igtl_export igtl_us_status_get_crc(igtl_us_status_message *message)
Definition:
igtl_us_status.c:42
igtl_us_status_message::originX
igtl_float64 originX
Definition:
igtl_us_status.h:35
igtl_us_status_message::depthEnd
igtl_float64 depthEnd
Definition:
igtl_us_status.h:39
igtl_us_status_message
Definition:
igtl_us_status.h:34
igtl_us_status_message::originZ
igtl_float64 originZ
Definition:
igtl_us_status.h:37
igtl_us_status_message::depthStart
igtl_float64 depthStart
Definition:
igtl_us_status.h:38
igtl_us_status_message::probeType
igtl_int32 probeType
Definition:
igtl_us_status.h:41
igtl_us_status_message::width
igtl_float64 width
Definition:
igtl_us_status.h:40
igtl_us_status_message::originY
igtl_float64 originY
Definition:
igtl_us_status.h:36
igtl_us_status_convert_byte_order
void igtl_export igtl_us_status_convert_byte_order(igtl_us_status_message *message)
Definition:
igtl_us_status.c:22
CX
source
resource
OpenIGTLinkUtilities
igtl_us_status.h
Generated on Thu Jan 5 2023 00:50:42 for CustusX by
1.8.11