]> Creatis software - bbtk.git/commitdiff
1492 Bug
authorEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 9 Jul 2012 13:00:56 +0000 (13:00 +0000)
committerEduardo Davila <Eduardo.Davila@creatis.insa-lyon.fr>
Mon, 9 Jul 2012 13:00:56 +0000 (13:00 +0000)
  viewer 2D view orientation

packages/wxvtk/src/wxvtkImageViewer2.cxx

index 45ab995f3b55af353ac565e89b45bf1de3836cd6..2b33e4e84458cdad72801ad9b67c1b51950bd7d4 100644 (file)
@@ -26,7 +26,7 @@
 #include "vtkRenderWindowInteractor.h"
 #include "vtkRenderer.h"
 
-vtkCxxRevisionMacro(wxvtkImageViewer2, "$Revision: 1.6 $");
+vtkCxxRevisionMacro(wxvtkImageViewer2, "$Revision: 1.7 $");
 vtkStandardNewMacro(wxvtkImageViewer2);
 
 //----------------------------------------------------------------------------
@@ -315,8 +315,8 @@ void wxvtkImageViewer2::UpdateOrientation()
     switch (this->SliceOrientation)
        {
                case wxvtkImageViewer2::SLICE_ORIENTATION_YZ:
-                         cam->SetViewUp(0,0,-1);
-                         cam->SetPosition(-1,0,0); // -1 if medical ?
+                         cam->SetViewUp(0,0,1);
+                         cam->SetPosition(1,0,0); // -1 if medical ?
                          cam->SetFocalPoint(0,0,0);
                        break;