]> Creatis software - clitk.git/blobdiff - vv/vvToolROIManager.cxx
Removed clitkMakeSphereImage because it is available in RTK and we don't
[clitk.git] / vv / vvToolROIManager.cxx
index 6b4c66cdf368c5b645a8cf9bafa28d6ff36925e3..072d3634b23a1c26129ba466fc39c0fcae88224b 100644 (file)
@@ -317,7 +317,7 @@ void vvToolROIManager::Open()
 void vvToolROIManager::OpenBinaryImage(QStringList & filename) 
 {
   if (filename.size() == 0) return;
-  
   vvProgressDialog p("Reading ROI ...", true);
   p.SetCancelButtonEnabled(false);
   QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
@@ -371,7 +371,7 @@ void vvToolROIManager::OpenDicomImage(std::string filename)
 
     // Read information
     clitk::DicomRT_StructureSet::Pointer s = clitk::DicomRT_StructureSet::New();
-    s->Read(filename); //FIXME 
+    s->Read(filename);
 
     // Loop on selected struct
     std::vector<int> list = selector.getSelectedItems();
@@ -737,6 +737,9 @@ void vvToolROIManager::ChangeDepth(int n) {
 
 //------------------------------------------------------------------------------
 void vvToolROIManager::ReloadCurrentROI() {
+  if (mCurrentROI->GetImage()) {
+    return; // do nothing (contour from rt struct do not reload)
+  }
 
   // Remove all contours/overlay first
   bool visible = mCurrentROIActor->IsVisible();