comparison Framework/Toolbox/Slice.h @ 110:53025eecbc95 wasm

renamed SliceGeometry as CoordinateSystem3D
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 14 Jun 2017 15:50:38 +0200
parents fcec0ab44054
children 42c05a3baee3
comparison
equal deleted inserted replaced
109:53bd9277b025 110:53025eecbc95
19 **/ 19 **/
20 20
21 21
22 #pragma once 22 #pragma once
23 23
24 #include "SliceGeometry.h" 24 #include "CoordinateSystem3D.h"
25 #include "DicomFrameConverter.h" 25 #include "DicomFrameConverter.h"
26 26
27 namespace OrthancStone 27 namespace OrthancStone
28 { 28 {
29 class Slice 29 class Slice
38 }; 38 };
39 39
40 Type type_; 40 Type type_;
41 std::string orthancInstanceId_; 41 std::string orthancInstanceId_;
42 unsigned int frame_; 42 unsigned int frame_;
43 SliceGeometry geometry_; 43 CoordinateSystem3D geometry_;
44 double pixelSpacingX_; 44 double pixelSpacingX_;
45 double pixelSpacingY_; 45 double pixelSpacingY_;
46 double thickness_; 46 double thickness_;
47 unsigned int width_; 47 unsigned int width_;
48 unsigned int height_; 48 unsigned int height_;
53 { 53 {
54 } 54 }
55 55
56 // TODO Is this constructor the best way to go to tackle missing 56 // TODO Is this constructor the best way to go to tackle missing
57 // layers within LayerWidget? 57 // layers within LayerWidget?
58 Slice(const SliceGeometry& plane, 58 Slice(const CoordinateSystem3D& plane,
59 double thickness) : 59 double thickness) :
60 type_(Type_Standalone), 60 type_(Type_Standalone),
61 frame_(0), 61 frame_(0),
62 geometry_(plane), 62 geometry_(plane),
63 pixelSpacingX_(1), 63 pixelSpacingX_(1),
66 width_(0), 66 width_(0),
67 height_(0) 67 height_(0)
68 { 68 {
69 } 69 }
70 70
71 Slice(const SliceGeometry& plane, 71 Slice(const CoordinateSystem3D& plane,
72 double pixelSpacingX, 72 double pixelSpacingX,
73 double pixelSpacingY, 73 double pixelSpacingY,
74 double thickness, 74 double thickness,
75 unsigned int width, 75 unsigned int width,
76 unsigned int height, 76 unsigned int height,
102 102
103 const std::string GetOrthancInstanceId() const; 103 const std::string GetOrthancInstanceId() const;
104 104
105 unsigned int GetFrame() const; 105 unsigned int GetFrame() const;
106 106
107 const SliceGeometry& GetGeometry() const; 107 const CoordinateSystem3D& GetGeometry() const;
108 108
109 double GetThickness() const; 109 double GetThickness() const;
110 110
111 double GetPixelSpacingX() const; 111 double GetPixelSpacingX() const;
112 112
116 116
117 unsigned int GetHeight() const; 117 unsigned int GetHeight() const;
118 118
119 const DicomFrameConverter& GetConverter() const; 119 const DicomFrameConverter& GetConverter() const;
120 120
121 bool ContainsPlane(const SliceGeometry& plane) const; 121 bool ContainsPlane(const CoordinateSystem3D& plane) const;
122 122
123 void GetExtent(std::vector<Vector>& points) const; 123 void GetExtent(std::vector<Vector>& points) const;
124 }; 124 };
125 } 125 }