comparison Framework/Toolbox/OrthancSlicesLoader.h @ 714:d2c0e347ddc2

deprecating DicomFrameConverter
author Sebastien Jodogne <s.jodogne@gmail.com>
date Mon, 20 May 2019 16:26:34 +0200
parents 6af3099ed8da
children 4f2416d519b4
comparison
equal deleted inserted replaced
713:e63c8b9b7b02 714:d2c0e347ddc2
44 { 44 {
45 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); 45 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
46 46
47 private: 47 private:
48 unsigned int sliceIndex_; 48 unsigned int sliceIndex_;
49 const Slice& slice_; 49 const Deprecated::Slice& slice_;
50 const Orthanc::ImageAccessor& image_; 50 const Orthanc::ImageAccessor& image_;
51 SliceImageQuality effectiveQuality_; 51 SliceImageQuality effectiveQuality_;
52 52
53 public: 53 public:
54 SliceImageReadyMessage(const OrthancSlicesLoader& origin, 54 SliceImageReadyMessage(const OrthancSlicesLoader& origin,
55 unsigned int sliceIndex, 55 unsigned int sliceIndex,
56 const Slice& slice, 56 const Deprecated::Slice& slice,
57 const Orthanc::ImageAccessor& image, 57 const Orthanc::ImageAccessor& image,
58 SliceImageQuality effectiveQuality) : 58 SliceImageQuality effectiveQuality) :
59 OriginMessage(origin), 59 OriginMessage(origin),
60 sliceIndex_(sliceIndex), 60 sliceIndex_(sliceIndex),
61 slice_(slice), 61 slice_(slice),
67 unsigned int GetSliceIndex() const 67 unsigned int GetSliceIndex() const
68 { 68 {
69 return sliceIndex_; 69 return sliceIndex_;
70 } 70 }
71 71
72 const Slice& GetSlice() const 72 const Deprecated::Slice& GetSlice() const
73 { 73 {
74 return slice_; 74 return slice_;
75 } 75 }
76 76
77 const Orthanc::ImageAccessor& GetImage() const 77 const Orthanc::ImageAccessor& GetImage() const
89 class SliceImageErrorMessage : public OriginMessage<OrthancSlicesLoader> 89 class SliceImageErrorMessage : public OriginMessage<OrthancSlicesLoader>
90 { 90 {
91 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); 91 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
92 92
93 private: 93 private:
94 const Slice& slice_; 94 const Deprecated::Slice& slice_;
95 unsigned int sliceIndex_; 95 unsigned int sliceIndex_;
96 SliceImageQuality effectiveQuality_; 96 SliceImageQuality effectiveQuality_;
97 97
98 public: 98 public:
99 SliceImageErrorMessage(const OrthancSlicesLoader& origin, 99 SliceImageErrorMessage(const OrthancSlicesLoader& origin,
100 unsigned int sliceIndex, 100 unsigned int sliceIndex,
101 const Slice& slice, 101 const Deprecated::Slice& slice,
102 SliceImageQuality effectiveQuality) : 102 SliceImageQuality effectiveQuality) :
103 OriginMessage(origin), 103 OriginMessage(origin),
104 slice_(slice), 104 slice_(slice),
105 sliceIndex_(sliceIndex), 105 sliceIndex_(sliceIndex),
106 effectiveQuality_(effectiveQuality) 106 effectiveQuality_(effectiveQuality)
109 unsigned int GetSliceIndex() const 109 unsigned int GetSliceIndex() const
110 { 110 {
111 return sliceIndex_; 111 return sliceIndex_;
112 } 112 }
113 113
114 const Slice& GetSlice() const 114 const Deprecated::Slice& GetSlice() const
115 { 115 {
116 return slice_; 116 return slice_;
117 } 117 }
118 118
119 SliceImageQuality GetEffectiveQuality() const 119 SliceImageQuality GetEffectiveQuality() const
168 168
169 void ParseSliceImageJpeg(const OrthancApiClient::JsonResponseReadyMessage& message); 169 void ParseSliceImageJpeg(const OrthancApiClient::JsonResponseReadyMessage& message);
170 170
171 void ParseSliceRawImage(const OrthancApiClient::BinaryResponseReadyMessage& message); 171 void ParseSliceRawImage(const OrthancApiClient::BinaryResponseReadyMessage& message);
172 172
173 void ScheduleSliceImagePng(const Slice& slice, 173 void ScheduleSliceImagePng(const Deprecated::Slice& slice,
174 size_t index); 174 size_t index);
175 175
176 void ScheduleSliceImagePam(const Slice& slice, 176 void ScheduleSliceImagePam(const Deprecated::Slice& slice,
177 size_t index); 177 size_t index);
178 178
179 void ScheduleSliceImageJpeg(const Slice& slice, 179 void ScheduleSliceImageJpeg(const Deprecated::Slice& slice,
180 size_t index, 180 size_t index,
181 SliceImageQuality quality); 181 SliceImageQuality quality);
182 182
183 void SortAndFinalizeSlices(); 183 void SortAndFinalizeSlices();
184 184
196 196
197 bool IsGeometryReady() const; 197 bool IsGeometryReady() const;
198 198
199 size_t GetSlicesCount() const; 199 size_t GetSlicesCount() const;
200 200
201 const Slice& GetSlice(size_t index) const; 201 const Deprecated::Slice& GetSlice(size_t index) const;
202 202
203 bool LookupSlice(size_t& index, 203 bool LookupSlice(size_t& index,
204 const CoordinateSystem3D& plane) const; 204 const CoordinateSystem3D& plane) const;
205 205
206 void ScheduleLoadSliceImage(size_t index, 206 void ScheduleLoadSliceImage(size_t index,