VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkExtractSelectedFrustum Class Reference

Returns the portion of the input dataset that lies within a selection frustum. More...

#include <vtkExtractSelectedFrustum.h>

Inheritance diagram for vtkExtractSelectedFrustum:
Inheritance graph
[legend]
Collaboration diagram for vtkExtractSelectedFrustum:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkExtractSelectionBase Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkExtractSelectedFrustumNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
unsigned long GetMTime ()
void CreateFrustum (double vertices[32])
int OverallBoundsTest (double *bounds)
virtual void SetFrustum (vtkPlanes *)
virtual vtkPlanesGetFrustum ()
virtual vtkPointsGetClipPoints ()
virtual void SetFieldType (int)
virtual int GetFieldType ()
virtual void SetContainingCells (int)
virtual int GetContainingCells ()
virtual void SetShowBounds (int)
virtual int GetShowBounds ()
virtual void ShowBoundsOn ()
virtual void ShowBoundsOff ()
virtual void SetInsideOut (int)
virtual int GetInsideOut ()
virtual void InsideOutOn ()
virtual void InsideOutOff ()

Static Public Member Functions

static vtkExtractSelectedFrustumNew ()
static int IsTypeOf (const char *type)
static vtkExtractSelectedFrustumSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkExtractSelectedFrustum (vtkPlanes *f=NULL)
 ~vtkExtractSelectedFrustum ()
virtual int RequestDataObject (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
int ABoxFrustumIsect (double bounds[], vtkCell *cell)
int FrustumClipPolygon (int nverts, double *ivlist, double *wvlist, double *ovlist)
void PlaneClipPolygon (int nverts, double *ivlist, int pid, int &noverts, double *ovlist)
void PlaneClipEdge (double *V0, double *V1, int pid, int &noverts, double *overts)
int IsectDegenerateCell (vtkCell *cell)
void ComputePlane (int idx, double v0[3], double v1[2], double v2[3], vtkPoints *points, vtkDoubleArray *norms)

Protected Attributes

int FieldType
int ContainingCells
int InsideOut
vtkPlanesFrustum
int np_vertids [6][2]
vtkPointsClipPoints
int NumRejects
int NumIsects
int NumAccepts
int ShowBounds

Detailed Description

Returns the portion of the input dataset that lies within a selection frustum.

This class intersects the input DataSet with a frustum and determines which cells and points lie within the frustum. The frustum is defined with a vtkPlanes containing six cutting planes. The output is a DataSet that is either a shallow copy of the input dataset with two new "vtkInsidedness" attribute arrays, or a completely new UnstructuredGrid that contains only the cells and points of the input that are inside the frustum. The PreserveTopology flag controls which occurs. When PreserveTopology is off this filter adds a scalar array called vtkOriginalCellIds that says what input cell produced each output cell. This is an example of a Pedigree ID which helps to trace back results.

See also:
vtkExtractGeometry, vtkAreaPicker, vtkExtractSelection, vtkSelection
Tests:
vtkExtractSelectedFrustum (Tests)

Definition at line 51 of file vtkExtractSelectedFrustum.h.


Member Typedef Documentation

Reimplemented from vtkExtractSelectionBase.

Definition at line 55 of file vtkExtractSelectedFrustum.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkDataObjectAlgorithm.

static int vtkExtractSelectedFrustum::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkExtractSelectionBase.

virtual int vtkExtractSelectedFrustum::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkExtractSelectionBase.

Reimplemented from vtkExtractSelectionBase.

virtual vtkObjectBase* vtkExtractSelectedFrustum::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkExtractSelectionBase.

Reimplemented from vtkExtractSelectionBase.

void vtkExtractSelectedFrustum::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkExtractSelectionBase.

unsigned long vtkExtractSelectedFrustum::GetMTime ( ) [virtual]

Return the MTime taking into account changes to the Frustum

Reimplemented from vtkObject.

virtual void vtkExtractSelectedFrustum::SetFrustum ( vtkPlanes ) [virtual]

Set the selection frustum. The planes object must contain six planes.

Set the selection frustum. The planes object must contain six planes.

Given eight vertices, creates a frustum. each pt is x,y,z,1 in the following order near lower left, far lower left near upper left, far upper left near lower right, far lower right near upper right, far upper right

Return eight points that define the selection frustum. Valid if create Frustum was used, invalid if SetFrustum was.

virtual void vtkExtractSelectedFrustum::SetFieldType ( int  ) [virtual]

Sets/gets the intersection test type.

Sets/gets the intersection test type.

virtual void vtkExtractSelectedFrustum::SetContainingCells ( int  ) [virtual]

Sets/gets the intersection test type. Only meaningful when fieldType is vtkSelection::POINT

Sets/gets the intersection test type. Only meaningful when fieldType is vtkSelection::POINT

Does a quick test on the AABBox defined by the bounds.

virtual void vtkExtractSelectedFrustum::SetShowBounds ( int  ) [virtual]

When On, this returns an unstructured grid that outlines selection area. Off is the default.

When On, this returns an unstructured grid that outlines selection area. Off is the default.

virtual void vtkExtractSelectedFrustum::ShowBoundsOn ( ) [virtual]

When On, this returns an unstructured grid that outlines selection area. Off is the default.

virtual void vtkExtractSelectedFrustum::ShowBoundsOff ( ) [virtual]

When On, this returns an unstructured grid that outlines selection area. Off is the default.

virtual void vtkExtractSelectedFrustum::SetInsideOut ( int  ) [virtual]

When on, extracts cells outside the frustum instead of inside.

When on, extracts cells outside the frustum instead of inside.

virtual void vtkExtractSelectedFrustum::InsideOutOn ( ) [virtual]

When on, extracts cells outside the frustum instead of inside.

virtual void vtkExtractSelectedFrustum::InsideOutOff ( ) [virtual]

When on, extracts cells outside the frustum instead of inside.

virtual int vtkExtractSelectedFrustum::RequestDataObject ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

Sets up empty output dataset

Reimplemented from vtkExtractSelectionBase.

Reimplemented from vtkDataObjectAlgorithm.

int vtkExtractSelectedFrustum::ABoxFrustumIsect ( double  bounds[],
vtkCell cell 
) [protected]
int vtkExtractSelectedFrustum::FrustumClipPolygon ( int  nverts,
double ivlist,
double wvlist,
double ovlist 
) [protected]
void vtkExtractSelectedFrustum::PlaneClipPolygon ( int  nverts,
double ivlist,
int  pid,
int noverts,
double ovlist 
) [protected]
void vtkExtractSelectedFrustum::PlaneClipEdge ( double V0,
double V1,
int  pid,
int noverts,
double overts 
) [protected]
void vtkExtractSelectedFrustum::ComputePlane ( int  idx,
double  v0[3],
double  v1[2],
double  v2[3],
vtkPoints points,
vtkDoubleArray norms 
) [protected]

Member Data Documentation

Definition at line 138 of file vtkExtractSelectedFrustum.h.

Definition at line 139 of file vtkExtractSelectedFrustum.h.

Definition at line 140 of file vtkExtractSelectedFrustum.h.

Definition at line 143 of file vtkExtractSelectedFrustum.h.

Definition at line 144 of file vtkExtractSelectedFrustum.h.

Definition at line 147 of file vtkExtractSelectedFrustum.h.

Definition at line 148 of file vtkExtractSelectedFrustum.h.

Definition at line 149 of file vtkExtractSelectedFrustum.h.

Definition at line 150 of file vtkExtractSelectedFrustum.h.

Definition at line 151 of file vtkExtractSelectedFrustum.h.


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