Version: 9.15.0
VTKViewer_Utilities.h File Reference
#include "VTKViewer.h"

Go to the source code of this file.

Functions

void ResetCamera (vtkRenderer *theRenderer, int theUsingZeroFocalPoint=false)
 
int ComputeVisiblePropBounds (vtkRenderer *theRenderer, double theBounds[6])
 
int ComputeBounds (vtkActorCollection *theCollection, double theBounds[6])
 
void ResetCameraClippingRange (vtkRenderer *theRenderer)
 
bool ComputeTrihedronSize (vtkRenderer *theRenderer, double &theNewSize, const double theSize, const double theSizeInPercents)
 
bool IsBBEmpty (vtkRenderer *theRenderer)
 
bool ComputeBBCenter (vtkRenderer *theRenderer, double theCenter[3])
 
bool isBoundValid (double *theBounds)
 

Function Documentation

◆ ComputeBBCenter()

bool ComputeBBCenter ( vtkRenderer *  theRenderer,
double  theCenter[3] 
)

◆ ComputeBounds()

int ComputeBounds ( vtkActorCollection *  theCollection,
double  theBounds[6] 
)

Compute the bounds of actors

◆ ComputeTrihedronSize()

bool ComputeTrihedronSize ( vtkRenderer *  theRenderer,
double &  theNewSize,
const double  theSize,
const double  theSizeInPercents 
)

Compute trihedron size.

References ComputeVisiblePropBounds().

◆ ComputeVisiblePropBounds()

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

Compute the bounds of the visible props

References ComputeBounds(), and VTK::ActorCollectionCopy::GetActors().

◆ IsBBEmpty()

bool IsBBEmpty ( vtkRenderer *  theRenderer)

◆ isBoundValid()

bool isBoundValid ( double *  theBounds)

Check that the given bounding box is valid, i.e each min bound < each max bound

◆ ResetCamera()

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

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

◆ ResetCameraClippingRange()

void ResetCameraClippingRange ( vtkRenderer *  theRenderer)
See also
vtkRenderer::ResetCameraClippingRange(double bounds[6]) method

References ComputeVisiblePropBounds(), and SUIT_tools::distance().