VTK
|
Returns the portion of the input dataset that lies within a selection frustum. More...
#include <vtkExtractSelectedFrustum.h>
Public Types | |
typedef vtkExtractSelectionBase | Superclass |
![]() | |
typedef vtkDataObjectAlgorithm | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkExtractSelectedFrustum * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
unsigned long | GetMTime () |
void | CreateFrustum (double vertices[32]) |
int | OverallBoundsTest (double *bounds) |
virtual void | SetFrustum (vtkPlanes *) |
virtual vtkPlanes * | GetFrustum () |
virtual vtkPoints * | GetClipPoints () |
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 () |
![]() | |
vtkExtractSelectionBase * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | SetSelectionConnection (vtkAlgorithmOutput *algOutput) |
virtual void | SetPreserveTopology (int) |
virtual int | GetPreserveTopology () |
virtual void | PreserveTopologyOn () |
virtual void | PreserveTopologyOff () |
Static Public Member Functions | |
static vtkExtractSelectedFrustum * | New () |
static int | IsTypeOf (const char *type) |
static vtkExtractSelectedFrustum * | SafeDownCast (vtkObjectBase *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkExtractSelectionBase * | SafeDownCast (vtkObjectBase *o) |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () 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) |
![]() | |
vtkExtractSelectionBase () | |
~vtkExtractSelectionBase () | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Protected Attributes | |
int | FieldType |
int | ContainingCells |
int | InsideOut |
vtkPlanes * | Frustum |
int | np_vertids [6][2] |
vtkPoints * | ClipPoints |
int | NumRejects |
int | NumIsects |
int | NumAccepts |
int | ShowBounds |
![]() | |
int | PreserveTopology |
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.
Definition at line 51 of file vtkExtractSelectedFrustum.h.
Definition at line 55 of file vtkExtractSelectedFrustum.h.
|
protected |
|
protected |
|
static |
|
static |
|
virtual |
Reimplemented from vtkExtractSelectionBase.
|
static |
|
protectedvirtual |
Reimplemented from vtkExtractSelectionBase.
vtkExtractSelectedFrustum* vtkExtractSelectedFrustum::NewInstance | ( | ) | const |
void vtkExtractSelectedFrustum::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
unsigned long vtkExtractSelectedFrustum::GetMTime | ( | ) |
Return the MTime taking into account changes to the Frustum
|
virtual |
Set the selection frustum. The planes object must contain six planes.
|
virtual |
Set the selection frustum. The planes object must contain six planes.
void vtkExtractSelectedFrustum::CreateFrustum | ( | double | vertices[32] | ) |
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
|
virtual |
Return eight points that define the selection frustum. Valid if create Frustum was used, invalid if SetFrustum was.
|
virtual |
Sets/gets the intersection test type.
|
virtual |
Sets/gets the intersection test type.
|
virtual |
Sets/gets the intersection test type. Only meaningful when fieldType is vtkSelection::POINT
|
virtual |
Sets/gets the intersection test type. Only meaningful when fieldType is vtkSelection::POINT
int vtkExtractSelectedFrustum::OverallBoundsTest | ( | double * | bounds | ) |
Does a quick test on the AABBox defined by the bounds.
|
virtual |
When On, this returns an unstructured grid that outlines selection area. Off is the default.
|
virtual |
When On, this returns an unstructured grid that outlines selection area. Off is the default.
|
virtual |
When On, this returns an unstructured grid that outlines selection area. Off is the default.
|
virtual |
When On, this returns an unstructured grid that outlines selection area. Off is the default.
|
virtual |
When on, extracts cells outside the frustum instead of inside.
|
virtual |
When on, extracts cells outside the frustum instead of inside.
|
virtual |
When on, extracts cells outside the frustum instead of inside.
|
virtual |
When on, extracts cells outside the frustum instead of inside.
|
protectedvirtual |
Sets up empty output dataset
Reimplemented from vtkExtractSelectionBase.
|
protectedvirtual |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 138 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 139 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 140 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 143 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 144 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 147 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 148 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 149 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 150 of file vtkExtractSelectedFrustum.h.
|
protected |
Definition at line 151 of file vtkExtractSelectedFrustum.h.