<!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/Parallel/vtkTemporalFractal.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/Parallel/vtkTemporalFractal.h</h1><a href="a03347.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: ParaView</span> <a name="l00004"></a>00004 <span class="comment"> Module: $RCSfile: vtkTemporalFractal.h,v $</span> <a name="l00005"></a>00005 <span class="comment"></span> <a name="l00006"></a>00006 <span class="comment"> Copyright (c) Kitware, Inc.</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.paraview.org/HTML/Copyright.html 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="l00030"></a>00030 <span class="preprocessor">#ifndef __vtkTemporalFractal_h</span> <a name="l00031"></a>00031 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTemporalFractal_h</span> <a name="l00032"></a>00032 <span class="preprocessor"></span> <a name="l00033"></a>00033 <span class="preprocessor">#include "<a class="code" href="a02382.html">vtkTemporalDataSetAlgorithm.h</a>"</span> <a name="l00034"></a>00034 <a name="l00035"></a>00035 <span class="keyword">class </span><a class="code" href="a00303.html" title="abstact superclass for composite (multi-block or AMR) datasets">vtkCompositeDataSet</a>; <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>; <a name="l00037"></a>00037 <span class="keyword">class </span><a class="code" href="a00688.html" title="hierarchical dataset of vtkUniformGrids">vtkHierarchicalBoxDataSet</a>; <a name="l00038"></a>00038 <span class="keyword">class </span><a class="code" href="a00900.html" title="dynamic, self-adjusting array of int">vtkIntArray</a>; <a name="l00039"></a>00039 <span class="keyword">class </span><a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a>; <a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a01778.html" title="image data with blanking">vtkUniformGrid</a>; <a name="l00041"></a>00041 <a name="l00042"></a><a class="code" href="a01671.html">00042</a> <span class="keyword">class </span><a class="code" href="a02170.html#7438b32736749f34b46d66222305e60b">VTK_PARALLEL_EXPORT</a> <a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a> : <span class="keyword">public</span> <a class="code" href="a01669.html" title="Superclass for algorithms that produce only vtkTemporalDataSet as output.">vtkTemporalDataSetAlgorithm</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="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a> *<a class="code" href="a01669.html#7e890f70aa59f877adc69079371dfb83">New</a>(); <a name="l00046"></a><a class="code" href="a01671.html#0137da08d6e22ce64c7f7da35e03b83d">00046</a> vtkTypeRevisionMacro(<a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a>,<a class="code" href="a01669.html" title="Superclass for algorithms that produce only vtkTemporalDataSet as output.">vtkTemporalDataSetAlgorithm</a>); <a name="l00047"></a>00047 <span class="keywordtype">void</span> <a class="code" href="a01669.html#869a7af9e60bc4698f78b78919f8ffd9">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00048"></a>00048 <a name="l00050"></a>00050 <a name="l00052"></a>00052 vtkSetMacro(FractalValue, <span class="keywordtype">float</span>); <a name="l00053"></a>00053 vtkGetMacro(FractalValue, <span class="keywordtype">float</span>); <a name="l00055"></a>00055 <a name="l00057"></a>00057 <a name="l00060"></a>00060 vtkSetMacro(MaximumLevel, <span class="keywordtype">int</span>); <a name="l00061"></a>00061 vtkGetMacro(MaximumLevel, <span class="keywordtype">int</span>); <a name="l00063"></a>00063 <a name="l00065"></a>00065 <a name="l00066"></a>00066 vtkSetMacro(Dimensions, <span class="keywordtype">int</span>); <a name="l00067"></a>00067 vtkGetMacro(Dimensions, <span class="keywordtype">int</span>); <a name="l00069"></a>00069 <a name="l00071"></a>00071 <a name="l00072"></a>00072 vtkSetMacro(GhostLevels, <span class="keywordtype">int</span>); <a name="l00073"></a>00073 vtkGetMacro(GhostLevels, <span class="keywordtype">int</span>); <a name="l00074"></a>00074 vtkBooleanMacro(GhostLevels, <span class="keywordtype">int</span>); <a name="l00076"></a>00076 <a name="l00078"></a>00078 <a name="l00080"></a>00080 vtkSetMacro(GenerateRectilinearGrids, <span class="keywordtype">int</span>); <a name="l00081"></a>00081 vtkGetMacro(GenerateRectilinearGrids, <span class="keywordtype">int</span>); <a name="l00082"></a>00082 vtkBooleanMacro(GenerateRectilinearGrids, <span class="keywordtype">int</span>); <a name="l00084"></a>00084 <a name="l00086"></a>00086 <a name="l00088"></a>00088 vtkSetMacro(DiscreteTimeSteps, <span class="keywordtype">int</span>); <a name="l00089"></a>00089 vtkGetMacro(DiscreteTimeSteps, <span class="keywordtype">int</span>); <a name="l00090"></a>00090 vtkBooleanMacro(DiscreteTimeSteps, <span class="keywordtype">int</span>); <a name="l00092"></a>00092 <a name="l00094"></a>00094 <a name="l00095"></a>00095 vtkSetMacro(TwoDimensional, <span class="keywordtype">int</span>); <a name="l00096"></a>00096 vtkGetMacro(TwoDimensional, <span class="keywordtype">int</span>); <a name="l00097"></a>00097 vtkBooleanMacro(TwoDimensional, <span class="keywordtype">int</span>); <a name="l00099"></a>00099 <a name="l00101"></a>00101 <a name="l00103"></a>00103 vtkSetMacro(Asymetric,<span class="keywordtype">int</span>); <a name="l00104"></a>00104 vtkGetMacro(Asymetric,<span class="keywordtype">int</span>); <a name="l00106"></a>00106 <a name="l00108"></a>00108 <a name="l00109"></a>00109 vtkSetMacro(AdaptiveSubdivision, <span class="keywordtype">int</span>); <a name="l00110"></a>00110 vtkGetMacro(AdaptiveSubdivision, <span class="keywordtype">int</span>); <a name="l00111"></a>00111 vtkBooleanMacro(AdaptiveSubdivision, <span class="keywordtype">int</span>); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <a name="l00115"></a>00115 <span class="keyword">protected</span>: <a name="l00116"></a>00116 <a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a>(); <a name="l00117"></a>00117 ~<a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a>(); <a name="l00118"></a>00118 <a name="l00119"></a><a class="code" href="a01671.html#021a58fabaf20cdbd895fceab2b6c997">00119</a> <span class="keywordtype">int</span> StartBlock; <a name="l00120"></a><a class="code" href="a01671.html#b1be8b44d9fbf186516194b7573359a7">00120</a> <span class="keywordtype">int</span> EndBlock; <a name="l00121"></a><a class="code" href="a01671.html#697dae5e33b2441d62e836e4e15e2220">00121</a> <span class="keywordtype">int</span> BlockCount; <a name="l00122"></a>00122 <a name="l00124"></a>00124 <a name="l00126"></a>00126 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01669.html#436653db381cbc3f07688bdc7e64235d">RequestInformation</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request, <a name="l00127"></a>00127 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector, <a name="l00128"></a>00128 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector); <a name="l00130"></a>00130 <a name="l00132"></a>00132 <a name="l00134"></a>00134 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01669.html#2d3e2b343b070956bf843351c109d5e5">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request, <a name="l00135"></a>00135 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector, <a name="l00136"></a>00136 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector); <a name="l00137"></a>00137 <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequestOneTimeStep(<a class="code" href="a00303.html" title="abstact superclass for composite (multi-block or AMR) datasets">vtkCompositeDataSet</a> *output, <a name="l00138"></a>00138 <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *request, <a name="l00139"></a>00139 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **inputVector, <a name="l00140"></a>00140 <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector); <a name="l00142"></a>00142 <a name="l00143"></a>00143 <span class="keywordtype">void</span> Traverse(<span class="keywordtype">int</span> &blockId, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* output, <a name="l00144"></a>00144 <span class="keywordtype">int</span> x0,<span class="keywordtype">int</span> x1, <span class="keywordtype">int</span> y0,<span class="keywordtype">int</span> y1, <span class="keywordtype">int</span> z0,<span class="keywordtype">int</span> z1, <a name="l00145"></a>00145 <span class="keywordtype">int</span> onFace[6]); <a name="l00146"></a>00146 <a name="l00147"></a>00147 <span class="keywordtype">int</span> LineTest2(<span class="keywordtype">float</span> x0, <span class="keywordtype">float</span> y0, <span class="keywordtype">float</span> z0, <a name="l00148"></a>00148 <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> z1, <a name="l00149"></a>00149 <span class="keywordtype">double</span> bds[6]); <a name="l00150"></a>00150 <span class="keywordtype">int</span> LineTest(<span class="keywordtype">float</span> x0, <span class="keywordtype">float</span> y0, <span class="keywordtype">float</span> z0, <a name="l00151"></a>00151 <span class="keywordtype">float</span> x1, <span class="keywordtype">float</span> y1, <span class="keywordtype">float</span> z1, <a name="l00152"></a>00152 <span class="keywordtype">double</span> bds[6], <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">int</span> <a class="code" href="a02995.html#fc938df20cbcc0144ed508333af97623">target</a>); <a name="l00153"></a>00153 <a name="l00154"></a>00154 <span class="keywordtype">void</span> SetBlockInfo(<a class="code" href="a01778.html" title="image data with blanking">vtkUniformGrid</a> *grid, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">int</span>* ext,<span class="keywordtype">int</span> onFace[6]); <a name="l00155"></a>00155 <span class="keywordtype">void</span> SetRBlockInfo(<a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a> *grid, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">int</span>* ext, <a name="l00156"></a>00156 <span class="keywordtype">int</span> onFace[6]); <a name="l00157"></a>00157 <a name="l00158"></a>00158 <a name="l00159"></a>00159 <span class="keywordtype">void</span> AddDataSet(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* output, <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">int</span> extents[6], <a name="l00160"></a>00160 <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>* dataSet); <a name="l00161"></a>00161 <a name="l00162"></a>00162 <span class="keywordtype">void</span> AddVectorArray(<a class="code" href="a00688.html" title="hierarchical dataset of vtkUniformGrids">vtkHierarchicalBoxDataSet</a> *output); <a name="l00163"></a>00163 <span class="keywordtype">void</span> AddTestArray(<a class="code" href="a00688.html" title="hierarchical dataset of vtkUniformGrids">vtkHierarchicalBoxDataSet</a> *output); <a name="l00164"></a>00164 <span class="keywordtype">void</span> AddFractalArray(<a class="code" href="a00303.html" title="abstact superclass for composite (multi-block or AMR) datasets">vtkCompositeDataSet</a>* output); <a name="l00165"></a>00165 <span class="keywordtype">void</span> AddBlockIdArray(<a class="code" href="a00688.html" title="hierarchical dataset of vtkUniformGrids">vtkHierarchicalBoxDataSet</a> *output); <a name="l00166"></a>00166 <span class="keywordtype">void</span> AddDepthArray(<a class="code" href="a00688.html" title="hierarchical dataset of vtkUniformGrids">vtkHierarchicalBoxDataSet</a> *output); <a name="l00167"></a>00167 <a name="l00168"></a>00168 <span class="keywordtype">void</span> AddGhostLevelArray(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *grid, <a name="l00169"></a>00169 <span class="keywordtype">int</span> dim[3], <a name="l00170"></a>00170 <span class="keywordtype">int</span> onFace[6]); <a name="l00171"></a>00171 <a name="l00172"></a>00172 <span class="keywordtype">int</span> MandelbrotTest(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y); <a name="l00173"></a>00173 <span class="keywordtype">int</span> TwoDTest(<span class="keywordtype">double</span> bds[6], <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">int</span> <a class="code" href="a02995.html#fc938df20cbcc0144ed508333af97623">target</a>); <a name="l00174"></a>00174 <a name="l00175"></a>00175 <span class="keywordtype">void</span> CellExtentToBounds(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <a name="l00176"></a>00176 <span class="keywordtype">int</span> ext[6], <a name="l00177"></a>00177 <span class="keywordtype">double</span> bds[6]); <a name="l00178"></a>00178 <a name="l00179"></a>00179 <span class="keywordtype">void</span> ExecuteRectilinearMandelbrot(<a class="code" href="a01460.html" title="a dataset that is topologically regular with variable spacing in the three coordinate...">vtkRectilinearGrid</a> *grid, <a name="l00180"></a>00180 <span class="keywordtype">double</span> *ptr); <a name="l00181"></a>00181 <span class="keywordtype">double</span> EvaluateSet(<span class="keywordtype">double</span> p[4]); <a name="l00182"></a>00182 <span class="keywordtype">void</span> GetContinuousIncrements(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21083c65ff97d39562e6981dc3e2041b09f">extent</a>[6], <a name="l00183"></a>00183 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &incX, <a name="l00184"></a>00184 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &incY, <a name="l00185"></a>00185 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &incZ); <a name="l00186"></a>00186 <a name="l00187"></a>00187 <span class="comment">// Dimensions:</span> <a name="l00188"></a>00188 <span class="comment">// Specify blocks relative to this top level block.</span> <a name="l00189"></a>00189 <span class="comment">// For now this has to be set before the blocks are defined.</span> <a name="l00190"></a>00190 vtkSetVector3Macro(TopLevelSpacing, <span class="keywordtype">double</span>); <a name="l00191"></a>00191 vtkGetVector3Macro(TopLevelSpacing, <span class="keywordtype">double</span>); <a name="l00192"></a>00192 vtkSetVector3Macro(TopLevelOrigin, <span class="keywordtype">double</span>); <a name="l00193"></a>00193 vtkGetVector3Macro(TopLevelOrigin, <span class="keywordtype">double</span>); <a name="l00194"></a>00194 <a name="l00195"></a>00195 <span class="keywordtype">void</span> InternalImageDataCopy(<a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a> *src); <a name="l00196"></a>00196 <a name="l00197"></a><a class="code" href="a01671.html#c7b0b4d7c6d1e6ca1731644f42505fc8">00197</a> <span class="keywordtype">int</span> Asymetric; <a name="l00198"></a><a class="code" href="a01671.html#803a248ada2696cc2abc1704cfa61fe5">00198</a> <span class="keywordtype">int</span> MaximumLevel; <a name="l00199"></a><a class="code" href="a01671.html#4a6db28c6bcfd4a1591164f270899f35">00199</a> <span class="keywordtype">int</span> Dimensions; <a name="l00200"></a><a class="code" href="a01671.html#dc8c45aecbc2a1b9bbe78411dbccf451">00200</a> <span class="keywordtype">float</span> FractalValue; <a name="l00201"></a><a class="code" href="a01671.html#8a7313451636d41249094d50b539a55d">00201</a> <span class="keywordtype">int</span> GhostLevels; <a name="l00202"></a><a class="code" href="a01671.html#b751a27fae4741d1cbd0ee7869c39f27">00202</a> <a class="code" href="a00900.html" title="dynamic, self-adjusting array of int">vtkIntArray</a> *Levels; <a name="l00203"></a><a class="code" href="a01671.html#e1bca1f8ec201db9de6be14320d669a5">00203</a> <span class="keywordtype">int</span> TwoDimensional; <a name="l00204"></a><a class="code" href="a01671.html#92c3e3e3f929d7ae9553d1832b89548a">00204</a> <span class="keywordtype">int</span> DiscreteTimeSteps; <a name="l00205"></a>00205 <a name="l00206"></a>00206 <span class="comment">// New method of specifing blocks.</span> <a name="l00207"></a><a class="code" href="a01671.html#cd843874c903fdfd84d774e70f3d1aac">00207</a> <span class="keywordtype">double</span> TopLevelSpacing[3]; <a name="l00208"></a><a class="code" href="a01671.html#9098f8e63bcebba6c09a352cde837fd7">00208</a> <span class="keywordtype">double</span> TopLevelOrigin[3]; <a name="l00209"></a>00209 <a name="l00210"></a><a class="code" href="a01671.html#8835e9a6bbba1f838508b55f9cd38261">00210</a> <span class="keywordtype">int</span> GenerateRectilinearGrids; <a name="l00211"></a>00211 <a name="l00212"></a><a class="code" href="a01671.html#7c7b95ae047ad08241f83cfb9e73c24e">00212</a> <span class="keywordtype">double</span> CurrentTime; <a name="l00213"></a>00213 <a name="l00214"></a><a class="code" href="a01671.html#d3501e921106395993fe3fba736ab666">00214</a> <span class="keywordtype">int</span> AdaptiveSubdivision; <a name="l00215"></a>00215 <a name="l00216"></a>00216 <span class="keyword">private</span>: <a name="l00217"></a>00217 <a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a>(<span class="keyword">const</span> <a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a>&); <span class="comment">// Not implemented.</span> <a name="l00218"></a>00218 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01671.html" title="A source to test AMR data object.">vtkTemporalFractal</a>&); <span class="comment">// Not implemented.</span> <a name="l00219"></a>00219 }; <a name="l00220"></a>00220 <a name="l00221"></a>00221 <a name="l00222"></a>00222 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:44 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>