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

shrink cells composing an arbitrary data set More...

#include <vtkShrinkFilter.h>

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

List of all members.

Public Types

typedef
vtkUnstructuredGridAlgorithm 
Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkShrinkFilterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void SetShrinkFactor (double)
virtual double GetShrinkFactor ()

Static Public Member Functions

static vtkShrinkFilterNew ()
static int IsTypeOf (const char *type)
static vtkShrinkFilterSafeDownCast (vtkObjectBase *o)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkShrinkFilter ()
 ~vtkShrinkFilter ()
virtual int FillInputPortInformation (int port, vtkInformation *info)
virtual int RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *)

Protected Attributes

double ShrinkFactor

Detailed Description

shrink cells composing an arbitrary data set

vtkShrinkFilter shrinks cells composing an arbitrary data set towards their centroid. The centroid of a cell is computed as the average position of the cell points. Shrinking results in disconnecting the cells from one another. The output of this filter is of general dataset type vtkUnstructuredGrid.

Warning:
It is possible to turn cells inside out or cause self intersection in special cases.
See also:
vtkShrinkPolyData
Examples:
vtkShrinkFilter (Examples)
Tests:
vtkShrinkFilter (Tests)

Definition at line 44 of file vtkShrinkFilter.h.


Member Typedef Documentation

Reimplemented from vtkUnstructuredGridAlgorithm.

Definition at line 48 of file vtkShrinkFilter.h.


Constructor & Destructor Documentation


Member Function Documentation

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

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

Reimplemented from vtkUnstructuredGridAlgorithm.

static int vtkShrinkFilter::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 vtkUnstructuredGridAlgorithm.

virtual int vtkShrinkFilter::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 vtkUnstructuredGridAlgorithm.

Reimplemented from vtkUnstructuredGridAlgorithm.

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

Reimplemented from vtkUnstructuredGridAlgorithm.

Reimplemented from vtkUnstructuredGridAlgorithm.

void vtkShrinkFilter::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 vtkUnstructuredGridAlgorithm.

virtual void vtkShrinkFilter::SetShrinkFactor ( double  ) [virtual]

Get/Set the fraction of shrink for each cell. The default is 0.5.

Get/Set the fraction of shrink for each cell. The default is 0.5.

virtual int vtkShrinkFilter::FillInputPortInformation ( int  port,
vtkInformation info 
) [protected, virtual]

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 vtkUnstructuredGridAlgorithm.

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

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

Reimplemented from vtkUnstructuredGridAlgorithm.


Member Data Documentation

Definition at line 69 of file vtkShrinkFilter.h.


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