Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.h @ 426:660fe6f6bf4a am-vsol-upgrade
split Export in 2
author | am@osimis.io |
---|---|
date | Thu, 22 Nov 2018 23:15:24 +0100 |
parents | 087237703d63 |
children | 3f9017db1738 |
comparison
equal
deleted
inserted
replaced
425:087237703d63 | 426:660fe6f6bf4a |
---|---|
26 | 26 |
27 | 27 |
28 namespace OrthancStone | 28 namespace OrthancStone |
29 { | 29 { |
30 class RadiographyScene : | 30 class RadiographyScene : |
31 public IObserver, | 31 public IObserver, |
32 public IObservable | 32 public IObservable |
33 { | 33 { |
34 public: | 34 public: |
35 typedef OriginMessage<MessageType_Widget_GeometryChanged, RadiographyScene> GeometryChangedMessage; | 35 typedef OriginMessage<MessageType_Widget_GeometryChanged, RadiographyScene> GeometryChangedMessage; |
36 typedef OriginMessage<MessageType_Widget_ContentChanged, RadiographyScene> ContentChangedMessage; | 36 typedef OriginMessage<MessageType_Widget_ContentChanged, RadiographyScene> ContentChangedMessage; |
37 | 37 |
67 RadiographyLayer& GetLayer() const; | 67 RadiographyLayer& GetLayer() const; |
68 }; | 68 }; |
69 | 69 |
70 | 70 |
71 private: | 71 private: |
72 class AlphaLayer; | 72 class AlphaLayer; |
73 class DicomLayer; | 73 class DicomLayer; |
74 | 74 |
75 typedef std::map<size_t, RadiographyLayer*> Layers; | 75 typedef std::map<size_t, RadiographyLayer*> Layers; |
76 | 76 |
77 size_t countLayers_; | 77 size_t countLayers_; |
78 bool hasWindowing_; | 78 bool hasWindowing_; |
79 float windowingCenter_; | 79 float windowingCenter_; |
80 float windowingWidth_; | 80 float windowingWidth_; |
81 Layers layers_; | 81 Layers layers_; |
145 | 145 |
146 // Export using PAM is faster than using PNG, but requires Orthanc | 146 // Export using PAM is faster than using PNG, but requires Orthanc |
147 // core >= 1.4.3 | 147 // core >= 1.4.3 |
148 void ExportDicom(OrthancApiClient& orthanc, | 148 void ExportDicom(OrthancApiClient& orthanc, |
149 const Orthanc::DicomMap& dicom, | 149 const Orthanc::DicomMap& dicom, |
150 const std::string& parentOrthancId, | |
150 double pixelSpacingX, | 151 double pixelSpacingX, |
151 double pixelSpacingY, | 152 double pixelSpacingY, |
152 bool invert, | 153 bool invert, |
153 ImageInterpolation interpolation, | 154 ImageInterpolation interpolation, |
154 bool usePam); | 155 bool usePam); |
156 | |
157 // temporary version used by VSOL because we need to send the same request at another url | |
158 void Export(Json::Value& createDicomRequestContent, | |
159 const Orthanc::DicomMap& dicom, | |
160 double pixelSpacingX, | |
161 double pixelSpacingY, | |
162 bool invert, | |
163 ImageInterpolation interpolation, | |
164 bool usePam); | |
155 }; | 165 }; |
156 } | 166 } |