]> Creatis software - creaContours.git/blobdiff - lib/Interface_Icons_NDimensions/interfSegmentationPanels.cxx
*** empty log message ***
[creaContours.git] / lib / Interface_Icons_NDimensions / interfSegmentationPanels.cxx
index b4e169642ec5c8c7ed80fdad89aed8dc525a3e34..615f852eabaf99152b6523a98d1cb1dff91fe57e 100644 (file)
@@ -319,10 +319,7 @@ void interfThresholdPanel::onThresholdChange(wxCommandEvent& event)
 {
        if (_thresholdGo)
        {
-               int minVal = _mBarThreshold->GetStart();
-               int maxVal = _mBarThreshold->GetEnd();
-
-               interfMainPanel::getInstance()->onThresholdChange(minVal, maxVal);
+               interfMainPanel::getInstance()->onThresholdChange();
 
                //std::cout<< "Valor Min: " << minVal << " & Valor Max: " << maxVal  << std::endl;
        }
@@ -332,27 +329,30 @@ void interfThresholdPanel::onThresholdGo(wxCommandEvent& event)
 {
        if (!_thresholdGo)
        {
-               int minVal = _mBarThreshold->GetStart();
-               int maxVal = _mBarThreshold->GetEnd();
-
-               interfMainPanel::getInstance()->onThreshold(minVal, maxVal);
+               interfMainPanel::getInstance()->onThreshold();
                _thresholdGo=true;
        }
 }
 
 void interfThresholdPanel::onThresholdRemove(wxCommandEvent& event)
 {
-       interfMainPanel::getInstance()->onThresholdRemove( );
-       _thresholdGo=false;
+       if (_thresholdGo)
+       {       
+               interfMainPanel::getInstance()->onThresholdRemove( );
+               _thresholdGo=false;             
+       }
 }
 
 void interfThresholdPanel::onThresholdStop()
 {
-       interfMainPanel::getInstance()->onThresholdRemove( );
-       _thresholdGo=false;
+       if (_thresholdGo)
+       {       
+               interfMainPanel::getInstance()->onThresholdRemove( );
+               _thresholdGo=false;             
+       }
 }
 
-void interfThresholdPanel::onThresholdInstantChange(int range[])
+void interfThresholdPanel::onThresholdInstantChange(double range[])
 {
        range[0] = _mBarThreshold->GetStart();
        range[1] = _mBarThreshold->GetEnd();