plastimatch
Loading...
Searching...
No Matches
xio_studyset.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _xio_studyset_h_
5#define _xio_studyset_h_
6
7#include "plmbase_config.h"
8#include <string>
9#include <vector>
10
13 XIO_VERSION_4_2_1, /* MGH proton Xio */
14 XIO_VERSION_4_33_02, /* Older MGH photon Xio */
15 XIO_VERSION_4_5_0, /* Current MGH photon Xio */
16};
17
19{
20public:
21 std::string name;
22 float location;
23
24 std::string filename_scan;
25 std::string filename_contours;
26
27public:
28 Xio_studyset_slice (std::string slice_filename_scan, const float slice_location);
30
31 bool operator < (const Xio_studyset_slice &cmp) const
32 {
33 return location < cmp.location;
34 }
35};
36
38{
39public:
40 std::string studyset_dir;
42 float thickness;
43 float ct_pixel_spacing[2];
44 std::vector<Xio_studyset_slice> slices;
45
46public:
47 Xio_studyset (const std::string& studyset_dir);
49
50private:
51 int gcd(int, int);
52};
53
54#endif
Definition: xio_studyset.h:19
std::string name
Definition: xio_studyset.h:21
std::string filename_scan
Definition: xio_studyset.h:24
std::string filename_contours
Definition: xio_studyset.h:25
float location
Definition: xio_studyset.h:22
Definition: xio_studyset.h:38
float thickness
Definition: xio_studyset.h:42
int number_slices
Definition: xio_studyset.h:41
std::vector< Xio_studyset_slice > slices
Definition: xio_studyset.h:44
std::string studyset_dir
Definition: xio_studyset.h:40
#define PLMBASE_API
Definition: plmbase_config.h:19
Xio_version
Definition: xio_studyset.h:11
@ XIO_VERSION_UNKNOWN
Definition: xio_studyset.h:12
@ XIO_VERSION_4_2_1
Definition: xio_studyset.h:13
@ XIO_VERSION_4_5_0
Definition: xio_studyset.h:15
@ XIO_VERSION_4_33_02
Definition: xio_studyset.h:14