]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/ThresholdImageView.cxx
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / ThresholdImageView.cxx
index 693b7d8510c8f1d2bc5f6c251e70a951ce550e39..4f4e5b5d3e91e9764cc07387abff23a633b92ebc 100644 (file)
@@ -4,11 +4,8 @@
  *  \brief Class bbtk::ThresholdImageView . 
  */
 
-
 #include "ThresholdImageView.h"
 
-
-
   //=========================================================================
        ThresholdImageView::ThresholdImageView( )
   {
@@ -36,7 +33,6 @@
 //----------------------------------------------------------------------------
 void ThresholdImageView::SetImage(vtkImageData* image)
 {
-       printf("ThresholdImageView::SetImage %p\n", image);
        _image = image;
 }
 
@@ -78,15 +74,12 @@ void ThresholdImageView::onThreshold()
                range[1]=255;
        }
        
-       
        int minTot = floor (range[0]);
        int maxTot = ceil (range[1]);
        
-       
        int minVal = floor (_minValue);
        int maxVal = floor (_maxValue);
        
-       
        if (!_actorPresent)
        {
                if (_imageReslicer==NULL)
@@ -163,7 +156,6 @@ void ThresholdImageView::onThreshold()
                baseView->GetRenderer()->AddActor( _thresholdActor );
                _actorPresent = true;
        }
-       
        else
        {
                _imageReslicer->SetResliceAxesOrigin(0,0,z);
@@ -192,7 +184,6 @@ void ThresholdImageView::onThreshold()
                                _thresholdTable->SetTableValue(i, 1.0, 1.0, 1.0, 0); //transparent
                        }
                }
-               
                _thresholdTable->Build( );
                _thresholdMapper->SetLookupTable( _thresholdTable );
                _thresholdMapper->SetInput( img );
@@ -219,13 +210,10 @@ void ThresholdImageView::onThresholdInterpolation(bool interpolate)
                {
                        _thresholdActor->InterpolateOn( );
                }
-               
                else
                {
                        _thresholdActor->InterpolateOff( );
-               }
-               
-//EED          _theViewPanel->RefreshInterface();
+               }               
        }
 }
 
@@ -236,8 +224,6 @@ void ThresholdImageView::onThresholdChangeOpacity (int opacity)
        {
                _thresholdActor->SetOpacity(opacity*0.1);
        }
-       
-//EED  _theViewPanel->RefreshInterface();
 }
 
 //----------------------------------------------------------------------------
@@ -248,9 +234,7 @@ void ThresholdImageView::onThresholdRemove()
                wxVtkBaseView * baseView = _baseView;
                baseView->GetRenderer()->RemoveActor( _thresholdActor );
                _actorPresent = false;
-       }
-       
-//EED  _theViewPanel->RefreshInterface();
+       }       
 }