Version: 6.3.1
Functions

src/VTKViewer/VTKViewer_Utilities.cxx File Reference

#include "VTKViewer_Utilities.h"
#include "VTKViewer_Actor.h"
#include "VTKViewer_Algorithm.h"
#include <algorithm>
#include <vtkMath.h>
#include <vtkCamera.h>
#include <vtkRenderer.h>
#include <vtkRenderWindow.h>
Include dependency graph for VTKViewer_Utilities.cxx:

Functions

void ResetCamera (vtkRenderer *theRenderer, int theUsingZeroFocalPoint)
int ComputeVisiblePropBounds (vtkRenderer *theRenderer, vtkFloatingPointType theBounds[6])
void ResetCameraClippingRange (vtkRenderer *theRenderer)
bool ComputeTrihedronSize (vtkRenderer *theRenderer, vtkFloatingPointType &theNewSize, const vtkFloatingPointType theSize, const vtkFloatingPointType theSizeInPercents)
bool IsBBEmpty (vtkRenderer *theRenderer)
bool ComputeBBCenter (vtkRenderer *theRenderer, vtkFloatingPointType theCenter[3])

Function Documentation

void ResetCamera ( vtkRenderer *  theRenderer,
int  theUsingZeroFocalPoint 
)
See also:
vtkRenderer.ResetCamera(vtkFloatingPointType bounds[6]) method

References ComputeVisiblePropBounds(), Plot2d.Dot, and ResetCameraClippingRange().

int ComputeVisiblePropBounds ( vtkRenderer *  theRenderer,
vtkFloatingPointType  theBounds[6] 
)

Compute the bounds of the visible props

References VTK.ActorCollectionCopy.GetActors().

void ResetCameraClippingRange ( vtkRenderer *  theRenderer)
See also:
vtkRenderer.ResetCameraClippingRange(vtkFloatingPointType bounds[6]) method
bool ComputeTrihedronSize ( vtkRenderer *  theRenderer,
vtkFloatingPointType theNewSize,
const vtkFloatingPointType  theSize,
const vtkFloatingPointType  theSizeInPercents 
)

Compute trihedron size.

References ComputeVisiblePropBounds().

bool IsBBEmpty ( vtkRenderer *  theRenderer)
bool ComputeBBCenter ( vtkRenderer *  theRenderer,
vtkFloatingPointType  theCenter[3] 
)
Copyright © 2007-2011 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS