]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/ThresholdImageView/LayerImageBase.cxx
no message
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ThresholdImageView / LayerImageBase.cxx
index c6d8465096bfd21a7ec43484e7ed82244e2eef78..ea912f370f24b89fc98ff0180e781dcaffd58919 100644 (file)
@@ -25,7 +25,7 @@ ColorLayerImageBasevtkInteractor::~ColorLayerImageBasevtkInteractor()
 //---------------------------------------------------------------------------------------------
 bool ColorLayerImageBasevtkInteractor::OnMouseMove()
 {
-
+       printf("EED ColorLayerImageBasevtkInteractor::OnMouseMove \n");
     if  (_vtkInteractorStyleBaseView->GetRefresh_waiting()==true)
     {
         _layerImageBase->GetvtkImageReslice()->Modified();
@@ -94,10 +94,14 @@ void LayerImageBase::SetImage(vtkImageData* image)
 //----------------------------------------------------------------------------
 void LayerImageBase::SetwxVtkBaseView(wxVtkBaseView *baseview)
 {
+       printf("EED LayerImageBase::SetwxVtkBaseView start baseview:%p \n", baseview);
+
        _baseView = baseview;
 
     vtkInteractorStyleBaseView *isbv    = (vtkInteractorStyleBaseView*)(_baseView->GetInteractorStyleBaseView());
     isbv->AddInteractorStyleMaracas( new ColorLayerImageBasevtkInteractor(this) );
+       
+       printf("EED LayerImageBase::SetwxVtkBaseView end \n");
 }
 
 //----------------------------------------------------------------------------
@@ -145,7 +149,9 @@ int LayerImageBase::CleanZ(int z)
 //----------------------------------------------------------------------------
 void LayerImageBase::onThreshold()
 {
-
+       
+       printf("EED LayerImageBase::onThreshold start \n");
+       
        if ((_image!=NULL) && (_baseView!=NULL))
        {
                int z=CleanZ( GetZ() );
@@ -189,7 +195,12 @@ void LayerImageBase::onThreshold()
                _thresholdMapper->SetInput( img );
                _thresholdMapper->SetLookupTable( _thresholdTable );
                _thresholdActor->SetInput( _thresholdMapper->GetOutput() );
+
+               printf("EED LayerImageBase::onThreshold working \n");
+               
+               
                } // _image
+       printf("EED LayerImageBase::onThreshold end");
 }