X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=vv%2FvvToolROIManager.cxx;h=4c2832e0ced363bbc1d1cfe995f47a86700f8872;hb=e90f3417df897baa4a768b35374d7a80c5fa688e;hp=cab86e60553290ae1ec9c5ba39af087bff78721f;hpb=13db960c7fe74ba81d3ebeb7ed68bc5b3d983ccd;p=clitk.git diff --git a/vv/vvToolROIManager.cxx b/vv/vvToolROIManager.cxx index cab86e6..4c2832e 100644 --- a/vv/vvToolROIManager.cxx +++ b/vv/vvToolROIManager.cxx @@ -553,7 +553,7 @@ void vvToolROIManager::UpdateAllContours() for(unsigned int i=0; iUpdate(); } - mCurrentSlicerManager->Render(); + //mCurrentSlicerManager->Render(); } //------------------------------------------------------------------------------ @@ -716,6 +716,7 @@ void vvToolROIManager::OpacityChanged(int v) //------------------------------------------------------------------------------ void vvToolROIManager::AllVisibleROIToggled(int b) { + disconnect(mCheckBoxShowAll, SIGNAL(stateChanged(int)), this, SLOT(AllVisibleROIToggled(int))); bool status = false; if ((mCheckBoxShowAll->checkState() == Qt::Checked) || (mCheckBoxShowAll->checkState() == Qt::PartiallyChecked)) status = true; @@ -727,6 +728,7 @@ void vvToolROIManager::AllVisibleROIToggled(int b) else mCheckBoxShowAll->setCheckState(Qt::Unchecked); mCheckBoxShow->setChecked(status); mCurrentSlicerManager->Render(); + connect(mCheckBoxShowAll, SIGNAL(stateChanged(int)), this, SLOT(AllVisibleROIToggled(int))); } //------------------------------------------------------------------------------ @@ -863,7 +865,11 @@ void vvToolROIManager::ReloadCurrentROI() //------------------------------------------------------------------------------ +#if __cplusplus > 199711L +void vvToolROIManager::SaveState(std::shared_ptr & m_XmlWriter) +#else void vvToolROIManager::SaveState(std::auto_ptr & m_XmlWriter) +#endif { // Get index of the image int n = mMainWindow->GetSlicerManagers().size();