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
vtkGeometryFilter Class Reference

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

#include <vtkGeometryFilter.h>

Inheritance diagram for vtkGeometryFilter:
[legend]
Collaboration diagram for vtkGeometryFilter:
[legend]

Public Types

typedef vtkPolyDataAlgorithm Superclass
 
- Public Types inherited from vtkPolyDataAlgorithm
typedef vtkAlgorithm Superclass
 
- Public Types inherited from vtkAlgorithm
typedef vtkObject Superclass
 
enum  DesiredOutputPrecision { SINGLE_PRECISION, DOUBLE_PRECISION, DEFAULT_PRECISION }
 

Public Member Functions

virtual int IsA (const char *type)
 
vtkGeometryFilterNewInstance () const
 
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 (vtkIncrementalPointLocator *locator)
 
virtual
vtkIncrementalPointLocator
GetLocator ()
 
- Public Member Functions inherited from vtkPolyDataAlgorithm
vtkPolyDataAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
vtkDataObjectGetInput ()
 
vtkDataObjectGetInput (int port)
 
vtkPolyDataGetPolyDataInput (int port)
 
vtkPolyDataGetOutput ()
 
vtkPolyDataGetOutput (int)
 
virtual void SetOutput (vtkDataObject *d)
 
virtual int ProcessRequest (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
void SetInputData (vtkDataObject *)
 
void SetInputData (int, vtkDataObject *)
 
void AddInputData (vtkDataObject *)
 
void AddInputData (int, vtkDataObject *)
 
- Public Member Functions inherited from vtkAlgorithm
vtkAlgorithmNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent)
 
int HasExecutive ()
 
vtkExecutiveGetExecutive ()
 
virtual void SetExecutive (vtkExecutive *executive)
 
virtual int ModifyRequest (vtkInformation *request, int when)
 
vtkInformation * GetInputPortInformation (int port)
 
vtkInformation * GetOutputPortInformation (int port)
 
int GetNumberOfInputPorts ()
 
int GetNumberOfOutputPorts ()
 
void UpdateProgress (double amount)
 
vtkInformation * GetInputArrayInformation (int idx)
 
void RemoveAllInputs ()
 
vtkDataObjectGetOutputDataObject (int port)
 
virtual void RemoveInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void RemoveInputConnection (int port, int idx)
 
virtual void RemoveAllInputConnections (int port)
 
int GetNumberOfInputConnections (int port)
 
int GetTotalNumberOfInputConnections ()
 
vtkAlgorithmOutputGetInputConnection (int port, int index)
 
vtkAlgorithmGetInputAlgorithm (int port, int index, int &algPort)
 
vtkAlgorithmGetInputAlgorithm (int port, int index)
 
vtkExecutiveGetInputExecutive (int port, int index)
 
vtkInformation * GetInputInformation (int port, int index)
 
vtkInformation * GetOutputInformation (int port)
 
virtual void UpdateInformation ()
 
virtual void PropagateUpdateExtent ()
 
virtual void UpdateWholeExtent ()
 
void ConvertTotalInputToPortConnection (int ind, int &port, int &conn)
 
virtual double ComputePriority ()
 
int SetUpdateExtentToWholeExtent (int port)
 
int SetUpdateExtentToWholeExtent ()
 
void SetUpdateExtent (int port, int extent[6])
 
int ProcessRequest (vtkInformation *request, vtkCollection *inInfo, vtkInformationVector *outInfo)
 
virtual int ComputePipelineMTime (vtkInformation *request, vtkInformationVector **inInfoVec, vtkInformationVector *outInfoVec, int requestFromOutputPort, unsigned long *mtime)
 
virtual vtkInformation * GetInformation ()
 
virtual void SetInformation (vtkInformation *)
 
virtual void Register (vtkObjectBase *o)
 
virtual void UnRegister (vtkObjectBase *o)
 
virtual void SetAbortExecute (int)
 
virtual int GetAbortExecute ()
 
virtual void AbortExecuteOn ()
 
virtual void AbortExecuteOff ()
 
virtual void SetProgress (double)
 
virtual double GetProgress ()
 
void SetProgressText (const char *ptext)
 
virtual char * GetProgressText ()
 
virtual unsigned long GetErrorCode ()
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
 
virtual void SetInputArrayToProcess (int idx, vtkInformation *info)
 
virtual void SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName)
 
vtkDataObjectGetInputDataObject (int port, int connection)
 
virtual void SetInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void SetInputConnection (vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (int port, vtkAlgorithmOutput *input)
 
virtual void AddInputConnection (vtkAlgorithmOutput *input)
 
virtual void SetInputDataObject (int port, vtkDataObject *data)
 
virtual void SetInputDataObject (vtkDataObject *data)
 
virtual void AddInputDataObject (int port, vtkDataObject *data)
 
virtual void AddInputDataObject (vtkDataObject *data)
 
vtkAlgorithmOutputGetOutputPort (int index)
 
vtkAlgorithmOutputGetOutputPort ()
 
vtkAlgorithmGetInputAlgorithm ()
 
vtkExecutiveGetInputExecutive ()
 
vtkInformation * GetInputInformation ()
 
virtual void Update (int port)
 
virtual void Update ()
 
virtual void SetReleaseDataFlag (int)
 
virtual int GetReleaseDataFlag ()
 
void ReleaseDataFlagOn ()
 
void ReleaseDataFlagOff ()
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, vtkDataObject *output)
 
int UpdateExtentIsEmpty (vtkInformation *pinfo, int extentType)
 
void SetUpdateExtent (int port, int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int piece, int numPieces, int ghostLevel)
 
void SetUpdateExtent (int extent[6])
 
int * GetUpdateExtent ()
 
int * GetUpdateExtent (int port)
 
void GetUpdateExtent (int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int port, int &x0, int &x1, int &y0, int &y1, int &z0, int &z1)
 
void GetUpdateExtent (int extent[6])
 
void GetUpdateExtent (int port, int extent[6])
 
int GetUpdatePiece ()
 
int GetUpdatePiece (int port)
 
int GetUpdateNumberOfPieces ()
 
int GetUpdateNumberOfPieces (int port)
 
int GetUpdateGhostLevel ()
 
int GetUpdateGhostLevel (int port)
 

Static Public Member Functions

static vtkGeometryFilterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkGeometryFilterSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkPolyDataAlgorithm
static vtkPolyDataAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPolyDataAlgorithmSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkAlgorithm
static vtkAlgorithmNew ()
 
static int IsTypeOf (const char *type)
 
static vtkAlgorithmSafeDownCast (vtkObjectBase *o)
 
static void SetDefaultExecutivePrototype (vtkExecutive *proto)
 
static vtkInformationIntegerKey * INPUT_IS_OPTIONAL ()
 
static vtkInformationIntegerKey * INPUT_IS_REPEATABLE ()
 
static
vtkInformationInformationVectorKey * 
INPUT_REQUIRED_FIELDS ()
 
static
vtkInformationStringVectorKey * 
INPUT_REQUIRED_DATA_TYPE ()
 
static
vtkInformationInformationVectorKey * 
INPUT_ARRAYS_TO_PROCESS ()
 
static vtkInformationIntegerKey * INPUT_PORT ()
 
static vtkInformationIntegerKey * INPUT_CONNECTION ()
 
static vtkInformationIntegerKey * PRESERVES_DATASET ()
 
static vtkInformationIntegerKey * PRESERVES_GEOMETRY ()
 
static vtkInformationIntegerKey * PRESERVES_BOUNDS ()
 
static vtkInformationIntegerKey * PRESERVES_TOPOLOGY ()
 
static vtkInformationIntegerKey * PRESERVES_ATTRIBUTES ()
 
static vtkInformationIntegerKey * PRESERVES_RANGES ()
 
static vtkInformationIntegerKey * MANAGES_METAINFORMATION ()
 

Protected Member Functions

virtual vtkObjectBase * NewInstanceInternal () const
 
 vtkGeometryFilter ()
 
 ~vtkGeometryFilter ()
 
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
virtual int FillInputPortInformation (int port, vtkInformation *info)
 
void PolyDataExecute (vtkDataSet *, vtkPolyData *, vtkInformation *)
 
void UnstructuredGridExecute (vtkDataSet *, vtkPolyData *, vtkInformation *)
 
void StructuredGridExecute (vtkDataSet *, vtkPolyData *, vtkInformation *)
 
int RequestUpdateExtent (vtkInformation *, vtkInformationVector **, vtkInformationVector *)
 
- Protected Member Functions inherited from vtkPolyDataAlgorithm
 vtkPolyDataAlgorithm ()
 
 ~vtkPolyDataAlgorithm ()
 
virtual int RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
 
virtual int FillOutputPortInformation (int port, vtkInformation *info)
 
- Protected Member Functions inherited from vtkAlgorithm
 vtkAlgorithm ()
 
 ~vtkAlgorithm ()
 
virtual void SetNumberOfInputPorts (int n)
 
virtual void SetNumberOfOutputPorts (int n)
 
int InputPortIndexInRange (int index, const char *action)
 
int OutputPortIndexInRange (int index, const char *action)
 
int GetInputArrayAssociation (int idx, vtkInformationVector **inputVector)
 
virtual vtkExecutiveCreateDefaultExecutive ()
 
virtual void ReportReferences (vtkGarbageCollector *)
 
virtual void SetNumberOfInputConnections (int port, int n)
 
int GetInputArrayAssociation (int idx, int connection, vtkInformationVector **inputVector)
 
int GetInputArrayAssociation (int idx, vtkDataObject *input)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkDataArray * GetInputArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input)
 
vtkDataArray * GetInputArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, int connection, vtkInformationVector **inputVector, int &association)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input)
 
vtkAbstractArray * GetInputAbstractArrayToProcess (int idx, vtkDataObject *input, int &association)
 
vtkInformation * GetInputArrayFieldInformation (int idx, vtkInformationVector **inputVector)
 
virtual void SetNthInputConnection (int port, int index, vtkAlgorithmOutput *input)
 
void SetInputDataInternal (int port, vtkDataObject *input)
 
void AddInputDataInternal (int port, vtkDataObject *input)
 
virtual void SetErrorCode (unsigned long)
 

Protected Attributes

vtkIdType PointMaximum
 
vtkIdType PointMinimum
 
vtkIdType CellMinimum
 
vtkIdType CellMaximum
 
double Extent [6]
 
int PointClipping
 
int CellClipping
 
int ExtentClipping
 
int Merging
 
vtkIncrementalPointLocatorLocator
 
- Protected Attributes inherited from vtkAlgorithm
vtkInformation * Information
 
double Progress
 
char * ProgressText
 
unsigned long ErrorCode
 

Additional Inherited Members

- Public Attributes inherited from vtkAlgorithm
int AbortExecute
 
- Static Protected Member Functions inherited from vtkAlgorithm
static vtkInformationIntegerKey * PORT_REQUIREMENTS_FILLED ()
 
- Static Protected Attributes inherited from vtkAlgorithm
static vtkExecutiveDefaultExecutivePrototype
 

Detailed Description

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

vtkGeometryFilter 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 vtkGeometryFilter 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, vtkGeometryFilter will merge these points back together. Turn merging off to prevent this from occurring.
This filter assumes that the input dataset is composed of either: 0D cells OR 1D cells OR 2D and/or 3D cells. In other words, the input dataset cannot be a combination of different dimensional cells with the exception of 2D and 3D cells.
See Also
vtkImageDataGeometryFilter vtkStructuredGridGeometryFilter vtkExtractGeometry vtkExtractVOI
Examples:
vtkGeometryFilter (Examples)
Tests:
vtkGeometryFilter (Tests)

Definition at line 66 of file vtkGeometryFilter.h.

Member Typedef Documentation

Definition at line 70 of file vtkGeometryFilter.h.

Constructor & Destructor Documentation

vtkGeometryFilter::vtkGeometryFilter ( )
protected
vtkGeometryFilter::~vtkGeometryFilter ( )
protected

Member Function Documentation

static vtkGeometryFilter* vtkGeometryFilter::New ( )
static
static int vtkGeometryFilter::IsTypeOf ( const char *  type)
static
virtual int vtkGeometryFilter::IsA ( const char *  type)
virtual

Reimplemented from vtkPolyDataAlgorithm.

static vtkGeometryFilter* vtkGeometryFilter::SafeDownCast ( vtkObjectBase *  o)
static
virtual vtkObjectBase* vtkGeometryFilter::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkPolyDataAlgorithm.

vtkGeometryFilter* vtkGeometryFilter::NewInstance ( ) const
void vtkGeometryFilter::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
virtual void vtkGeometryFilter::SetPointClipping ( int  )
virtual

Turn on/off selection of geometry by point id.

virtual int vtkGeometryFilter::GetPointClipping ( )
virtual

Turn on/off selection of geometry by point id.

virtual void vtkGeometryFilter::PointClippingOn ( )
virtual

Turn on/off selection of geometry by point id.

virtual void vtkGeometryFilter::PointClippingOff ( )
virtual

Turn on/off selection of geometry by point id.

virtual void vtkGeometryFilter::SetCellClipping ( int  )
virtual

Turn on/off selection of geometry by cell id.

virtual int vtkGeometryFilter::GetCellClipping ( )
virtual

Turn on/off selection of geometry by cell id.

virtual void vtkGeometryFilter::CellClippingOn ( )
virtual

Turn on/off selection of geometry by cell id.

virtual void vtkGeometryFilter::CellClippingOff ( )
virtual

Turn on/off selection of geometry by cell id.

virtual void vtkGeometryFilter::SetExtentClipping ( int  )
virtual

Turn on/off selection of geometry via bounding box.

virtual int vtkGeometryFilter::GetExtentClipping ( )
virtual

Turn on/off selection of geometry via bounding box.

virtual void vtkGeometryFilter::ExtentClippingOn ( )
virtual

Turn on/off selection of geometry via bounding box.

virtual void vtkGeometryFilter::ExtentClippingOff ( )
virtual

Turn on/off selection of geometry via bounding box.

virtual void vtkGeometryFilter::SetPointMinimum ( vtkIdType  )
virtual

Specify the minimum point id for point id selection.

virtual vtkIdType vtkGeometryFilter::GetPointMinimum ( )
virtual

Specify the minimum point id for point id selection.

virtual void vtkGeometryFilter::SetPointMaximum ( vtkIdType  )
virtual

Specify the maximum point id for point id selection.

virtual vtkIdType vtkGeometryFilter::GetPointMaximum ( )
virtual

Specify the maximum point id for point id selection.

virtual void vtkGeometryFilter::SetCellMinimum ( vtkIdType  )
virtual

Specify the minimum cell id for point id selection.

virtual vtkIdType vtkGeometryFilter::GetCellMinimum ( )
virtual

Specify the minimum cell id for point id selection.

virtual void vtkGeometryFilter::SetCellMaximum ( vtkIdType  )
virtual

Specify the maximum cell id for point id selection.

virtual vtkIdType vtkGeometryFilter::GetCellMaximum ( )
virtual

Specify the maximum cell id for point id selection.

void vtkGeometryFilter::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 vtkGeometryFilter::SetExtent ( double  extent[6])

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

double* vtkGeometryFilter::GetExtent ( )
inline

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

Definition at line 129 of file vtkGeometryFilter.h.

virtual void vtkGeometryFilter::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 vtkGeometryFilter::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 vtkGeometryFilter::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 vtkGeometryFilter::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 vtkGeometryFilter::SetLocator ( vtkIncrementalPointLocator locator)

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

virtual vtkIncrementalPointLocator* vtkGeometryFilter::GetLocator ( )
virtual

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

void vtkGeometryFilter::CreateDefaultLocator ( )

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

unsigned long vtkGeometryFilter::GetMTime ( )

Return the MTime also considering the locator.

virtual int vtkGeometryFilter::RequestData ( vtkInformation *  request,
vtkInformationVector **  inputVector,
vtkInformationVector *  outputVector 
)
protectedvirtual

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

virtual int vtkGeometryFilter::FillInputPortInformation ( int  port,
vtkInformation *  info 
)
protectedvirtual

Fill the input port information objects for this algorithm. This is invoked by the first call to GetInputPortInformation for each port so subclasses can specify what they can handle.

Reimplemented from vtkPolyDataAlgorithm.

void vtkGeometryFilter::PolyDataExecute ( vtkDataSet *  ,
vtkPolyData ,
vtkInformation *   
)
protected
void vtkGeometryFilter::UnstructuredGridExecute ( vtkDataSet *  ,
vtkPolyData ,
vtkInformation *   
)
protected
void vtkGeometryFilter::StructuredGridExecute ( vtkDataSet *  ,
vtkPolyData ,
vtkInformation *   
)
protected
int vtkGeometryFilter::RequestUpdateExtent ( vtkInformation *  ,
vtkInformationVector **  ,
vtkInformationVector *   
)
protectedvirtual

This is called by the superclass. This is the method you should override.

Reimplemented from vtkPolyDataAlgorithm.

Member Data Documentation

vtkIdType vtkGeometryFilter::PointMaximum
protected

Definition at line 167 of file vtkGeometryFilter.h.

vtkIdType vtkGeometryFilter::PointMinimum
protected

Definition at line 168 of file vtkGeometryFilter.h.

vtkIdType vtkGeometryFilter::CellMinimum
protected

Definition at line 169 of file vtkGeometryFilter.h.

vtkIdType vtkGeometryFilter::CellMaximum
protected

Definition at line 170 of file vtkGeometryFilter.h.

double vtkGeometryFilter::Extent[6]
protected

Definition at line 171 of file vtkGeometryFilter.h.

int vtkGeometryFilter::PointClipping
protected

Definition at line 172 of file vtkGeometryFilter.h.

int vtkGeometryFilter::CellClipping
protected

Definition at line 173 of file vtkGeometryFilter.h.

int vtkGeometryFilter::ExtentClipping
protected

Definition at line 174 of file vtkGeometryFilter.h.

int vtkGeometryFilter::Merging
protected

Definition at line 176 of file vtkGeometryFilter.h.

vtkIncrementalPointLocator* vtkGeometryFilter::Locator
protected

Definition at line 177 of file vtkGeometryFilter.h.


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