Mercurial > hg > orthanc-stone
diff Framework/Radiography/RadiographyScene.cpp @ 428:751fb354149e am-vsol-upgrade
ability to change the scene of the RadiographyWidget
author | am@osimis.io |
---|---|
date | Wed, 28 Nov 2018 10:44:28 +0100 |
parents | 660fe6f6bf4a |
children | b85f635f1eb5 |
line wrap: on
line diff
--- a/Framework/Radiography/RadiographyScene.cpp Thu Nov 22 23:15:24 2018 +0100 +++ b/Framework/Radiography/RadiographyScene.cpp Wed Nov 28 10:44:28 2018 +0100 @@ -412,6 +412,8 @@ std::auto_ptr<RadiographyLayer> raii(layer); + LOG(INFO) << "Registering layer: " << countLayers_; + size_t index = countLayers_++; raii->SetIndex(index); layers_[index] = raii.release(); @@ -445,6 +447,8 @@ void RadiographyScene::RemoveLayer(size_t layerIndex) { + LOG(INFO) << "Removing layer: " << layerIndex; + if (layerIndex > countLayers_) { throw Orthanc::OrthancException(Orthanc::ErrorCode_ParameterOutOfRange); @@ -452,6 +456,7 @@ delete layers_[layerIndex]; layers_.erase(layerIndex); countLayers_--; + LOG(INFO) << "Removing layer, there are now : " << countLayers_ << " layers"; } RadiographyLayer& RadiographyScene::GetLayer(size_t layerIndex)