vtkShrinkFilter Class Reference

#include <vtkShrinkFilter.h>

Inheritance diagram for vtkShrinkFilter:

Inheritance graph
[legend]
Collaboration diagram for vtkShrinkFilter:

Collaboration graph
[legend]

List of all members.


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 43 of file vtkShrinkFilter.h.


Public Types

typedef
vtkUnstructuredGridAlgorithm 
Superclass

Public Member Functions

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

Protected Member Functions

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

Protected Attributes

double ShrinkFactor

Member Typedef Documentation

Reimplemented from vtkUnstructuredGridAlgorithm.

Definition at line 47 of file vtkShrinkFilter.h.


Constructor & Destructor Documentation

vtkShrinkFilter::vtkShrinkFilter (  )  [protected]

vtkShrinkFilter::~vtkShrinkFilter (  )  [protected]


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.

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

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.

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

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.

virtual double vtkShrinkFilter::GetShrinkFactor (  )  [virtual]

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

double vtkShrinkFilter::ShrinkFactor [protected]

Definition at line 68 of file vtkShrinkFilter.h.


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

Generated on Mon Sep 27 18:49:50 2010 for VTK by  doxygen 1.5.6