]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkMPR2DView.cxx
creaButtonContainer: Updates in documentation, adding try catch clauses and cleaning...
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxVtkMPR2DView.cxx
index bbceacf062c1791bb5cb69d8192e6dfe7b653572..13ed4a85d063ee745ce2371d20e012ac48961675 100644 (file)
@@ -3,6 +3,10 @@
 #include "vtkInteractorStyleBaseView.h"
 
 #include "vtkCellArray.h"
+#ifdef WIN32
+#include <mathdefs.h>
+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;
+}
+
 
 //-------------------------------------------------------------------
 //-------------------------------------------------------------------