vtkDensifyPolyData Class Reference

#include <vtkDensifyPolyData.h>

Inheritance diagram for vtkDensifyPolyData:

Inheritance graph
[legend]
Collaboration diagram for vtkDensifyPolyData:

Collaboration graph
[legend]

List of all members.


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 40 of file vtkDensifyPolyData.h.


Public Types

typedef vtkPolyDataAlgorithm Superclass

Public Member Functions

virtual const char * GetClassName ()
virtual int IsA (const char *type)
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 (vtkObject *o)
static vtkDensifyPolyDataNew ()

Protected Member Functions

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

Protected Attributes

unsigned int NumberOfSubdivisions

Member Typedef Documentation

Reimplemented from vtkPolyDataAlgorithm.

Definition at line 43 of file vtkDensifyPolyData.h.


Constructor & Destructor Documentation

vtkDensifyPolyData::vtkDensifyPolyData (  )  [protected]

vtkDensifyPolyData::~vtkDensifyPolyData (  )  [protected]


Member Function Documentation

virtual const char* vtkDensifyPolyData::GetClassName (  )  [virtual]

Reimplemented from vtkPolyDataAlgorithm.

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.

static vtkDensifyPolyData* vtkDensifyPolyData::SafeDownCast ( vtkObject o  )  [static]

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.

static vtkDensifyPolyData* vtkDensifyPolyData::New (  )  [static]

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

unsigned int vtkDensifyPolyData::NumberOfSubdivisions [protected]

Definition at line 61 of file vtkDensifyPolyData.h.


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

Generated on Mon Sep 27 18:22:03 2010 for VTK by  doxygen 1.5.6