X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtkBaseView.cxx;h=86358111a08130bd8bb53698a71106f7820de076;hb=b1a3c46ff7b25a6db4ca692f92b107a9cd0d319b;hp=5fe48b74d73a43d6e68923a6edc5425df8252c54;hpb=3fdde2fc9525d85df4fcdd49dab89ab19266cf84;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx index 5fe48b7..8635811 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkBaseView.cxx @@ -13,6 +13,7 @@ #include "wxVtkBaseView.h" + vtkStandardNewMacro(vtkInteractorStyleBaseView); vtkStandardNewMacro(vtkInteractorStyleBaseView2D); vtkStandardNewMacro(vtkInteractorStyleBaseView3D); @@ -533,7 +534,7 @@ bool vtkInteractorScrollZ::OnRightButtonUp() bool vtkInteractorScrollZ::OnMouseMove () { if (_stateFordware==true){ - //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; + //int fx = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[0]; // JPRx int fy = _vtkInteractorStyleBaseView->GetInteractor()->GetEventPosition()[1]; int delta = (_fordwareY - fy)/3; _vtkInteractorStyleBaseView->GetWxVtk2DBaseView()->SetActualSlice( _sliceZ + delta); @@ -1015,16 +1016,16 @@ void vtkInteractorStyleBaseView3D::OnMouseMove () // this->vtkInteractorStyleTrackballCamera::OnMouseMove(); - // int x = this->Interactor->GetEventPosition()[0]; - // int y = this->Interactor->GetEventPosition()[1]; + // int x = this->Interactor->GetEventPosition()[0]; // JPRx + // int y = this->Interactor->GetEventPosition()[1]; // JPRx // vtkRenderWindowInteractor *rwi = this->Interactor; - // int lx = rwi->GetLastEventPosition()[0]; - // int ly = rwi->GetLastEventPosition()[1]; - // int dx = rwi->GetEventPosition()[0] ; - // int dy = rwi->GetEventPosition()[1] ; + // int lx = rwi->GetLastEventPosition()[0]; // JPRx + // int ly = rwi->GetLastEventPosition()[1]; // JPRx + // int dx = rwi->GetEventPosition()[0] ; // JPRx + // int dy = rwi->GetEventPosition()[1] ; // JPRx switch (this->State) @@ -1200,7 +1201,7 @@ vtkTextActor *vtkInfoTextImage::Create_Text_Label(int px, int py ) // Text Window Level vtkTextActor *textActor = vtkTextActor::New(); textActor->SetDisplayPosition(px, py); - textActor->SetInput("--"); + textActor->SetInput("0"); // Set coordinates to match the old vtkScaledTextActor default value textActor->GetPosition2Coordinate()->SetCoordinateSystemToNormalizedViewport();