comparison Framework/Deprecated/Toolbox/OrthancSlicesLoader.h @ 739:be9c1530d40a

deprecating enum SliceImageQuality
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 22 May 2019 09:13:04 +0200
parents c0fcb2757b0a
children b537002f83a9 2d8ab34c8c91
comparison
equal deleted inserted replaced
738:8e31b174ab26 739:be9c1530d40a
46 46
47 private: 47 private:
48 unsigned int sliceIndex_; 48 unsigned int sliceIndex_;
49 const Slice& slice_; 49 const Slice& slice_;
50 const Orthanc::ImageAccessor& image_; 50 const Orthanc::ImageAccessor& image_;
51 OrthancStone::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 Slice& slice,
57 const Orthanc::ImageAccessor& image, 57 const Orthanc::ImageAccessor& image,
58 OrthancStone::SliceImageQuality effectiveQuality) : 58 SliceImageQuality effectiveQuality) :
59 OriginMessage(origin), 59 OriginMessage(origin),
60 sliceIndex_(sliceIndex), 60 sliceIndex_(sliceIndex),
61 slice_(slice), 61 slice_(slice),
62 image_(image), 62 image_(image),
63 effectiveQuality_(effectiveQuality) 63 effectiveQuality_(effectiveQuality)
77 const Orthanc::ImageAccessor& GetImage() const 77 const Orthanc::ImageAccessor& GetImage() const
78 { 78 {
79 return image_; 79 return image_;
80 } 80 }
81 81
82 OrthancStone::SliceImageQuality GetEffectiveQuality() const 82 SliceImageQuality GetEffectiveQuality() const
83 { 83 {
84 return effectiveQuality_; 84 return effectiveQuality_;
85 } 85 }
86 }; 86 };
87 87
91 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); 91 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__);
92 92
93 private: 93 private:
94 const Slice& slice_; 94 const Slice& slice_;
95 unsigned int sliceIndex_; 95 unsigned int sliceIndex_;
96 OrthancStone::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 Slice& slice,
102 OrthancStone::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)
107 { 107 {
114 const Slice& GetSlice() const 114 const Slice& GetSlice() const
115 { 115 {
116 return slice_; 116 return slice_;
117 } 117 }
118 118
119 OrthancStone::SliceImageQuality GetEffectiveQuality() const 119 SliceImageQuality GetEffectiveQuality() const
120 { 120 {
121 return effectiveQuality_; 121 return effectiveQuality_;
122 } 122 }
123 }; 123 };
124 124
176 void ScheduleSliceImagePam(const Slice& slice, 176 void ScheduleSliceImagePam(const Slice& slice,
177 size_t index); 177 size_t index);
178 178
179 void ScheduleSliceImageJpeg(const Slice& slice, 179 void ScheduleSliceImageJpeg(const Slice& slice,
180 size_t index, 180 size_t index,
181 OrthancStone::SliceImageQuality quality); 181 SliceImageQuality quality);
182 182
183 void SortAndFinalizeSlices(); 183 void SortAndFinalizeSlices();
184 184
185 public: 185 public:
186 OrthancSlicesLoader(OrthancStone::MessageBroker& broker, 186 OrthancSlicesLoader(OrthancStone::MessageBroker& broker,
202 202
203 bool LookupSlice(size_t& index, 203 bool LookupSlice(size_t& index,
204 const OrthancStone::CoordinateSystem3D& plane) const; 204 const OrthancStone::CoordinateSystem3D& plane) const;
205 205
206 void ScheduleLoadSliceImage(size_t index, 206 void ScheduleLoadSliceImage(size_t index,
207 OrthancStone::SliceImageQuality requestedQuality); 207 SliceImageQuality requestedQuality);
208 }; 208 };
209 } 209 }