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

Densify the input by adding points at the centroid. More...

#include <vtkDensifyPolyData.h>

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

List of all members.

Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkDensifyPolyDataNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetNumberOfSubdivisions (unsigned int)
virtual unsigned int GetNumberOfSubdivisions ()

Static Public Member Functions

static int IsTypeOf (const char *type)
static vtkDensifyPolyDataSafeDownCast (vtkObjectBase *o)
static vtkDensifyPolyDataNew ()

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkDensifyPolyData ()
 ~vtkDensifyPolyData ()
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

unsigned int NumberOfSubdivisions

Detailed Description

Densify the input by adding points at the centroid.

The filter takes any polygonal data as input and will tessellate cells that are planar polygons present by fanning out triangles from its centroid. Other cells are simply passed through to the output. PointData, if present, is interpolated via linear interpolation. CellData for any tessellated cell is simply copied over from its parent cell. Planar polygons are assumed to be convex. Funny things will happen if they are not.

The number of subdivisions can be controlled by the parameter NumberOfSubdivisions.

Tests:
vtkDensifyPolyData (Tests)

Definition at line 41 of file vtkDensifyPolyData.h.


Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 44 of file vtkDensifyPolyData.h.


Constructor & Destructor Documentation


Member Function Documentation

static int vtkDensifyPolyData::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 vtkPolyDataAlgorithm.

virtual int vtkDensifyPolyData::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 vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

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

Reimplemented from vtkPolyDataAlgorithm.

Reimplemented from vtkPolyDataAlgorithm.

void vtkDensifyPolyData::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 vtkPolyDataAlgorithm.

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

Reimplemented from vtkPolyDataAlgorithm.

virtual void vtkDensifyPolyData::SetNumberOfSubdivisions ( unsigned  int) [virtual]

Number of recursive subdivisions. Initial value is 1.

virtual unsigned int vtkDensifyPolyData::GetNumberOfSubdivisions ( ) [virtual]

Number of recursive subdivisions. Initial value is 1.

virtual int vtkDensifyPolyData::RequestData ( vtkInformation request,
vtkInformationVector **  inputVector,
vtkInformationVector outputVector 
) [protected, virtual]

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

Reimplemented from vtkPolyDataAlgorithm.


Member Data Documentation

Definition at line 62 of file vtkDensifyPolyData.h.


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