<!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/Graphics/vtkHyperOctreeFractalSource.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/Graphics/vtkHyperOctreeFractalSource.h</h1><a href="a02569.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: vtkHyperOctreeFractalSource.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="l00027"></a>00027 <span class="preprocessor">#ifndef __vtkHyperOctreeFractalSource_h</span> <a name="l00028"></a>00028 <span class="preprocessor"></span><span class="preprocessor">#define __vtkHyperOctreeFractalSource_h</span> <a name="l00029"></a>00029 <span class="preprocessor"></span> <a name="l00030"></a>00030 <span class="preprocessor">#include "<a class="code" href="a02273.html">vtkHyperOctreeAlgorithm.h</a>"</span> <a name="l00031"></a>00031 <a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>; <a name="l00033"></a>00033 <a name="l00034"></a><a class="code" href="a00707.html">00034</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</a> : <span class="keyword">public</span> <a class="code" href="a00700.html" title="Superclass for algorithms that produce only octree as output.">vtkHyperOctreeAlgorithm</a> <a name="l00035"></a>00035 { <a name="l00036"></a>00036 <span class="keyword">public</span>: <a name="l00037"></a><a class="code" href="a00707.html#af3ebaec1e31621178b3d196a539a06a">00037</a> vtkTypeRevisionMacro(<a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</a>,<a class="code" href="a00700.html" title="Superclass for algorithms that produce only octree as output.">vtkHyperOctreeAlgorithm</a>); <a name="l00038"></a>00038 <span class="keywordtype">void</span> <a class="code" href="a00700.html#2fdbdc94acf067305d4e3b99b9978b71">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00039"></a>00039 <a name="l00040"></a>00040 <span class="keyword">static</span> <a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>(); <a name="l00041"></a>00041 <a name="l00044"></a>00044 <span class="keywordtype">int</span> GetMaximumLevel(); <a name="l00045"></a>00045 <a name="l00050"></a>00050 <span class="keywordtype">void</span> SetMaximumLevel(<span class="keywordtype">int</span> levels); <a name="l00051"></a>00051 <a name="l00053"></a>00053 <a name="l00055"></a>00055 <span class="keywordtype">void</span> SetMinimumLevel(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>); <a name="l00056"></a>00056 <span class="keywordtype">int</span> GetMinimumLevel(); <a name="l00058"></a>00058 <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="comment">//========== Mandelbrot parameters ==========</span> <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00066"></a>00066 <span class="keywordtype">void</span> SetProjectionAxes(<span class="keywordtype">int</span> x, <span class="keywordtype">int</span> y, <span class="keywordtype">int</span> z); <a name="l00067"></a><a class="code" href="a00707.html#45e0f7e64d2e96b7cbd03b795e42576e">00067</a> <span class="keywordtype">void</span> SetProjectionAxes(<span class="keywordtype">int</span> a[3]) {this->SetProjectionAxes(a[0],a[1],a[2]);} <a name="l00068"></a>00068 vtkGetVector3Macro(ProjectionAxes, <span class="keywordtype">int</span>); <a name="l00070"></a>00070 <a name="l00072"></a>00072 <a name="l00074"></a>00074 vtkSetVector4Macro(OriginCX, <span class="keywordtype">double</span>); <a name="l00075"></a>00075 vtkGetVector4Macro(OriginCX, <span class="keywordtype">double</span>); <a name="l00077"></a>00077 <a name="l00079"></a>00079 <a name="l00082"></a>00082 vtkSetVector4Macro(SizeCX, <span class="keywordtype">double</span>); <a name="l00083"></a>00083 vtkGetVector4Macro(SizeCX, <span class="keywordtype">double</span>); <a name="l00085"></a>00085 <a name="l00087"></a>00087 <a name="l00088"></a>00088 vtkSetClampMacro(MaximumNumberOfIterations, <span class="keywordtype">unsigned</span> <span class="keywordtype">short</span>, 1, 255); <a name="l00089"></a>00089 vtkGetMacro(MaximumNumberOfIterations, <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span>); <a name="l00091"></a>00091 <a name="l00093"></a>00093 <a name="l00094"></a>00094 vtkSetClampMacro(Dimension, <span class="keywordtype">int</span>, 2, 3); <a name="l00095"></a>00095 vtkGetMacro(Dimension, <span class="keywordtype">int</span>); <a name="l00097"></a>00097 <a name="l00099"></a>00099 <a name="l00102"></a>00102 vtkSetMacro(SpanThreshold, <span class="keywordtype">double</span>); <a name="l00103"></a>00103 vtkGetMacro(SpanThreshold, <span class="keywordtype">double</span>); <a name="l00105"></a>00105 <a name="l00106"></a>00106 <span class="keyword">protected</span>: <a name="l00107"></a>00107 <a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</a>(); <a name="l00108"></a>00108 ~<a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</a>(); <a name="l00109"></a>00109 <a name="l00110"></a>00110 <span class="keywordtype">int</span> <a class="code" href="a00700.html#c552feb0c0098b835bba03264c58c527">RequestInformation</a> (<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> * vtkNotUsed(request), <a name="l00111"></a>00111 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> ** vtkNotUsed( inputVector ), <a name="l00112"></a>00112 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00700.html#057d5c41394e2fb318429996624bf9cf">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a name="l00115"></a>00115 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *); <a name="l00116"></a>00116 <a name="l00117"></a>00117 <span class="keywordtype">void</span> Subdivide(<a class="code" href="a00703.html" title="Objects that can traverse hyperoctree nodes.">vtkHyperOctreeCursor</a> *cursor, <a name="l00118"></a>00118 <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <a class="code" href="a00699.html" title="A dataset structured as a tree where each node has exactly 2^n children.">vtkHyperOctree</a> *output, <a name="l00119"></a>00119 <span class="keywordtype">double</span>* origin, <span class="keywordtype">double</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>, <a name="l00120"></a>00120 <span class="keywordtype">float</span>* cornerVals); <a name="l00121"></a>00121 <a name="l00122"></a><a class="code" href="a00707.html#765df6273a0c60d622d18a3b4265b775">00122</a> <span class="keywordtype">int</span> MaximumLevel; <a name="l00123"></a><a class="code" href="a00707.html#1c133dd5bacf0540ffd950a7b5939bc1">00123</a> <span class="keywordtype">int</span> MinimumLevel; <a name="l00124"></a><a class="code" href="a00707.html#ca822f4a2f7fb1a5931a6af140ecb35e">00124</a> <span class="keywordtype">int</span> Dimension; <a name="l00125"></a>00125 <a name="l00126"></a><a class="code" href="a00707.html#e490b2f55665f9f798c603b4ee1187da">00126</a> <span class="keywordtype">int</span> ProjectionAxes[3]; <a name="l00127"></a>00127 <a name="l00128"></a><a class="code" href="a00707.html#2f7b2d4f0668a35e82dce38ae51f7bb0">00128</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> MaximumNumberOfIterations; <a name="l00129"></a>00129 <a name="l00130"></a>00130 <span class="comment">// Complex constant/initial-value at origin.</span> <a name="l00131"></a><a class="code" href="a00707.html#48df001a112050998b7365177b44c2e8">00131</a> <span class="keywordtype">double</span> OriginCX[4]; <a name="l00132"></a>00132 <a name="l00133"></a>00133 <span class="comment">// A temporary vector that is computed as needed.</span> <a name="l00134"></a>00134 <span class="comment">// It is used to return a vector.</span> <a name="l00135"></a><a class="code" href="a00707.html#f103318672a6505ebdecf87b1b959053">00135</a> <span class="keywordtype">double</span> SizeCX[4]; <a name="l00136"></a>00136 <a name="l00137"></a>00137 <span class="keywordtype">float</span> EvaluateWorldPoint(<span class="keywordtype">double</span> p[3]); <a name="l00138"></a>00138 <span class="keywordtype">float</span> EvaluateSet(<span class="keywordtype">double</span> p[4]); <a name="l00139"></a>00139 <a name="l00140"></a><a class="code" href="a00707.html#949d561da29b7df64f8ef48ef2ba0211">00140</a> <span class="keywordtype">double</span> Origin[3]; <a name="l00141"></a><a class="code" href="a00707.html#da7dbed9ff5f9c9bfc0cf61fcbe9b70c">00141</a> <span class="keywordtype">double</span> Size[3]; <a name="l00142"></a>00142 <a name="l00143"></a><a class="code" href="a00707.html#a5481ff0cce06639bb563e2418e9383b">00143</a> <span class="keywordtype">double</span> SpanThreshold; <a name="l00144"></a>00144 <a name="l00145"></a>00145 <span class="keyword">private</span>: <a name="l00146"></a>00146 <a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</a>(<span class="keyword">const</span> <a class="code" href="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</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="a00707.html" title="Create an octree from a fractal. hyperoctree.">vtkHyperOctreeFractalSource</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:27 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>