]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx
#2440 creaMaracasVisu Feature New Normal - Add Active option to the ColorLayer Box
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.cxx
index c963498c24fd30d45e39f2460f0d868ec6897483..3884a64a55b579db0333aaa0889acf7a77d38997 100644 (file)
@@ -217,14 +217,12 @@ void LayerImageBase::SetImage(vtkImageData* image)
 //----------------------------------------------------------------------------
 void LayerImageBase::SetwxVtkBaseView(wxVtkBaseView *baseview)
 {
-       printf("EED LayerImageBase::SetwxVtkBaseView start baseview:%p \n", baseview);
        if (_baseView==NULL)
        {
          _baseView = baseview;
          vtkInteractorStyleBaseView *isbv    = (vtkInteractorStyleBaseView*)(_baseView->GetInteractorStyleBaseView());
          isbv->AddInteractorStyleMaracas( new ColorLayerImageBasevtkInteractor(this) );
        } // if _baseView
-       printf("EED LayerImageBase::SetwxVtkBaseView end \n");
 }
 
 //----------------------------------------------------------------------------
@@ -236,7 +234,6 @@ wxVtkBaseView *LayerImageBase::GetwxVtkBaseView()
 //----------------------------------------------------------------------------
 void LayerImageBase::Refresh()
 {
-    printf("EED LayerImageBase::Refresh\n");
     if (_baseView!=NULL)
     {
         _baseView->Refresh();
@@ -292,9 +289,6 @@ void LayerImageBase::CleanXYZ(double &x, double &y, double &z)
 //----------------------------------------------------------------------------
 void LayerImageBase::onThreshold()
 {
-
-       printf("EED LayerImageBase::onThreshold start \n");
-       
        if ((_image!=NULL) && (_baseView!=NULL))
        {
                double spc[3];
@@ -307,10 +301,6 @@ void LayerImageBase::onThreshold()
                x = x*spc[0];
                y = y*spc[1];
                z = z*spc[2];
-               
-
-       printf("EED LayerImageBase::onThreshold z = %d   spcZ%f\n" , z, spc[2]);
-               
 
                vtkCamera *camera = _baseView->GetRenderer()->GetActiveCamera();
                int directionViewer=0;
@@ -320,9 +310,6 @@ void LayerImageBase::onThreshold()
                        directionViewer =  wxvtk2dbasevie->GetDirection();
                } // ParallelProjection
 
-printf("EED LayerImageBase::onThreshold projection = %d\n" , camera->GetParallelProjection() );
-printf("EED LayerImageBase::onThreshold direction = %d\n" , directionViewer );
-
 
                if (!GetActorPresent())
                {
@@ -395,12 +382,8 @@ printf("EED LayerImageBase::onThreshold direction = %d\n" , directionViewer );
                _thresholdMapper->SetInput( img );
                _thresholdMapper->SetLookupTable( _thresholdTable );
                _thresholdActor->SetInput( _thresholdMapper->GetOutput() );
-
-               printf("EED LayerImageBase::onThreshold working \n");
-               
                
                } // _image
-       printf("EED LayerImageBase::onThreshold end \n");
 }