]> Creatis software - clitk.git/commitdiff
Remove Propagation checkbox
authorDavid Sarrut <david.sarrut@gmail.com>
Thu, 12 Jul 2012 08:30:55 +0000 (10:30 +0200)
committerDavid Sarrut <david.sarrut@gmail.com>
Thu, 12 Jul 2012 08:30:55 +0000 (10:30 +0200)
vv/vvStructSelector.h
vv/vvToolROIManager.cxx

index 2fe899b6f27368920b66925517122491876165b8..b6478771bc0a2f612bb7b2830339e4a3c0b1d6d9 100644 (file)
@@ -33,6 +33,9 @@ public:
     ///Enables the propagation checkbox
     void EnablePropagationCheckBox() {this->propagateCheckBox->setEnabled(true);
         this->propagateCheckBox->setChecked(true);}
+    void SetPropagationCheckBoxFlag(bool b) {
+      this->propagateCheckBox->setEnabled(b);
+      this->propagateCheckBox->setChecked(b);}
     ///Returns true if contours should be propagated over the sequence using the vf
     bool PropagationEnabled() {return this->propagateCheckBox->isChecked();}
 
index adaeeb28075d0c3a64d7dd2e017f78daf45b2e89..051a8bf8905456c3b6be0cce9cae6e0cdb1abc43 100644 (file)
@@ -361,6 +361,7 @@ void vvToolROIManager::OpenDicomImage(std::string filename)
   reader.SetFilename(filename);
   vvStructSelector selector;
   selector.SetStructures(reader.GetROINames());
+  selector.SetPropagationCheckBoxFlag(false);
   
   if (selector.exec()) { 
     vvProgressDialog p("Reading ROI...", true);