create a polygonal representation of a frustum
More...
#include <vtkFrustumSource.h>
Inherits vtkPolyDataAlgorithm.
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:
- get the planes coefficients from a vtkCamera with vtkCamera::GetFrustumPlanes()
- initialize the planes with vtkPlanes::SetFrustumPlanes() with the planes coefficients
- pass the vtkPlanes to a vtkFrustumSource.
Definition at line 38 of file vtkFrustumSource.h.
vtkFrustumSource::vtkFrustumSource |
( |
| ) |
|
|
protected |
Default construtor. Planes=NULL. ShowLines=true. LinesLength=1.0.
virtual vtkFrustumSource::~vtkFrustumSource |
( |
| ) |
|
|
protectedvirtual |
static int vtkFrustumSource::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkFrustumSource::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkFrustumSource::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
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.
vtkPlanes* vtkFrustumSource::Planes |
|
protected |
bool vtkFrustumSource::ShowLines |
|
protected |
double vtkFrustumSource::LinesLength |
|
protected |
The documentation for this class was generated from the following file: