Main Page | Directories | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

vtkGenericGeometryFilter Class Reference

#include <vtkGenericGeometryFilter.h>

Inheritance diagram for vtkGenericGeometryFilter:

Inheritance graph
[legend]
Collaboration diagram for vtkGenericGeometryFilter:

Collaboration graph
[legend]
List of all members.

Detailed Description

extract geometry from data (or convert data to polygonal type)

vtkGenericGeometryFilter is a general-purpose filter to extract geometry (and associated data) from any type of dataset. Geometry is obtained as follows: all 0D, 1D, and 2D cells are extracted. All 2D faces that are used by only one 3D cell (i.e., boundary faces) are extracted. It also is possible to specify conditions on point ids, cell ids, and on bounding box (referred to as "Extent") to control the extraction process.

This filter also may be used to convert any type of data to polygonal type. The conversion process may be less than satisfactory for some 3D datasets. For example, this filter will extract the outer surface of a volume or structured grid dataset. (For structured data you may want to use vtkImageDataGeometryFilter, vtkStructuredGridGeometryFilter, vtkExtractUnstructuredGrid, vtkRectilinearGridGeometryFilter, or vtkExtractVOI.)

Warning:
When vtkGenericGeometryFilter extracts cells (or boundaries of cells) it will (by default) merge duplicate vertices. This may cause problems in some cases. For example, if you've run vtkPolyDataNormals to generate normals, which may split meshes and create duplicate vertices, vtkGenericGeometryFilter will merge these points back together. Turn merging off to prevent this from occurring.
See also:
vtkImageDataGeometryFilter vtkStructuredGridGeometryFilter vtkExtractGeometry vtkExtractVOI
Created by:
  • Bertel, Francois
CVS contributions (if > 5%):
  • Bertel, Francois (100%)
CVS logs (CVSweb):
  • .cxx (/GenericFiltering/vtkGenericGeometryFilter.cxx)
  • .h (/GenericFiltering/vtkGenericGeometryFilter.h)
Tests:
vtkGenericGeometryFilter (Tests)

Definition at line 66 of file vtkGenericGeometryFilter.h.

Public Types

typedef vtkGenericDataSetToPolyDataFilter Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
void PrintSelf (ostream &os, vtkIndent indent)
void CreateDefaultLocator ()
unsigned long GetMTime ()
virtual void SetPointClipping (int)
virtual int GetPointClipping ()
virtual void PointClippingOn ()
virtual void PointClippingOff ()
virtual void SetCellClipping (int)
virtual int GetCellClipping ()
virtual void CellClippingOn ()
virtual void CellClippingOff ()
virtual void SetExtentClipping (int)
virtual int GetExtentClipping ()
virtual void ExtentClippingOn ()
virtual void ExtentClippingOff ()
virtual void SetPointMinimum (vtkIdType)
virtual vtkIdType GetPointMinimum ()
virtual void SetPointMaximum (vtkIdType)
virtual vtkIdType GetPointMaximum ()
virtual void SetCellMinimum (vtkIdType)
virtual vtkIdType GetCellMinimum ()
virtual void SetCellMaximum (vtkIdType)
virtual vtkIdType GetCellMaximum ()
void SetExtent (double xMin, double xMax, double yMin, double yMax, double zMin, double zMax)
void SetExtent (double extent[6])
double * GetExtent ()
virtual void SetMerging (int)
virtual int GetMerging ()
virtual void MergingOn ()
virtual void MergingOff ()
void SetLocator (vtkPointLocator *locator)
virtual vtkPointLocatorGetLocator ()

Static Public Member Functions

vtkGenericGeometryFilterNew ()
int IsTypeOf (const char *type)
vtkGenericGeometryFilterSafeDownCast (vtkObject *o)

Protected Member Functions

 vtkGenericGeometryFilter ()
 ~vtkGenericGeometryFilter ()
void Execute ()
void PolyDataExecute ()
void UnstructuredGridExecute ()
void StructuredGridExecute ()
void ComputeInputUpdateExtents (vtkDataObject *output)
void ExecuteInformation ()

Protected Attributes

vtkIdType PointMaximum
vtkIdType PointMinimum
vtkIdType CellMinimum
vtkIdType CellMaximum
double Extent [6]
int PointClipping
int CellClipping
int ExtentClipping
int Merging
vtkPointLocatorLocator


Member Typedef Documentation

typedef vtkGenericDataSetToPolyDataFilter vtkGenericGeometryFilter::Superclass
 

Reimplemented from vtkGenericDataSetToPolyDataFilter.

Definition at line 70 of file vtkGenericGeometryFilter.h.


Constructor & Destructor Documentation

vtkGenericGeometryFilter::vtkGenericGeometryFilter  )  [protected]
 

vtkGenericGeometryFilter::~vtkGenericGeometryFilter  )  [protected]
 


Member Function Documentation

vtkGenericGeometryFilter* vtkGenericGeometryFilter::New  )  [static]
 

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

Reimplemented from vtkAlgorithm.

virtual const char* vtkGenericGeometryFilter::GetClassName  )  [virtual]
 

Reimplemented from vtkGenericDataSetToPolyDataFilter.

int vtkGenericGeometryFilter::IsTypeOf const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkGenericDataSetToPolyDataFilter.

virtual int vtkGenericGeometryFilter::IsA const char *  type  )  [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 vtkTypeRevisionMacro found in vtkSetGet.h.

Reimplemented from vtkGenericDataSetToPolyDataFilter.

vtkGenericGeometryFilter* vtkGenericGeometryFilter::SafeDownCast vtkObject o  )  [static]
 

Reimplemented from vtkGenericDataSetToPolyDataFilter.

void vtkGenericGeometryFilter::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 vtkGenericDataSetToPolyDataFilter.

virtual void vtkGenericGeometryFilter::SetPointClipping int   )  [virtual]
 

Turn on/off selection of geometry by point id.

virtual int vtkGenericGeometryFilter::GetPointClipping  )  [virtual]
 

Turn on/off selection of geometry by point id.

virtual void vtkGenericGeometryFilter::PointClippingOn  )  [virtual]
 

Turn on/off selection of geometry by point id.

virtual void vtkGenericGeometryFilter::PointClippingOff  )  [virtual]
 

Turn on/off selection of geometry by point id.

virtual void vtkGenericGeometryFilter::SetCellClipping int   )  [virtual]
 

Turn on/off selection of geometry by cell id.

virtual int vtkGenericGeometryFilter::GetCellClipping  )  [virtual]
 

Turn on/off selection of geometry by cell id.

virtual void vtkGenericGeometryFilter::CellClippingOn  )  [virtual]
 

Turn on/off selection of geometry by cell id.

virtual void vtkGenericGeometryFilter::CellClippingOff  )  [virtual]
 

Turn on/off selection of geometry by cell id.

virtual void vtkGenericGeometryFilter::SetExtentClipping int   )  [virtual]
 

Turn on/off selection of geometry via bounding box.

virtual int vtkGenericGeometryFilter::GetExtentClipping  )  [virtual]
 

Turn on/off selection of geometry via bounding box.

virtual void vtkGenericGeometryFilter::ExtentClippingOn  )  [virtual]
 

Turn on/off selection of geometry via bounding box.

virtual void vtkGenericGeometryFilter::ExtentClippingOff  )  [virtual]
 

Turn on/off selection of geometry via bounding box.

virtual void vtkGenericGeometryFilter::SetPointMinimum vtkIdType   )  [virtual]
 

Specify the minimum point id for point id selection.

virtual vtkIdType vtkGenericGeometryFilter::GetPointMinimum  )  [virtual]
 

Specify the minimum point id for point id selection.

virtual void vtkGenericGeometryFilter::SetPointMaximum vtkIdType   )  [virtual]
 

Specify the maximum point id for point id selection.

virtual vtkIdType vtkGenericGeometryFilter::GetPointMaximum  )  [virtual]
 

Specify the maximum point id for point id selection.

virtual void vtkGenericGeometryFilter::SetCellMinimum vtkIdType   )  [virtual]
 

Specify the minimum cell id for point id selection.

virtual vtkIdType vtkGenericGeometryFilter::GetCellMinimum  )  [virtual]
 

Specify the minimum cell id for point id selection.

virtual void vtkGenericGeometryFilter::SetCellMaximum vtkIdType   )  [virtual]
 

Specify the maximum cell id for point id selection.

virtual vtkIdType vtkGenericGeometryFilter::GetCellMaximum  )  [virtual]
 

Specify the maximum cell id for point id selection.

void vtkGenericGeometryFilter::SetExtent double  xMin,
double  xMax,
double  yMin,
double  yMax,
double  zMin,
double  zMax
 

Specify a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.

void vtkGenericGeometryFilter::SetExtent double  extent[6]  ) 
 

Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.

double* vtkGenericGeometryFilter::GetExtent  )  [inline]
 

Set / get a (xmin,xmax, ymin,ymax, zmin,zmax) bounding box to clip data.

Definition at line 129 of file vtkGenericGeometryFilter.h.

virtual void vtkGenericGeometryFilter::SetMerging int   )  [virtual]
 

Turn on/off merging of coincident points. Note that is merging is on, points with different point attributes (e.g., normals) are merged, which may cause rendering artifacts.

virtual int vtkGenericGeometryFilter::GetMerging  )  [virtual]
 

Turn on/off merging of coincident points. Note that is merging is on, points with different point attributes (e.g., normals) are merged, which may cause rendering artifacts.

virtual void vtkGenericGeometryFilter::MergingOn  )  [virtual]
 

Turn on/off merging of coincident points. Note that is merging is on, points with different point attributes (e.g., normals) are merged, which may cause rendering artifacts.

virtual void vtkGenericGeometryFilter::MergingOff  )  [virtual]
 

Turn on/off merging of coincident points. Note that is merging is on, points with different point attributes (e.g., normals) are merged, which may cause rendering artifacts.

void vtkGenericGeometryFilter::SetLocator vtkPointLocator locator  ) 
 

Set / get a spatial locator for merging points. By default an instance of vtkMergePoints is used.

virtual vtkPointLocator* vtkGenericGeometryFilter::GetLocator  )  [virtual]
 

Set / get a spatial locator for merging points. By default an instance of vtkMergePoints is used.

void vtkGenericGeometryFilter::CreateDefaultLocator  ) 
 

Create default locator. Used to create one when none is specified.

unsigned long vtkGenericGeometryFilter::GetMTime  )  [virtual]
 

Return the MTime also considering the locator.

Reimplemented from vtkObject.

void vtkGenericGeometryFilter::Execute  )  [protected, virtual]
 

This method is the old style execute method

Reimplemented from vtkSource.

void vtkGenericGeometryFilter::PolyDataExecute  )  [protected]
 

void vtkGenericGeometryFilter::UnstructuredGridExecute  )  [protected]
 

void vtkGenericGeometryFilter::StructuredGridExecute  )  [protected]
 

void vtkGenericGeometryFilter::ComputeInputUpdateExtents vtkDataObject output  )  [protected, virtual]
 

Do not let images return more than requested.

Reimplemented from vtkGenericDataSetToPolyDataFilter.

void vtkGenericGeometryFilter::ExecuteInformation  )  [protected, virtual]
 

Reimplemented from vtkSource.


Member Data Documentation

vtkIdType vtkGenericGeometryFilter::PointMaximum [protected]
 

Definition at line 165 of file vtkGenericGeometryFilter.h.

vtkIdType vtkGenericGeometryFilter::PointMinimum [protected]
 

Definition at line 166 of file vtkGenericGeometryFilter.h.

vtkIdType vtkGenericGeometryFilter::CellMinimum [protected]
 

Definition at line 167 of file vtkGenericGeometryFilter.h.

vtkIdType vtkGenericGeometryFilter::CellMaximum [protected]
 

Definition at line 168 of file vtkGenericGeometryFilter.h.

double vtkGenericGeometryFilter::Extent[6] [protected]
 

Definition at line 169 of file vtkGenericGeometryFilter.h.

int vtkGenericGeometryFilter::PointClipping [protected]
 

Definition at line 170 of file vtkGenericGeometryFilter.h.

int vtkGenericGeometryFilter::CellClipping [protected]
 

Definition at line 171 of file vtkGenericGeometryFilter.h.

int vtkGenericGeometryFilter::ExtentClipping [protected]
 

Definition at line 172 of file vtkGenericGeometryFilter.h.

int vtkGenericGeometryFilter::Merging [protected]
 

Definition at line 174 of file vtkGenericGeometryFilter.h.

vtkPointLocator* vtkGenericGeometryFilter::Locator [protected]
 

Definition at line 175 of file vtkGenericGeometryFilter.h.


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