Mercurial > hg > orthanc-stone
diff 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 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.h Mon Nov 04 22:16:33 2019 +0100 +++ b/Framework/Radiography/RadiographyScene.h Wed Nov 06 10:46:46 2019 +0100 @@ -100,6 +100,27 @@ } }; + class LayerRemovedMessage : public OriginMessage<RadiographyScene> + { + ORTHANC_STONE_MESSAGE(__FILE__, __LINE__); + + private: + size_t& layerIndex_; + + public: + LayerRemovedMessage(const RadiographyScene& origin, + size_t& layerIndex) : + OriginMessage(origin), + layerIndex_(layerIndex) + { + } + + size_t& GetLayerIndex() const + { + return layerIndex_; + } + }; + ORTHANC_STONE_DEFINE_ORIGIN_MESSAGE(__FILE__, __LINE__, WindowingChangedMessage, RadiographyScene);