VTK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
vtkFrustumSource Class Reference

create a polygonal representation of a frustum More...

#include <vtkFrustumSource.h>

Inherits vtkPolyDataAlgorithm.

Public Types

typedef vtkPolyDataAlgorithm Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkFrustumSourceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
virtual void SetPlanes (vtkPlanes *planes)
 
unsigned long GetMTime ()
 
virtual vtkPlanes * GetPlanes ()
 
virtual bool GetShowLines ()
 
virtual void SetShowLines (bool)
 
virtual void ShowLinesOn ()
 
virtual void ShowLinesOff ()
 
virtual double GetLinesLength ()
 
virtual void SetLinesLength (double)
 

Static Public Member Functions

static vtkFrustumSourceNew ()
 
static int IsTypeOf (const char *type)
 
static vtkFrustumSourceSafeDownCast (vtkObjectBase *o)
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkFrustumSource ()
 
virtual ~vtkFrustumSource ()
 
virtual int RequestData (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
void ComputePoint (int planes[3], double *pt)
 

Protected Attributes

vtkPlanes * Planes
 
bool ShowLines
 
double LinesLength
 

Detailed Description

create a polygonal representation of a frustum

vtkFrustumSource creates a frustum defines by a set of planes. The frustum is represented with four-sided polygons. It is possible to specify extra lines to better visualize the field of view.

Usage:
Typical use consists of 3 steps:
  1. get the planes coefficients from a vtkCamera with vtkCamera::GetFrustumPlanes()
  2. initialize the planes with vtkPlanes::SetFrustumPlanes() with the planes coefficients
  3. pass the vtkPlanes to a vtkFrustumSource.

Definition at line 38 of file vtkFrustumSource.h.

Member Typedef Documentation

typedef vtkPolyDataAlgorithm vtkFrustumSource::Superclass

Definition at line 42 of file vtkFrustumSource.h.

Constructor & Destructor Documentation

vtkFrustumSource::vtkFrustumSource ( )
protected

Default construtor. Planes=NULL. ShowLines=true. LinesLength=1.0.

virtual vtkFrustumSource::~vtkFrustumSource ( )
protectedvirtual

Member Function Documentation

static vtkFrustumSource* vtkFrustumSource::New ( )
static
static int vtkFrustumSource::IsTypeOf ( const char *  type)
static
virtual int vtkFrustumSource::IsA ( const char *  type)
virtual
static vtkFrustumSource* vtkFrustumSource::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkFrustumSource::NewInstanceInternal ( ) const
protectedvirtual
vtkFrustumSource* vtkFrustumSource::NewInstance ( ) const
void vtkFrustumSource::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual vtkPlanes* vtkFrustumSource::GetPlanes ( )
virtual

Return the 6 planes defining the frustum. Initial value is NULL. The 6 planes are defined in this order: left,right,bottom,top,far,near. If Planes==NULL or if Planes->GetNumberOfPlanes()!=6 when RequestData() is called, an error message will be emitted and RequestData() will return right away.

virtual void vtkFrustumSource::SetPlanes ( vtkPlanes *  planes)
virtual

Set the 6 planes defining the frustum.

virtual bool vtkFrustumSource::GetShowLines ( )
virtual

Tells if some extra lines will be generated. Initial value is true.

virtual void vtkFrustumSource::SetShowLines ( bool  )
virtual

Tells if some extra lines will be generated. Initial value is true.

virtual void vtkFrustumSource::ShowLinesOn ( )
virtual

Tells if some extra lines will be generated. Initial value is true.

virtual void vtkFrustumSource::ShowLinesOff ( )
virtual

Tells if some extra lines will be generated. Initial value is true.

virtual double vtkFrustumSource::GetLinesLength ( )
virtual

Length of the extra lines. This a stricly positive value. Initial value is 1.0.

virtual void vtkFrustumSource::SetLinesLength ( double  )
virtual

Length of the extra lines. This a stricly positive value. Initial value is 1.0.

unsigned long vtkFrustumSource::GetMTime ( )

Modified GetMTime because of Planes.

virtual int vtkFrustumSource::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual
void vtkFrustumSource::ComputePoint ( int  planes[3],
double *  pt 
)
protected

Compute the intersection of 3 planes.

Member Data Documentation

vtkPlanes* vtkFrustumSource::Planes
protected

Definition at line 90 of file vtkFrustumSource.h.

bool vtkFrustumSource::ShowLines
protected

Definition at line 91 of file vtkFrustumSource.h.

double vtkFrustumSource::LinesLength
protected

Definition at line 92 of file vtkFrustumSource.h.


The documentation for this class was generated from the following file: