Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 60f1dc962abad0f3b492991a4fbef9be > files > 4803

vtk-doc-5.4.2-5mdv2010.0.noarch.rpm

<!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/vtkCosmicTreeLayoutStrategy.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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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/vtkCosmicTreeLayoutStrategy.h</h1><a href="a03011.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: vtkCosmicTreeLayoutStrategy.h,v $</span>
<a name="l00005"></a>00005 <span class="comment">  </span>
<a name="l00006"></a>00006 <span class="comment">=========================================================================*/</span>
<a name="l00007"></a>00007 <span class="comment">/*----------------------------------------------------------------------------</span>
<a name="l00008"></a>00008 <span class="comment"> Copyright (c) Sandia Corporation</span>
<a name="l00009"></a>00009 <span class="comment"> See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.</span>
<a name="l00010"></a>00010 <span class="comment">----------------------------------------------------------------------------*/</span>
<a name="l00032"></a>00032 <span class="preprocessor">#ifndef __vtkCosmicTreeLayoutStrategy_h</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span><span class="preprocessor">#define __vtkCosmicTreeLayoutStrategy_h</span>
<a name="l00034"></a>00034 <span class="preprocessor"></span>
<a name="l00035"></a>00035 <span class="preprocessor">#include "<a class="code" href="a03027.html">vtkGraphLayoutStrategy.h</a>"</span>
<a name="l00036"></a>00036 
<a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>;
<a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>;
<a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>;
<a name="l00041"></a>00041 
<a name="l00042"></a><a class="code" href="a00339.html">00042</a> <span class="keyword">class </span><a class="code" href="a02170.html#73f1c245b8811be3c4b76b0a89784e70">VTK_INFOVIS_EXPORT</a> <a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a> : <span class="keyword">public</span> <a class="code" href="a00667.html" title="abstract superclass for all graph layout strategies">vtkGraphLayoutStrategy</a>
<a name="l00043"></a>00043 {
<a name="l00044"></a>00044 <span class="keyword">public</span>:
<a name="l00045"></a>00045   <span class="keyword">static</span> <a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>* <a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00046"></a>00046   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00667.html#920e5873c1be5fe0b75c11beca20ed4b">PrintSelf</a>( ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent );
<a name="l00047"></a><a class="code" href="a00339.html#a26c42a97940e1a3b89608a3b355ab29">00047</a>   vtkTypeRevisionMacro(<a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>,<a class="code" href="a00667.html" title="abstract superclass for all graph layout strategies">vtkGraphLayoutStrategy</a>);
<a name="l00048"></a>00048 
<a name="l00050"></a>00050   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00667.html#14f90ab69c42daa54714afdf45fe0148">Layout</a>();
<a name="l00051"></a>00051 
<a name="l00053"></a>00053 
<a name="l00058"></a>00058   vtkSetMacro(SizeLeafNodesOnly,<span class="keywordtype">int</span>);
<a name="l00059"></a>00059   vtkGetMacro(SizeLeafNodesOnly,<span class="keywordtype">int</span>);
<a name="l00060"></a>00060   vtkBooleanMacro(SizeLeafNodesOnly,<span class="keywordtype">int</span>);
<a name="l00062"></a>00062 
<a name="l00064"></a>00064 
<a name="l00069"></a>00069   vtkSetMacro(LayoutDepth,<span class="keywordtype">int</span>);
<a name="l00070"></a>00070   vtkGetMacro(LayoutDepth,<span class="keywordtype">int</span>);
<a name="l00072"></a>00072 
<a name="l00074"></a>00074 
<a name="l00080"></a>00080   vtkSetMacro(LayoutRoot,<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>);
<a name="l00081"></a>00081   vtkGetMacro(LayoutRoot,<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a>);
<a name="l00083"></a>00083 
<a name="l00085"></a>00085 
<a name="l00088"></a>00088   vtkSetStringMacro(NodeSizeArrayName);
<a name="l00089"></a>00089   vtkGetStringMacro(NodeSizeArrayName);
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="keyword">protected</span>:
<a name="l00093"></a>00093 
<a name="l00094"></a>00094   <span class="comment">//BTX</span>
<a name="l00096"></a><a class="code" href="a00339.html#6a44b85f750e31f308ee291f3c7cd62d">00096</a> <span class="comment"></span>  <span class="keyword">enum</span> <a class="code" href="a00339.html#6a44b85f750e31f308ee291f3c7cd62d" title="How are node sizes specified?">RadiusMode</a>
<a name="l00097"></a>00097     {
<a name="l00098"></a><a class="code" href="a00339.html#6a44b85f750e31f308ee291f3c7cd62d73e916b03a04ed4c43a0d48ada01b987">00098</a>     NONE,     
<a name="l00099"></a><a class="code" href="a00339.html#6a44b85f750e31f308ee291f3c7cd62d7e50e1f16b7e1449286d149b9e684e6f">00099</a>     LEAVES,   
<a name="l00100"></a><a class="code" href="a00339.html#6a44b85f750e31f308ee291f3c7cd62da799cf300fc51454555e0b5e1d521f7c">00100</a>     ALL       
<a name="l00101"></a>00101     };
<a name="l00102"></a>00102   <span class="comment">//ETX</span>
<a name="l00103"></a>00103 
<a name="l00104"></a>00104   <a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>();
<a name="l00105"></a>00105   <span class="keyword">virtual</span> ~<a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>();
<a name="l00106"></a>00106 
<a name="l00107"></a>00107   <span class="comment">//BTX</span>
<a name="l00109"></a>00109 <span class="comment"></span>
<a name="l00110"></a>00110   <span class="keywordtype">void</span> LayoutChildren(
<a name="l00111"></a>00111     <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>* tree, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* newPoints, <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* radii, <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210733bd1e54b6acd59b06105c91204401e">scale</a>,
<a name="l00112"></a>00112     <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> root, <span class="keywordtype">int</span> depth, RadiusMode <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210608db9ad4c08b9eb2e8e8353b79225da">mode</a> );
<a name="l00114"></a>00114 
<a name="l00116"></a>00116 
<a name="l00120"></a>00120   <span class="keywordtype">void</span> OffsetChildren(
<a name="l00121"></a>00121     <a class="code" href="a01741.html" title="A rooted tree data structure.">vtkTree</a>* tree, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* pts, <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* radii, <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210733bd1e54b6acd59b06105c91204401e">scale</a>,
<a name="l00122"></a>00122     <span class="keywordtype">double</span> parent[4], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> root, <span class="keywordtype">int</span> depth, RadiusMode <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210608db9ad4c08b9eb2e8e8353b79225da">mode</a> );
<a name="l00123"></a>00123   <span class="comment">//ETX</span>
<a name="l00125"></a>00125 <span class="comment"></span>
<a name="l00134"></a>00134   <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* CreateRadii( <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> numVertices, <span class="keywordtype">double</span> initialValue, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* inputRadii );
<a name="l00135"></a>00135 
<a name="l00140"></a>00140   <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>* CreateScaleFactors( <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> numVertices );
<a name="l00141"></a>00141 
<a name="l00142"></a><a class="code" href="a00339.html#866af0ee885d9af37c8efa6504b6e980">00142</a>   <span class="keywordtype">int</span> SizeLeafNodesOnly;
<a name="l00143"></a><a class="code" href="a00339.html#48c16c2d553c9e9d5cf3ff29fbe88a91">00143</a>   <span class="keywordtype">int</span> LayoutDepth;
<a name="l00144"></a><a class="code" href="a00339.html#713f7e07f8b225649df483e125f49c13">00144</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> LayoutRoot;
<a name="l00145"></a><a class="code" href="a00339.html#e7571ffd932c866fcbf4f16cb11507ce">00145</a>   <span class="keywordtype">char</span>* NodeSizeArrayName;
<a name="l00146"></a>00146 
<a name="l00147"></a>00147 <span class="keyword">private</span>:
<a name="l00148"></a>00148   <a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>( <span class="keyword">const</span> <a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>&amp; ); <span class="comment">// Not implemented.</span>
<a name="l00149"></a>00149   <span class="keywordtype">void</span> operator = ( <span class="keyword">const</span> <a class="code" href="a00339.html" title="tree layout strategy reminiscent of astronomical systems">vtkCosmicTreeLayoutStrategy</a>&amp; ); <span class="comment">// Not implemented.</span>
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151 
<a name="l00152"></a>00152 <span class="preprocessor">#endif // __vtkCosmicTreeLayoutStrategy_h</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:37 2009 for VTK by&nbsp;
<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>