comparison Framework/Toolbox/Slice.h @ 119:ba83e38cf3ff wasm

rendering of rt-dose
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 02 Oct 2017 22:01:41 +0200
parents a4d0b6c82b29
children e2fe9352f240
comparison
equal deleted inserted replaced
118:a4d0b6c82b29 119:ba83e38cf3ff
22 #pragma once 22 #pragma once
23 23
24 #include "CoordinateSystem3D.h" 24 #include "CoordinateSystem3D.h"
25 #include "DicomFrameConverter.h" 25 #include "DicomFrameConverter.h"
26 26
27 #include <Core/DicomFormat/DicomMap.h> 27 #include <Core/DicomFormat/DicomImageInformation.h>
28 28
29 namespace OrthancStone 29 namespace OrthancStone
30 { 30 {
31 class Slice 31 class Slice : public boost::noncopyable
32 { 32 {
33 private: 33 private:
34 enum Type 34 enum Type
35 { 35 {
36 Type_Invalid, 36 Type_Invalid,
45 45
46 Type type_; 46 Type type_;
47 std::string orthancInstanceId_; 47 std::string orthancInstanceId_;
48 std::string sopClassUid_; 48 std::string sopClassUid_;
49 unsigned int frame_; 49 unsigned int frame_;
50 unsigned int frameCount_; 50 unsigned int frameCount_; // TODO : Redundant with "imageInformation_"
51 CoordinateSystem3D geometry_; 51 CoordinateSystem3D geometry_;
52 double pixelSpacingX_; 52 double pixelSpacingX_;
53 double pixelSpacingY_; 53 double pixelSpacingY_;
54 double thickness_; 54 double thickness_;
55 unsigned int width_; 55 unsigned int width_; // TODO : Redundant with "imageInformation_"
56 unsigned int height_; 56 unsigned int height_; // TODO : Redundant with "imageInformation_"
57 DicomFrameConverter converter_; 57 DicomFrameConverter converter_; // TODO : Partially redundant with "imageInformation_"
58 58
59 std::auto_ptr<Orthanc::DicomImageInformation> imageInformation_;
60
59 public: 61 public:
60 Slice() : type_(Type_Invalid) 62 Slice() :
63 type_(Type_Invalid)
61 { 64 {
62 } 65 }
63 66
64 // TODO Is this constructor the best way to go to tackle missing 67 // TODO Is this constructor the best way to go to tackle missing
65 // layers within LayerWidget? 68 // layers within LayerWidget?
129 const DicomFrameConverter& GetConverter() const; 132 const DicomFrameConverter& GetConverter() const;
130 133
131 bool ContainsPlane(const CoordinateSystem3D& plane) const; 134 bool ContainsPlane(const CoordinateSystem3D& plane) const;
132 135
133 void GetExtent(std::vector<Vector>& points) const; 136 void GetExtent(std::vector<Vector>& points) const;
137
138 const Orthanc::DicomImageInformation& GetImageInformation() const;
134 }; 139 };
135 } 140 }