X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualContour%2FmanualContourBaseControler.cpp;h=f96fb484afeea85782bd74c89c561b0f915c57aa;hb=24937478048aca664712bb708240bff79879e0d9;hp=c32d56913c1839f8e747963fc927590d0d289c1b;hpb=c8f0981d6be0249ed9b5c7a170290e91f8dabaea;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourBaseControler.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourBaseControler.cpp index c32d569..f96fb48 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourBaseControler.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualContourBaseControler.cpp @@ -137,7 +137,6 @@ bool manualContourBaseControler::OnChar() // ---------------------------------------------------------------------------- bool manualContourBaseControler::OnMouseMove() { - if ( _vtkInteractorStyleBaseView!=NULL) { int X,Y; @@ -145,6 +144,7 @@ bool manualContourBaseControler::OnMouseMove() _wxVTKiren= _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->GetWxVTKRenderWindowInteractor(); _wxVTKiren->GetEventPosition( X , Y ); + printf("EED manualContourBaseControler::OnMouseMove %d %d\n",X,Y); if ( (_vtkInteractorStyleBaseView->GetInteractor()->GetControlKey()==0) && (_vtkInteractorStyleBaseView->GetInteractor()->GetShiftKey()==0) ) { @@ -290,7 +290,7 @@ void manualContourBaseControler::MouseDLeft(int x, int y ) { if (_state==0) { - + int z=GetZ(); /*bool temp = */ _manViewBaseCont->SelectPosibleContour(x,y,z); @@ -457,7 +457,7 @@ void manualContourBaseControler::AddPoint(int x, int y, int z) // virtual double xx = x; double yy = y; double zz = z; - + GetManualViewBaseContour()->TransfromCoordViewWorld(xx,yy,zz); GetManualContourModel()->AddPoint(xx,yy,zz); GetManualViewBaseContour()->AddPoint();