From 12147ac4f03074c55861d70abb2425b147c66bd7 Mon Sep 17 00:00:00 2001 From: guigues Date: Fri, 14 Nov 2008 09:50:47 +0000 Subject: [PATCH 1/1] Rolled the camera in preview in order to have images showed in right orientation --- src/creaImageIOWxGimmick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/creaImageIOWxGimmick.cpp b/src/creaImageIOWxGimmick.cpp index 3ad5e81..4aba5f6 100644 --- a/src/creaImageIOWxGimmick.cpp +++ b/src/creaImageIOWxGimmick.cpp @@ -2072,12 +2072,13 @@ namespace creaImageIO vtkCamera *camera = mViewer->GetRenderer()->GetActiveCamera(); camera->SetViewUp ( spx*0, -spy*1, spz*0); - camera->SetPosition( spx*(x1+x2)/2, spy*(y1+y2)/2, -spz*10000000); + camera->SetPosition( spx*(x1+x2)/2, spy*(y1+y2)/2, spz*10000000); camera->SetFocalPoint ( spx*(x1+x2)/2 , spy*(y1+y2)/2 , spz*0); camera->ComputeViewPlaneNormal(); camera->SetParallelScale( spx*(x2-x1)/2.0 ); + camera->Roll ( 180 ); } mViewer->SetInput( im ); -- 2.47.0