<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>VTK: vtkShrinkFilter Class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> <link href="tabs.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.6 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="classes.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="classes.html"><span>Alphabetical List</span></a></li> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>vtkShrinkFilter Class Reference</h1><!-- doxytag: class="vtkShrinkFilter" --><!-- doxytag: inherits="vtkUnstructuredGridAlgorithm" --><code>#include <<a class="el" href="a04445.html">vtkShrinkFilter.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkShrinkFilter:</div> <div class="dynsection"> <p><center><img src="a14436.png" border="0" usemap="#a14437" alt="Inheritance graph"></center> <map name="a14437"> <area shape="rect" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output." alt="" coords="5,229,208,256"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="57,155,156,181"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="67,80,147,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="52,5,161,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for vtkShrinkFilter:</div> <div class="dynsection"> <p><center><img src="a14438.png" border="0" usemap="#a14439" alt="Collaboration graph"></center> <map name="a14439"> <area shape="rect" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output." alt="" coords="149,499,352,525"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="281,381,380,408"><area shape="rect" href="a00472.html" title="Superclass for all pipeline executives in VTK." alt="" coords="477,499,576,525"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="407,173,487,200"><area shape="rect" href="a00895.html" title="Store zero or more vtkInformation instances." alt="" coords="404,264,553,291"><area shape="rect" href="a00872.html" title="Store vtkAlgorithm input/output information." alt="" coords="212,264,321,291"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="164,5,273,32"><area shape="rect" href="a00884.html" title="internal structure for vtkInformation" alt="" coords="5,173,168,200"><area shape="rect" href="a00886.html" title="Superclass for vtkInformation keys." alt="" coords="153,83,284,109"><area shape="rect" href="a01719.html" title="record modification and/or execution time" alt="" coords="308,83,417,109"><area shape="rect" href="a00891.html" title="Key for pointer to pointer." alt="" coords="192,173,373,200"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="a14440.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> shrink cells composing an arbitrary data set <p> <a class="el" href="a01542.html" title="shrink cells composing an arbitrary data set">vtkShrinkFilter</a> 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 <a class="el" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>.<p> <dl class="warning" compact><dt><b>Warning:</b></dt><dd>It is possible to turn cells inside out or cause self intersection in special cases.</dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="a01543.html" title="shrink cells composing PolyData">vtkShrinkPolyData</a></dd></dl> <dl class="user" compact><dt><b>Tests:</b></dt><dd><a class="el" href="c2_vtk_t_15.html#c2_vtk_t_vtkShrinkFilter">vtkShrinkFilter (Tests)</a> </dd></dl> <p>Definition at line <a class="el" href="a04445.html#l00040">40</a> of file <a class="el" href="a04445.html">vtkShrinkFilter.h</a>.</p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Types</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">typedef <br> <a class="el" href="a01790.html">vtkUnstructuredGridAlgorithm</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#b3edba906a25977bd938423c80c9ee7c">Superclass</a></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const char * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#52864e0b1a827027350e2a0754904ab4">GetClassName</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#e184dd8a121fb491f59e35fdea729264">IsA</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#c073c6e5b283af1d5074bbc96b14b774">PrintSelf</a> (ostream &os, <a class="el" href="a00869.html">vtkIndent</a> indent)</td></tr> <tr><td colspan="2"><div class="groupHeader"></div></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#44752d277e5a7aa4cfd3a561538fb350">SetShrinkFactor</a> (double)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual double </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#2662f3bf2faace22b344c1cf49d66e0c">GetShrinkFactor</a> ()</td></tr> <tr><td colspan="2"><br><h2>Static Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01542.html">vtkShrinkFilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#e4f11c0ec86cbd78af162cac251722f7">New</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#6a64bf7df30d7348aa990ef755bc2f16">IsTypeOf</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01542.html">vtkShrinkFilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#42a84dced4871bc7e62ce8d5e684a839">SafeDownCast</a> (<a class="el" href="a01084.html">vtkObject</a> *o)</td></tr> <tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#c685ceb2a46944da5daffa3da2a600e0">vtkShrinkFilter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#295dad650af4f3ec0c3e35e5ac684fed">~vtkShrinkFilter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#edc1d4d9a098364b01ce9dba1ce4c2f9">FillInputPortInformation</a> (int port, <a class="el" href="a00872.html">vtkInformation</a> *info)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#e49d1cb8c22b10459f4eaed0f0166277">RequestData</a> (<a class="el" href="a00872.html">vtkInformation</a> *, <a class="el" href="a00895.html">vtkInformationVector</a> **, <a class="el" href="a00895.html">vtkInformationVector</a> *)</td></tr> <tr><td colspan="2"><br><h2>Protected Attributes</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">double </td><td class="memItemRight" valign="bottom"><a class="el" href="a01542.html#4f573db9d49e9e91379bbdd0f9a8fc4a">ShrinkFactor</a></td></tr> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="b3edba906a25977bd938423c80c9ee7c"></a><!-- doxytag: member="vtkShrinkFilter::Superclass" ref="b3edba906a25977bd938423c80c9ee7c" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="a01790.html">vtkUnstructuredGridAlgorithm</a> <a class="el" href="a01790.html">vtkShrinkFilter::Superclass</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a01790.html#83cb04ebf76077fcf2840e7378bce5eb">vtkUnstructuredGridAlgorithm</a>.</p> <p>Definition at line <a class="el" href="a04445.html#l00044">44</a> of file <a class="el" href="a04445.html">vtkShrinkFilter.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="c685ceb2a46944da5daffa3da2a600e0"></a><!-- doxytag: member="vtkShrinkFilter::vtkShrinkFilter" ref="c685ceb2a46944da5daffa3da2a600e0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkShrinkFilter::vtkShrinkFilter </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <a class="anchor" name="295dad650af4f3ec0c3e35e5ac684fed"></a><!-- doxytag: member="vtkShrinkFilter::~vtkShrinkFilter" ref="295dad650af4f3ec0c3e35e5ac684fed" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkShrinkFilter::~vtkShrinkFilter </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="e4f11c0ec86cbd78af162cac251722f7"></a><!-- doxytag: member="vtkShrinkFilter::New" ref="e4f11c0ec86cbd78af162cac251722f7" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01542.html">vtkShrinkFilter</a>* vtkShrinkFilter::New </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Create an object with Debug turned off, modified time initialized to zero, and reference counting on. <p>Reimplemented from <a class="el" href="a01790.html#2646137e0d32c31ea2f5d6c36a839c5e">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="52864e0b1a827027350e2a0754904ab4"></a><!-- doxytag: member="vtkShrinkFilter::GetClassName" ref="52864e0b1a827027350e2a0754904ab4" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkShrinkFilter::GetClassName </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a01790.html#cc8e5750f6e0e4c5990f4fdaf08aa3a6">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="6a64bf7df30d7348aa990ef755bc2f16"></a><!-- doxytag: member="vtkShrinkFilter::IsTypeOf" ref="6a64bf7df30d7348aa990ef755bc2f16" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int vtkShrinkFilter::IsTypeOf </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> 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 vtkTypeRevisionMacro found in vtkSetGet.h. <p>Reimplemented from <a class="el" href="a01790.html#979e1b89c2a9d22b409d132dc361273d">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="e184dd8a121fb491f59e35fdea729264"></a><!-- doxytag: member="vtkShrinkFilter::IsA" ref="e184dd8a121fb491f59e35fdea729264" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkShrinkFilter::IsA </td> <td>(</td> <td class="paramtype">const char * </td> <td class="paramname"> <em>name</em> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> 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 vtkTypeRevisionMacro found in vtkSetGet.h. <p>Reimplemented from <a class="el" href="a01790.html#04261b9851bf9e9f5d8e87164b0b7f1b">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="42a84dced4871bc7e62ce8d5e684a839"></a><!-- doxytag: member="vtkShrinkFilter::SafeDownCast" ref="42a84dced4871bc7e62ce8d5e684a839" args="(vtkObject *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01542.html">vtkShrinkFilter</a>* vtkShrinkFilter::SafeDownCast </td> <td>(</td> <td class="paramtype"><a class="el" href="a01084.html">vtkObject</a> * </td> <td class="paramname"> <em>o</em> </td> <td> ) </td> <td><code> [static]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a01790.html#c21194826192f883eaa58f3cb1efac53">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="c073c6e5b283af1d5074bbc96b14b774"></a><!-- doxytag: member="vtkShrinkFilter::PrintSelf" ref="c073c6e5b283af1d5074bbc96b14b774" args="(ostream &os, vtkIndent indent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkShrinkFilter::PrintSelf </td> <td>(</td> <td class="paramtype">ostream & </td> <td class="paramname"> <em>os</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00869.html">vtkIndent</a> </td> <td class="paramname"> <em>indent</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use <a class="el" href="a01085.html#edadf6378465fd81c2592ef64262e2a5">Print()</a> instead) but used in the hierarchical print process to combine the output of several classes. <p>Reimplemented from <a class="el" href="a01790.html#13d193ef6fd94356f3306d3e799bc9cc">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="44752d277e5a7aa4cfd3a561538fb350"></a><!-- doxytag: member="vtkShrinkFilter::SetShrinkFactor" ref="44752d277e5a7aa4cfd3a561538fb350" args="(double)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void vtkShrinkFilter::SetShrinkFactor </td> <td>(</td> <td class="paramtype">double </td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get/Set the fraction of shrink for each cell. </div> </div><p> <a class="anchor" name="2662f3bf2faace22b344c1cf49d66e0c"></a><!-- doxytag: member="vtkShrinkFilter::GetShrinkFactor" ref="2662f3bf2faace22b344c1cf49d66e0c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual double vtkShrinkFilter::GetShrinkFactor </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Get/Set the fraction of shrink for each cell. </div> </div><p> <a class="anchor" name="edc1d4d9a098364b01ce9dba1ce4c2f9"></a><!-- doxytag: member="vtkShrinkFilter::FillInputPortInformation" ref="edc1d4d9a098364b01ce9dba1ce4c2f9" args="(int port, vtkInformation *info)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkShrinkFilter::FillInputPortInformation </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>port</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00872.html">vtkInformation</a> * </td> <td class="paramname"> <em>info</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> 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. <p>Reimplemented from <a class="el" href="a01790.html#1eb860b284f61b78bd00d5776545bd87">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="e49d1cb8c22b10459f4eaed0f0166277"></a><!-- doxytag: member="vtkShrinkFilter::RequestData" ref="e49d1cb8c22b10459f4eaed0f0166277" args="(vtkInformation *, vtkInformationVector **, vtkInformationVector *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkShrinkFilter::RequestData </td> <td>(</td> <td class="paramtype"><a class="el" href="a00872.html">vtkInformation</a> * </td> <td class="paramname"> <em>request</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00895.html">vtkInformationVector</a> ** </td> <td class="paramname"> <em>inputVector</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="a00895.html">vtkInformationVector</a> * </td> <td class="paramname"> <em>outputVector</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> <p> This is called by the superclass. This is the method you should override. <p>Reimplemented from <a class="el" href="a01790.html#c245179e9e4f4d4f83bf29fd4933b985">vtkUnstructuredGridAlgorithm</a>.</p> </div> </div><p> <hr><h2>Member Data Documentation</h2> <a class="anchor" name="4f573db9d49e9e91379bbdd0f9a8fc4a"></a><!-- doxytag: member="vtkShrinkFilter::ShrinkFactor" ref="4f573db9d49e9e91379bbdd0f9a8fc4a" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">double <a class="el" href="a01542.html#4f573db9d49e9e91379bbdd0f9a8fc4a">vtkShrinkFilter::ShrinkFactor</a><code> [protected]</code> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="a04445.html#l00065">65</a> of file <a class="el" href="a04445.html">vtkShrinkFilter.h</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>dox/Graphics/<a class="el" href="a04445.html">vtkShrinkFilter.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:33:59 2009 for VTK by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6 </small></address> </body> </html>