X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=src%2FcreaVtkBasicSlicer.cxx;h=65b2925d9143d100b324d7fc5f33a6ea90d08384;hb=ad3dfe8207e9b8ba8869d51e55dc2737ddd017ce;hp=388644c16e9223235bd020b7ee31874ce8fc5fb3;hpb=0485546c1d43eb9d0b5bae9678012dfeb7e9b7c7;p=crea.git diff --git a/src/creaVtkBasicSlicer.cxx b/src/creaVtkBasicSlicer.cxx index 388644c..65b2925 100644 --- a/src/creaVtkBasicSlicer.cxx +++ b/src/creaVtkBasicSlicer.cxx @@ -14,6 +14,8 @@ #include "vtkRenderer.h" #include "vtkCamera.h" +#include "vtkInteractorStyleTrackballCamera.h" + namespace crea { @@ -97,6 +99,7 @@ namespace crea // an interactor vtkRenderWindowInteractor *iren = vtkRenderWindowInteractor::New(); + iren->SetInteractorStyle( vtkInteractorStyleTrackballCamera::New() ); iren->SetRenderWindow(renWin); // Set the interactor for the widgets @@ -110,7 +113,7 @@ namespace crea // Create an initial interesting view vtkCamera* cam1 = ren->GetActiveCamera(); cam1->SetFocalPoint(0, 0, 0); - cam1->SetPosition(0, 0, -500); + cam1->SetPosition(0, 0, -1500); //cam1->OrthogonalizeViewUp(); cam1->Elevation(110); cam1->SetViewUp(0, 0, -1);