X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FwxVtkClipping3DView.cxx;h=a53f035ec2421be2185950c90eba8b1759fb709a;hb=47d49bceea4f93ff4f57c40596960d042171abb4;hp=91cfbc2f4a597d2223b430923fceced09fe6b766;hpb=251e3a687d15774b15e35a33ad10b45216d08dc7;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx index 91cfbc2..a53f035 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/wxVtkClipping3DView.cxx @@ -156,7 +156,6 @@ wxVtk3DBaseView* wxVtkClipping3DView::GetWxvtk3Dbaseview()throw(char*) //------------------------------------------------------------------- void wxVtkClipping3DView::Configure() { - _wxvtk3Dbaseview->Configure(); // Actors are added to the renderer. @@ -227,11 +226,13 @@ void wxVtkClipping3DView::Configure() // _boxWidgetVolume->GetPlanes( vtkplanes ); +//EED 27/05/2013 +// _wxvtk3Dbaseview->GetRenderer()->ResetCamera (); +// _wxvtk3Dbaseview->GetCamera()->Dolly(1.2); + // An initial camera view is created. The Dolly() method moves // the camera towards the FocalPoint, thereby enlarging the image. - _wxvtk3Dbaseview->GetRenderer()->SetActiveCamera(_wxvtk3Dbaseview->GetCamera()); - _wxvtk3Dbaseview->GetRenderer()->ResetCamera (); - _wxvtk3Dbaseview->GetCamera()->Dolly(2); + _wxvtk3Dbaseview->ResetCamera(); // Set a background color for the renderer and set the size of the