Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyLayer.h @ 1279:7ec8fea061b9 broker
integration mainline->broker
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 04 Feb 2020 15:20:08 +0100 |
parents | 0ca50d275b9a 398ea4259e65 |
children | 379c00958553 |
comparison
equal
deleted
inserted
replaced
1271:0ca50d275b9a | 1279:7ec8fea061b9 |
---|---|
215 Geometry geometry_; | 215 Geometry geometry_; |
216 RadiographyPhotometricDisplayMode prefferedPhotometricDisplayMode_; | 216 RadiographyPhotometricDisplayMode prefferedPhotometricDisplayMode_; |
217 const RadiographyScene& scene_; | 217 const RadiographyScene& scene_; |
218 | 218 |
219 protected: | 219 protected: |
220 virtual const AffineTransform2D& GetTransform() const | |
221 { | |
222 return transform_; | |
223 } | |
224 | |
225 virtual const AffineTransform2D& GetTransformInverse() const | |
226 { | |
227 return transformInverse_; | |
228 } | |
229 | |
230 void SetPreferredPhotomotricDisplayMode(RadiographyPhotometricDisplayMode prefferedPhotometricDisplayMode); | 220 void SetPreferredPhotomotricDisplayMode(RadiographyPhotometricDisplayMode prefferedPhotometricDisplayMode); |
231 | 221 |
232 private: | 222 private: |
233 void UpdateTransform(); | 223 void UpdateTransform(); |
234 | 224 |
250 public: | 240 public: |
251 RadiographyLayer(const RadiographyScene& scene); | 241 RadiographyLayer(const RadiographyScene& scene); |
252 | 242 |
253 virtual ~RadiographyLayer() | 243 virtual ~RadiographyLayer() |
254 { | 244 { |
245 } | |
246 | |
247 virtual const AffineTransform2D& GetTransform() const | |
248 { | |
249 return transform_; | |
250 } | |
251 | |
252 virtual const AffineTransform2D& GetTransformInverse() const | |
253 { | |
254 return transformInverse_; | |
255 } | 255 } |
256 | 256 |
257 size_t GetIndex() const | 257 size_t GetIndex() const |
258 { | 258 { |
259 return index_; | 259 return index_; |
296 { | 296 { |
297 geometry_.SetResizeable(resizeable); | 297 geometry_.SetResizeable(resizeable); |
298 } | 298 } |
299 | 299 |
300 void SetSize(unsigned int width, | 300 void SetSize(unsigned int width, |
301 unsigned int height); | 301 unsigned int height, |
302 bool emitLayerEditedEvent = true); | |
302 | 303 |
303 bool HasSize() const | 304 bool HasSize() const |
304 { | 305 { |
305 return hasSize_; | 306 return hasSize_; |
306 } | 307 } |
356 bool applyWindowing) const = 0; | 357 bool applyWindowing) const = 0; |
357 | 358 |
358 virtual bool GetRange(float& minValue, | 359 virtual bool GetRange(float& minValue, |
359 float& maxValue) const = 0; | 360 float& maxValue) const = 0; |
360 | 361 |
361 friend class RadiographyMaskLayer; // because it needs to GetTransform on the dicomLayer it relates to | |
362 | |
363 virtual size_t GetApproximateMemoryUsage() const // this is used to limit the number of scenes loaded in RAM when resources are limited (we actually only count the size used by the images, not the C structs) | 362 virtual size_t GetApproximateMemoryUsage() const // this is used to limit the number of scenes loaded in RAM when resources are limited (we actually only count the size used by the images, not the C structs) |
364 { | 363 { |
365 return 0; | 364 return 0; |
366 } | 365 } |
367 }; | 366 }; |