<!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: vtkTreeLevelsFilter 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>vtkTreeLevelsFilter Class Reference</h1><!-- doxytag: class="vtkTreeLevelsFilter" --><!-- doxytag: inherits="vtkTreeAlgorithm" --><code>#include <<a class="el" href="a04870.html">vtkTreeLevelsFilter.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for vtkTreeLevelsFilter:</div> <div class="dynsection"> <p><center><img src="a15381.png" border="0" usemap="#a15382" alt="Inheritance graph"></center> <map name="a15382"> <area shape="rect" href="a01742.html" title="Superclass for algorithms that produce only Tree as output." alt="" coords="12,229,137,256"><area shape="rect" href="a00101.html" title="Superclass for all sources, filters, and sinks in VTK." alt="" coords="25,155,124,181"><area shape="rect" href="a01084.html" title="abstract base class for most VTK objects" alt="" coords="35,80,115,107"><area shape="rect" href="a01085.html" title="abstract base class for most VTK objects" alt="" coords="20,5,129,32"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <div class="dynheader"> Collaboration diagram for vtkTreeLevelsFilter:</div> <div class="dynsection"> <p><center><img src="a15383.png" border="0" usemap="#a15384" alt="Collaboration graph"></center> <map name="a15384"> <area shape="rect" href="a01742.html" title="Superclass for algorithms that produce only Tree as output." alt="" coords="188,499,313,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="a15385.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2> adds level and leaf fields to a <a class="el" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> <p> The filter currently add two arrays to the incoming <a class="el" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> datastructure. 1) "levels" this is the distance from the root of the vertex. Root = 0 and you add 1 for each level down from the root 2) "leaf" this array simply indicates whether the vertex is a leaf or not<p> <dl class="user" compact><dt><b>Thanks:</b></dt><dd>Thanks to Brian Wylie from Sandia National Laboratories for creating this class.</dd></dl> <dl class="user" compact><dt><b>Tests:</b></dt><dd><a class="el" href="c2_vtk_t_16.html#c2_vtk_t_vtkTreeLevelsFilter">vtkTreeLevelsFilter (Tests)</a> </dd></dl> <p>Definition at line <a class="el" href="a04870.html#l00042">42</a> of file <a class="el" href="a04870.html">vtkTreeLevelsFilter.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 <a class="el" href="a01742.html">vtkTreeAlgorithm</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01749.html#80ab76cac7c1ad2a26cd8372fa052edd">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="a01749.html#3dc1acc43ce1127e9e62d227d22be7ab">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="a01749.html#296eda69997bf2547e4426cf22b2f2fb">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="a01749.html#7692b7f3a2710c946cef1c966b0c30bb">PrintSelf</a> (ostream &os, <a class="el" href="a00869.html">vtkIndent</a> indent)</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="a01749.html">vtkTreeLevelsFilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01749.html#87d86692f1ca0dc3c045287ba1f42f15">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="a01749.html#edb5e7ae4478369d901c99a287dbffe5">IsTypeOf</a> (const char *type)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">static <a class="el" href="a01749.html">vtkTreeLevelsFilter</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="a01749.html#7022915b944139826ebe0519bf23b33b">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="a01749.html#406e3787b166db04677eb2580e8209aa">vtkTreeLevelsFilter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="a01749.html#cf70e9482dbd7dd2f3ee8403bf69a2cf">~vtkTreeLevelsFilter</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="a01749.html#90fc0a6727fc0925a34f5a7c2d2a9e01">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> </table> <hr><h2>Member Typedef Documentation</h2> <a class="anchor" name="80ab76cac7c1ad2a26cd8372fa052edd"></a><!-- doxytag: member="vtkTreeLevelsFilter::Superclass" ref="80ab76cac7c1ad2a26cd8372fa052edd" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="el" href="a01742.html">vtkTreeAlgorithm</a> <a class="el" href="a01742.html">vtkTreeLevelsFilter::Superclass</a> </td> </tr> </table> </div> <div class="memdoc"> <p> <p>Reimplemented from <a class="el" href="a01742.html#32ee1ca1008ec7fbc7455e3d64defd63">vtkTreeAlgorithm</a>.</p> <p>Definition at line <a class="el" href="a04870.html#l00046">46</a> of file <a class="el" href="a04870.html">vtkTreeLevelsFilter.h</a>.</p> </div> </div><p> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="406e3787b166db04677eb2580e8209aa"></a><!-- doxytag: member="vtkTreeLevelsFilter::vtkTreeLevelsFilter" ref="406e3787b166db04677eb2580e8209aa" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkTreeLevelsFilter::vtkTreeLevelsFilter </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="cf70e9482dbd7dd2f3ee8403bf69a2cf"></a><!-- doxytag: member="vtkTreeLevelsFilter::~vtkTreeLevelsFilter" ref="cf70e9482dbd7dd2f3ee8403bf69a2cf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">vtkTreeLevelsFilter::~vtkTreeLevelsFilter </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [inline, protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p> <p>Definition at line <a class="el" href="a04870.html#l00051">51</a> of file <a class="el" href="a04870.html">vtkTreeLevelsFilter.h</a>.</p> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="87d86692f1ca0dc3c045287ba1f42f15"></a><!-- doxytag: member="vtkTreeLevelsFilter::New" ref="87d86692f1ca0dc3c045287ba1f42f15" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01749.html">vtkTreeLevelsFilter</a>* vtkTreeLevelsFilter::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="a01742.html#4624ea23784cb86f58f319f6e459c3bf">vtkTreeAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="3dc1acc43ce1127e9e62d227d22be7ab"></a><!-- doxytag: member="vtkTreeLevelsFilter::GetClassName" ref="3dc1acc43ce1127e9e62d227d22be7ab" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual const char* vtkTreeLevelsFilter::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="a01742.html#21a2cc71c3296e4d173e1682087ee806">vtkTreeAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="edb5e7ae4478369d901c99a287dbffe5"></a><!-- doxytag: member="vtkTreeLevelsFilter::IsTypeOf" ref="edb5e7ae4478369d901c99a287dbffe5" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static int vtkTreeLevelsFilter::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="a01742.html#1e8c11ef997dd86dcab65a5c424a4ded">vtkTreeAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="296eda69997bf2547e4426cf22b2f2fb"></a><!-- doxytag: member="vtkTreeLevelsFilter::IsA" ref="296eda69997bf2547e4426cf22b2f2fb" args="(const char *type)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual int vtkTreeLevelsFilter::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="a01742.html#29f60e0ce151b9906ffae775bba7963b">vtkTreeAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="7022915b944139826ebe0519bf23b33b"></a><!-- doxytag: member="vtkTreeLevelsFilter::SafeDownCast" ref="7022915b944139826ebe0519bf23b33b" args="(vtkObject *o)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">static <a class="el" href="a01749.html">vtkTreeLevelsFilter</a>* vtkTreeLevelsFilter::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="a01742.html#654d0f1da4ac96c7f26ac2a969945030">vtkTreeAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="7692b7f3a2710c946cef1c966b0c30bb"></a><!-- doxytag: member="vtkTreeLevelsFilter::PrintSelf" ref="7692b7f3a2710c946cef1c966b0c30bb" args="(ostream &os, vtkIndent indent)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void vtkTreeLevelsFilter::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="a01742.html#f7e04adecd30eae5b0e2282f0b376e15">vtkTreeAlgorithm</a>.</p> </div> </div><p> <a class="anchor" name="90fc0a6727fc0925a34f5a7c2d2a9e01"></a><!-- doxytag: member="vtkTreeLevelsFilter::RequestData" ref="90fc0a6727fc0925a34f5a7c2d2a9e01" args="(vtkInformation *, vtkInformationVector **, vtkInformationVector *)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int vtkTreeLevelsFilter::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="a01742.html#bb22ffb916ced6eb4a0db98615bb8444">vtkTreeAlgorithm</a>.</p> </div> </div><p> <hr>The documentation for this class was generated from the following file:<ul> <li>dox/Infovis/<a class="el" href="a04870.html">vtkTreeLevelsFilter.h</a></ul> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 19:41:23 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>