X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtkMPR2DView.cxx;h=13ed4a85d063ee745ce2371d20e012ac48961675;hb=ab19f727dc01a9995b16b2a3c82783050728233e;hp=bbceacf062c1791bb5cb69d8192e6dfe7b653572;hpb=b0230890274e619c44f9ac7e1fd277ef28c18108;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx index bbceacf..13ed4a8 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx @@ -3,6 +3,10 @@ #include "vtkInteractorStyleBaseView.h" #include "vtkCellArray.h" +#ifdef WIN32 +#include +using namespace gtm; +#endif wxVtkMPR2DView::wxVtkMPR2DView( wxWindow *parent, int direction) :wxVtk2DBaseView(parent) @@ -228,7 +232,6 @@ void wxVtkMPR2DView::Refresh() //vtkCamera *camera = IV2->GetRenderer()->GetActiveCamera(); // JPRx - int x1 = 0,x2 = 0,y1 = 0,y2 = 0,z1 = 0,z2 = 0; int x = 0, y = 0, z = 0; int xx = 0, yy = 0, zz = 0; @@ -301,6 +304,10 @@ void wxVtkMPR2DView::Refresh() _backY=yy; _backZ=zz; } + +//EED 24oct2010 +_imageViewer2XYZ->GetVtkImageViewer2()->GetWindowLevel()->Modified(); + wxVtkBaseView::Refresh(); } } @@ -536,6 +543,12 @@ void wxVtkMPR2DView::TransFromCoordScreenToWorld(double &X, double &Y, double &Z } +//------------------------------------------------------------------- +int wxVtkMPR2DView::GetDirection() // virtual +{ + return _direction; +} + //------------------------------------------------------------------- //-------------------------------------------------------------------