From 8455690c8e536d1cec06bc62a80d23c6c78ca955 Mon Sep 17 00:00:00 2001 From: srit Date: Thu, 3 Mar 2011 14:29:05 +0000 Subject: [PATCH] Let the renderer do the computation --- vv/vvSlicer.cxx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/vv/vvSlicer.cxx b/vv/vvSlicer.cxx index c070d60..af7f066 100644 --- a/vv/vvSlicer.cxx +++ b/vv/vvSlicer.cxx @@ -1062,14 +1062,7 @@ void vvSlicer::SetRenderWindow(int orientation, vtkRenderWindow * rw) //---------------------------------------------------------------------------- void vvSlicer::ResetCamera() { - if (this->GetInput()) { - double* input_bounds=this->GetInput()->GetBounds(); - double bmax=input_bounds[1]-input_bounds[0]; - if (bmax < input_bounds[3]-input_bounds[2]) bmax=input_bounds[3]-input_bounds[2]; - if (bmax < input_bounds[5]-input_bounds[4]) bmax=input_bounds[5]-input_bounds[4]; - this->GetRenderer()->ResetCamera(); - this->GetRenderer()->GetActiveCamera()->SetParallelScale(bmax/2); - } + this->GetRenderer()->ResetCamera(); } //---------------------------------------------------------------------------- -- 2.47.1