Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyAlphaLayer.h @ 503:77e0eb83ff63 am-touch-events
layers are now Observable and emitting LayerEdited messages
author | amazy |
---|---|
date | Tue, 26 Feb 2019 12:58:03 +0100 |
parents | b85f635f1eb5 |
children | b537002f83a9 a5f2a6b04a31 |
comparison
equal
deleted
inserted
replaced
502:3ae7563b4fe1 | 503:77e0eb83ff63 |
---|---|
31 // The color of the "mask" is either defined by a ForegroundValue or by the center value of the | 31 // The color of the "mask" is either defined by a ForegroundValue or by the center value of the |
32 // windowing from the scene. | 32 // windowing from the scene. |
33 class RadiographyAlphaLayer : public RadiographyLayer | 33 class RadiographyAlphaLayer : public RadiographyLayer |
34 { | 34 { |
35 private: | 35 private: |
36 const RadiographyScene& scene_; | |
37 std::auto_ptr<Orthanc::ImageAccessor> alpha_; // Grayscale8 | 36 std::auto_ptr<Orthanc::ImageAccessor> alpha_; // Grayscale8 |
38 bool useWindowing_; | 37 bool useWindowing_; |
39 float foreground_; | 38 float foreground_; |
40 | 39 |
41 public: | 40 public: |
42 RadiographyAlphaLayer(const RadiographyScene& scene) : | 41 RadiographyAlphaLayer(MessageBroker& broker, const RadiographyScene& scene) : |
43 scene_(scene), | 42 RadiographyLayer(broker, scene), |
44 useWindowing_(true), | 43 useWindowing_(true), |
45 foreground_(0) | 44 foreground_(0) |
46 { | 45 { |
47 } | 46 } |
48 | 47 |