Mercurial > hg > orthanc-stone
comparison Framework/Radiography/RadiographyScene.h @ 1131:4663f158c748
RadiographyWidget is now notified when a layer is removed from the scene
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Wed, 06 Nov 2019 10:46:46 +0100 |
parents | 35e798b16b65 |
children | 1a73f852810a f417a0ae282b |
comparison
equal
deleted
inserted
replaced
1119:6bc766eab0de | 1131:4663f158c748 |
---|---|
98 { | 98 { |
99 return layer_; | 99 return layer_; |
100 } | 100 } |
101 }; | 101 }; |
102 | 102 |
103 class LayerRemovedMessage : public OriginMessage<RadiographyScene> | |
104 { | |
105 ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); | |
106 | |
107 private: | |
108 size_t& layerIndex_; | |
109 | |
110 public: | |
111 LayerRemovedMessage(const RadiographyScene& origin, | |
112 size_t& layerIndex) : | |
113 OriginMessage(origin), | |
114 layerIndex_(layerIndex) | |
115 { | |
116 } | |
117 | |
118 size_t& GetLayerIndex() const | |
119 { | |
120 return layerIndex_; | |
121 } | |
122 }; | |
123 | |
103 | 124 |
104 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, WindowingChangedMessage, RadiographyScene); | 125 ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, WindowingChangedMessage, RadiographyScene); |
105 | 126 |
106 | 127 |
107 class LayerAccessor : public boost::noncopyable | 128 class LayerAccessor : public boost::noncopyable |