<!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: dox/Infovis/vtkStackedTreeLayoutStrategy.h Source File</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><a href="classes.html"><span>Classes</span></a></li> <li class="current"><a href="files.html"><span>Files</span></a></li> </ul> </div> <h1>dox/Infovis/vtkStackedTreeLayoutStrategy.h</h1><a href="a03065.html">Go to the documentation of this file.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">/*=========================================================================</span> <a name="l00002"></a>00002 <span class="comment"></span> <a name="l00003"></a>00003 <span class="comment"> Program: Visualization Toolkit</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkStackedTreeLayoutStrategy.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen</span> <a name="l00007"></a>00007 <span class="comment"> All rights reserved.</span> <a name="l00008"></a>00008 <span class="comment"> See Copyright.txt or http://www.kitware.com/Copyright.htm for details.</span> <a name="l00009"></a>00009 <span class="comment"></span> <a name="l00010"></a>00010 <span class="comment"> This software is distributed WITHOUT ANY WARRANTY; without even</span> <a name="l00011"></a>00011 <span class="comment"> the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR</span> <a name="l00012"></a>00012 <span class="comment"> PURPOSE. See the above copyright notice for more information.</span> <a name="l00013"></a>00013 <span class="comment"></span> <a name="l00014"></a>00014 <span class="comment">=========================================================================*/</span> <a name="l00015"></a>00015 <span class="comment">/*-------------------------------------------------------------------------</span> <a name="l00016"></a>00016 <span class="comment"> Copyright 2008 Sandia Corporation.</span> <a name="l00017"></a>00017 <span class="comment"> Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span> <a name="l00018"></a>00018 <span class="comment"> the U.S. Government retains certain rights in this software.</span> <a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span> <a name="l00036"></a>00036 <span class="preprocessor">#ifndef __vtkStackedTreeLayoutStrategy_h</span> <a name="l00037"></a>00037 <span class="preprocessor"></span><span class="preprocessor">#define __vtkStackedTreeLayoutStrategy_h</span> <a name="l00038"></a>00038 <span class="preprocessor"></span> <a name="l00039"></a>00039 <span class="preprocessor">#include "<a class="code" href="a02984.html">vtkAreaLayoutStrategy.h</a>"</span> <a name="l00040"></a>00040 <a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>; <a name="l00042"></a>00042 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>; <a name="l00043"></a>00043 <a name="l00044"></a><a class="code" href="a01602.html">00044</a> <span class="keyword">class </span><a class="code" href="a02170.html#73f1c245b8811be3c4b76b0a89784e70">VTK_INFOVIS_EXPORT</a> <a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a> : <a name="l00045"></a>00045 <span class="keyword">public</span> <a class="code" href="a00122.html" title="abstract superclass for all area layout strategies">vtkAreaLayoutStrategy</a> <a name="l00046"></a>00046 { <a name="l00047"></a>00047 <span class="keyword">public</span>: <a name="l00048"></a>00048 <span class="keyword">static</span> <a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00049"></a><a class="code" href="a01602.html#8df46d16af680cd6159c5e017b9ea9b0">00049</a> vtkTypeRevisionMacro(<a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>,<a class="code" href="a00122.html" title="abstract superclass for all area layout strategies">vtkAreaLayoutStrategy</a>); <a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="a00122.html#4b8339c361146ce4b8e691c1b968d0c8">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00051"></a>00051 <a name="l00053"></a>00053 <a name="l00056"></a>00056 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00122.html#59bff0048a203ef412cf7e456358e8e5">Layout</a>(<a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> *inputTree, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *sectorArray, <a name="l00057"></a>00057 <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* sizeArray); <a name="l00059"></a>00059 <a name="l00061"></a>00061 <a name="l00063"></a>00063 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00122.html#2ec729851e780cfea8e31b04f4dce166">LayoutEdgePoints</a>(<a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> *inputTree, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *sectorArray, <a name="l00064"></a>00064 <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* sizeArray, <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> *edgeRoutingTree); <a name="l00066"></a>00066 <a name="l00068"></a>00068 <a name="l00069"></a>00069 vtkSetMacro(InteriorRadius, <span class="keywordtype">double</span>); <a name="l00070"></a>00070 vtkGetMacro(InteriorRadius, <span class="keywordtype">double</span>); <a name="l00072"></a>00072 <a name="l00074"></a>00074 <a name="l00075"></a>00075 vtkSetMacro(RingThickness, <span class="keywordtype">double</span>); <a name="l00076"></a>00076 vtkGetMacro(RingThickness, <span class="keywordtype">double</span>); <a name="l00078"></a>00078 <a name="l00080"></a>00080 <a name="l00083"></a>00083 vtkSetMacro(RootStartAngle, <span class="keywordtype">double</span>); <a name="l00084"></a>00084 vtkGetMacro(RootStartAngle, <span class="keywordtype">double</span>); <a name="l00086"></a>00086 <a name="l00088"></a>00088 <a name="l00091"></a>00091 vtkSetMacro(RootEndAngle, <span class="keywordtype">double</span>); <a name="l00092"></a>00092 vtkGetMacro(RootEndAngle, <span class="keywordtype">double</span>); <a name="l00094"></a>00094 <a name="l00096"></a>00096 <a name="l00098"></a>00098 vtkSetMacro(UseRectangularCoordinates, <span class="keywordtype">bool</span>); <a name="l00099"></a>00099 vtkGetMacro(UseRectangularCoordinates, <span class="keywordtype">bool</span>); <a name="l00100"></a>00100 vtkBooleanMacro(UseRectangularCoordinates, <span class="keywordtype">bool</span>); <a name="l00102"></a>00102 <a name="l00104"></a>00104 <a name="l00106"></a>00106 vtkSetMacro(Reverse, <span class="keywordtype">bool</span>); <a name="l00107"></a>00107 vtkGetMacro(Reverse, <span class="keywordtype">bool</span>); <a name="l00108"></a>00108 vtkBooleanMacro(Reverse, <span class="keywordtype">bool</span>); <a name="l00110"></a>00110 <a name="l00112"></a>00112 <a name="l00116"></a>00116 vtkSetMacro(InteriorLogSpacingValue, <span class="keywordtype">double</span>); <a name="l00117"></a>00117 vtkGetMacro(InteriorLogSpacingValue, <span class="keywordtype">double</span>); <a name="l00119"></a>00119 <a name="l00122"></a>00122 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00122.html#4d3e3938c688b74055acf61622c09b74">FindVertex</a>(<a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>* tree, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* array, <span class="keywordtype">float</span> pnt[2]); <a name="l00123"></a>00123 <a name="l00124"></a>00124 <span class="keyword">protected</span>: <a name="l00125"></a>00125 <a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>(); <a name="l00126"></a>00126 ~<a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>(); <a name="l00127"></a>00127 <a name="l00128"></a><a class="code" href="a01602.html#6dafc09ebef0bc1144dd643c10f8fed1">00128</a> <span class="keywordtype">float</span> InteriorRadius; <a name="l00129"></a><a class="code" href="a01602.html#2b048dd7a7b8a57c77c01aaa3d74334f">00129</a> <span class="keywordtype">float</span> RingThickness; <a name="l00130"></a><a class="code" href="a01602.html#57d28cc599268058f87591e797846f61">00130</a> <span class="keywordtype">float</span> RootStartAngle; <a name="l00131"></a><a class="code" href="a01602.html#3f9bba420ed190ad502bcde1d3119b87">00131</a> <span class="keywordtype">float</span> RootEndAngle; <a name="l00132"></a><a class="code" href="a01602.html#99a5c8013f370328970ac4347c09c642">00132</a> <span class="keywordtype">bool</span> UseRectangularCoordinates; <a name="l00133"></a><a class="code" href="a01602.html#3ad0f7ad82177a1597582a60d7d2508f">00133</a> <span class="keywordtype">bool</span> Reverse; <a name="l00134"></a><a class="code" href="a01602.html#bc1d48153aa79f1f0ba8d00c490ee30d">00134</a> <span class="keywordtype">double</span> InteriorLogSpacingValue; <a name="l00135"></a>00135 <a name="l00136"></a>00136 <span class="keywordtype">void</span> ComputeEdgeRoutingPoints( <a name="l00137"></a>00137 <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>* inputTree, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* coordsArray, <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>* outputTree); <a name="l00138"></a>00138 <a name="l00139"></a>00139 <span class="keywordtype">void</span> LayoutChildren( <a name="l00140"></a>00140 <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a> *tree, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *coordsArray, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *sizeArray, <a name="l00141"></a>00141 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> nchildren, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> parent, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> begin, <a name="l00142"></a>00142 <span class="keywordtype">float</span> parentInnerRad, <span class="keywordtype">float</span> parentOuterRad, <a name="l00143"></a>00143 <span class="keywordtype">float</span> parentStartAng, <span class="keywordtype">float</span> parentEndAng); <a name="l00144"></a>00144 <a name="l00145"></a>00145 <span class="keyword">private</span>: <a name="l00146"></a>00146 <a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>(<span class="keyword">const</span> <a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>&); <span class="comment">// Not implemented.</span> <a name="l00147"></a>00147 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01602.html" title="lays out tree in stacked boxes or rings">vtkStackedTreeLayoutStrategy</a>&); <span class="comment">// Not implemented.</span> <a name="l00148"></a>00148 }; <a name="l00149"></a>00149 <a name="l00150"></a>00150 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:38 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>