]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/vtkInteractorManualPaint.cpp
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualPaint / vtkInteractorManualPaint.cpp
index 0a9a18f6a5437500e9990ed4dba371ff30594a70..ba0a778ae134e7f314d48d728b92166c715cf0b5 100644 (file)
@@ -47,16 +47,15 @@ bool vtkInteractorManualPaint::OnMouseMove ()
         int px,py;
         wxVTKiren->GetEventPosition(px,py);
 
-        int     typeView = 2;
+//        int     typeView = 1;
         double  X        = (double)px;
         double  Y        = (double)py;
         double  Z        =  wxvtk2Dbaseview->GetActualSlice();
-        wxvtk2Dbaseview->TransFromCoordScreenToWorld(X, Y, Z,false, typeView);
-
-//        int px = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0];
-//        int py = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1];
+//        wxvtk2Dbaseview->TransFromCoordScreenToWorld(X, Y, Z,true, typeView);
+        wxvtk2Dbaseview->TransFromCoordScreenToWorld(X, Y, Z,true);
 
         _manualPaintControler->PaintImage((int)X,(int)Y,(int)Z);
+        this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();
 
 /*
         wxvtk2Dbaseview->_imageViewer2XYZ->GetVtkImageViewer2()->Modified();