X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualPaint%2FvtkInteractorManualPaint.cpp;h=122eccf2f9e551153215930e6f93b248b0e47f34;hb=9d8709b5e9d72b9f0034224bb4c00281264fb28d;hp=5e67cd99b1b96235826fe983c0e526d902818911;hpb=ef92674006375c4fe7b842ce834590c5b6d9683f;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/vtkInteractorManualPaint.cpp b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/vtkInteractorManualPaint.cpp index 5e67cd9..122eccf 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/vtkInteractorManualPaint.cpp +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualPaint/vtkInteractorManualPaint.cpp @@ -41,9 +41,7 @@ vtkInteractorManualPaint::~vtkInteractorManualPaint() { //--------------------------------------------------------------------------- bool vtkInteractorManualPaint::OnChar() { - vtkRenderWindowInteractor *interactor = - _vtkInteractorStyleBaseView->GetInteractor(); - + vtkRenderWindowInteractor *interactor = _vtkInteractorStyleBaseView->GetInteractor(); if (interactor->GetKeyCode() == 97) { _stateKey = !_stateKey; } @@ -71,7 +69,9 @@ bool vtkInteractorManualPaint::OnLeftButtonUp() { } //--------------------------------------------------------------------------- -bool vtkInteractorManualPaint::OnMouseMove() { +bool vtkInteractorManualPaint::OnMouseMove() +{ +printf("EED vtkInteractorManualPaint::OnMouseMove \n"); if ((_state == true) || (_stateKey == true)) { wxVtk2DBaseView *wxvtk2Dbaseview = (wxVtk2DBaseView*) _vtkInteractorStyleBaseView->GetWxVtk2DBaseView(); @@ -87,6 +87,7 @@ bool vtkInteractorManualPaint::OnMouseMove() { // wxvtk2Dbaseview->TransFromCoordScreenToWorld(X, Y, Z,true, typeView); wxvtk2Dbaseview->TransFromCoordScreenToWorld(X, Y, Z, true); +printf("EED vtkInteractorManualPaint::OnMouseMove A %d %d %d\n", (int) X, (int) Y, (int) Z); _manualPaintControler->PaintImage((int) X, (int) Y, (int) Z); this->_vtkInteractorStyleBaseView->SetParent_refresh_waiting();