Rendering/vtkCamera.cxx
void vtkCamera::Zoom(double amount)
{
  if (amount <= 0.0)
    {
    return;
    }

  if (this->ParallelProjection)
    {
    this->SetParallelScale(this->ParallelScale/amount);
    }
  else
    {
    this->SetViewAngle(this->ViewAngle/amount);
    }
}
//----------------------------------------------------------------------------
// Change the ViewAngle (for perspective) or the ParallelScale (for parallel)
// so that more or less of a scene occupies the viewport.  A value > 1 is a
// zoom-in. A value < 1 is a zoom-out.
Change the ViewAngle (for perspective) or the ParallelScale (for parallel)
so that more or less of a scene occupies the viewport.  A value > 1 is a
zoom-in. A value < 1 is a zoom-out.
Change the ViewAngle ( for perspective ) or the ParallelScale ( for parallel ) so that more or less of a scene occupies the viewport . A value > 1 is a zoom - in . A value < 1 is a zoom - out .
void vtkCamera::Zoom(double amount)
{
  if (amount <= 0.0)
    {
    return;
    }
  if (this->ParallelProjection)
    {
    this->SetParallelScale(this->ParallelScale/amount);
    }
  else
    {
    this->SetViewAngle(this->ViewAngle/amount);
    }
}
void vtkCamera :: Zoom ( double amount ) { if ( amount <= 0.0 ) { return ; } if ( this -> ParallelProjection ) { this -> SetParallelScale ( this -> ParallelScale / amount ) ; } else { this -> SetViewAngle ( this -> ViewAngle / amount ) ; } }
Change the ViewAngle (for perspective) or the ParallelScale (for parallel)
so that more or less of a scene occupies the viewport.
Change the ViewAngle ( for perspective ) or the ParallelScale ( for parallel ) so that more or less of a scene occupies the viewport .