Sophie

Sophie

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

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/Graphics/vtkHyperOctreeSampleFunction.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/Graphics/vtkHyperOctreeSampleFunction.h</h1><a href="a02571.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: vtkHyperOctreeSampleFunction.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="l00031"></a>00031 <span class="preprocessor">#ifndef __vtkHyperOctreeSampleFunction_h</span>
<a name="l00032"></a>00032 <span class="preprocessor"></span><span class="preprocessor">#define __vtkHyperOctreeSampleFunction_h</span>
<a name="l00033"></a>00033 <span class="preprocessor"></span>
<a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="a02273.html">vtkHyperOctreeAlgorithm.h</a>"</span>
<a name="l00035"></a>00035 
<a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>;
<a name="l00037"></a>00037 
<a name="l00038"></a><a class="code" href="a00711.html">00038</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</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="l00039"></a>00039 {
<a name="l00040"></a>00040 <span class="keyword">public</span>:
<a name="l00041"></a><a class="code" href="a00711.html#9b75832847f3bcfd6f856ab77120c8a6">00041</a>   vtkTypeRevisionMacro(<a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a>,<a class="code" href="a00700.html" title="Superclass for algorithms that produce only octree as output.">vtkHyperOctreeAlgorithm</a>);
<a name="l00042"></a>00042   <span class="keywordtype">void</span> <a class="code" href="a00700.html#2fdbdc94acf067305d4e3b99b9978b71">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00043"></a>00043   
<a name="l00044"></a>00044   <span class="keyword">static</span> <a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a> *<a class="code" href="a00101.html#06d80d8d4aa1a4856135fa003845be82">New</a>();
<a name="l00045"></a>00045 
<a name="l00048"></a>00048   <span class="keywordtype">int</span> GetLevels();
<a name="l00049"></a>00049   
<a name="l00054"></a>00054   <span class="keywordtype">void</span> SetLevels(<span class="keywordtype">int</span> levels);
<a name="l00055"></a>00055   
<a name="l00058"></a>00058   <span class="keywordtype">int</span> GetMinLevels();
<a name="l00059"></a>00059   
<a name="l00063"></a>00063   <span class="keywordtype">void</span> SetMinLevels(<span class="keywordtype">int</span> minLevels);
<a name="l00064"></a>00064   
<a name="l00067"></a>00067   <span class="keywordtype">double</span> GetThreshold();
<a name="l00068"></a>00068   
<a name="l00072"></a>00072   <span class="keywordtype">void</span> SetThreshold(<span class="keywordtype">double</span> threshold);
<a name="l00073"></a>00073   
<a name="l00077"></a>00077   <span class="keywordtype">int</span> GetDimension();
<a name="l00078"></a>00078   
<a name="l00079"></a>00079    <span class="comment">// Set the dimension of the tree with `dim'. See GetDimension() for details.</span>
<a name="l00080"></a>00080   <span class="comment">// \pre valid_dim: dim&gt;=1 &amp;&amp; dim&lt;=3</span>
<a name="l00081"></a>00081   <span class="comment">// \post dimension_is_set: GetDimension()==dim</span>
<a name="l00082"></a>00082   <span class="keywordtype">void</span> SetDimension(<span class="keywordtype">int</span> dim);
<a name="l00083"></a>00083     
<a name="l00085"></a>00085 
<a name="l00086"></a>00086   vtkSetVector3Macro(Size,<span class="keywordtype">double</span>);
<a name="l00088"></a>00088   
<a name="l00090"></a>00090 
<a name="l00091"></a>00091   vtkGetVector3Macro(Size,<span class="keywordtype">double</span>);
<a name="l00093"></a>00093   
<a name="l00095"></a>00095 
<a name="l00096"></a>00096   vtkSetVector3Macro(Origin,<span class="keywordtype">double</span>);
<a name="l00097"></a>00097   <span class="comment">// Return the origin (position of corner (0,0,0) ) of the root.</span>
<a name="l00098"></a>00098   vtkGetVector3Macro(Origin,<span class="keywordtype">double</span>);
<a name="l00100"></a>00100   
<a name="l00102"></a>00102   <span class="keywordtype">double</span> GetWidth();
<a name="l00103"></a>00103   
<a name="l00106"></a>00106   <span class="keywordtype">void</span> SetWidth(<span class="keywordtype">double</span> width);
<a name="l00107"></a>00107   
<a name="l00110"></a>00110   <span class="keywordtype">double</span> GetHeight();
<a name="l00111"></a>00111   
<a name="l00115"></a>00115   <span class="keywordtype">void</span> SetHeight(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c076ccbe549041286aaf7bc34202ebdf">height</a>);
<a name="l00116"></a>00116   
<a name="l00119"></a>00119   <span class="keywordtype">double</span> GetDepth();
<a name="l00120"></a>00120   
<a name="l00124"></a>00124   <span class="keywordtype">void</span> SetDepth(<span class="keywordtype">double</span> depth);
<a name="l00125"></a>00125   
<a name="l00127"></a>00127 
<a name="l00128"></a>00128   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetImplicitFunction(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>*);
<a name="l00129"></a>00129   vtkGetObjectMacro(ImplicitFunction,<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>);
<a name="l00131"></a>00131 
<a name="l00133"></a>00133 
<a name="l00134"></a>00134   vtkSetMacro(OutputScalarType,<span class="keywordtype">int</span>);
<a name="l00135"></a>00135   vtkGetMacro(OutputScalarType,<span class="keywordtype">int</span>);
<a name="l00136"></a><a class="code" href="a00711.html#23fc27257ecebc071690577ab4864313">00136</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToDouble()
<a name="l00137"></a>00137     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#65081589ba940a5cf4aeb95b6be1f613">VTK_DOUBLE</a>);}
<a name="l00138"></a><a class="code" href="a00711.html#43f3e82f5553b96b69bfde4a857bfc96">00138</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToFloat()
<a name="l00139"></a>00139     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#aa048913d336249efc600e3c5a144c42">VTK_FLOAT</a>);}
<a name="l00140"></a><a class="code" href="a00711.html#381984f4bd21e7759ed5445a03419cef">00140</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToLong()
<a name="l00141"></a>00141     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#f33bc6447a030837b20f8096b23bfc71">VTK_LONG</a>);}
<a name="l00142"></a><a class="code" href="a00711.html#1bd0dae3f667b144a5e46a7ff1dd92e5">00142</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToUnsignedLong()
<a name="l00143"></a>00143     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#afde7770485a91b9dd308163b5a6b95d">VTK_UNSIGNED_LONG</a>);};
<a name="l00144"></a><a class="code" href="a00711.html#1be917e8781e3706c979b331d516fd4d">00144</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToInt()
<a name="l00145"></a>00145     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#95206d824b282a36f88c301c58d91964">VTK_INT</a>);}
<a name="l00146"></a><a class="code" href="a00711.html#ff1acf9bb9baa99ec27ec8f5acaf457b">00146</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToUnsignedInt()
<a name="l00147"></a>00147     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#3383756325aeef3742d42d933a0c9d1d">VTK_UNSIGNED_INT</a>);}
<a name="l00148"></a><a class="code" href="a00711.html#f71c06ed192c11d500995ca2014eca0b">00148</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToShort()
<a name="l00149"></a>00149     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#16468f12840502cb95648b1299f7f26e">VTK_SHORT</a>);}
<a name="l00150"></a><a class="code" href="a00711.html#d02a6e53b4b4ddf434f87aabcf5030c8">00150</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToUnsignedShort()
<a name="l00151"></a>00151     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#725b04f63c9f8fbf28fc8fd56b9d9392">VTK_UNSIGNED_SHORT</a>);}
<a name="l00152"></a><a class="code" href="a00711.html#016198c0e1904d21c3910cd4f8934f72">00152</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToChar()
<a name="l00153"></a>00153     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#acfbd1a27646a206528eda8aecd570d9">VTK_CHAR</a>);}
<a name="l00154"></a><a class="code" href="a00711.html#af05af2c7fb06e3a8b453eac0b75ae4f">00154</a>   <span class="keywordtype">void</span> SetOutputScalarTypeToUnsignedChar()
<a name="l00155"></a>00155     {this-&gt;SetOutputScalarType(<a class="code" href="a02149.html#69e20baa3fd444e25ba1a5fc30bd29d5">VTK_UNSIGNED_CHAR</a>);}
<a name="l00157"></a>00157 
<a name="l00159"></a>00159   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00160"></a>00160 
<a name="l00161"></a>00161 <span class="keyword">protected</span>:
<a name="l00163"></a>00163 
<a name="l00166"></a>00166   <a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a>();
<a name="l00167"></a>00167   ~<a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a>();
<a name="l00169"></a>00169   
<a name="l00170"></a>00170 
<a name="l00171"></a>00171   <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="l00172"></a>00172                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> ** vtkNotUsed( inputVector ),
<a name="l00173"></a>00173                           <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *outputVector);
<a name="l00174"></a>00174   
<a name="l00175"></a>00175   <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 class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00176"></a>00176 
<a name="l00177"></a>00177   <span class="keywordtype">void</span> Subdivide(<a class="code" href="a00703.html" title="Objects that can traverse hyperoctree nodes.">vtkHyperOctreeCursor</a> *cursor,
<a name="l00178"></a>00178                  <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>,
<a name="l00179"></a>00179                  <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="l00180"></a>00180   
<a name="l00181"></a><a class="code" href="a00711.html#04264cd741cfdee0c7cbb005a7d034e2">00181</a>   <span class="keywordtype">int</span> Dimension;
<a name="l00182"></a><a class="code" href="a00711.html#b25fccefc85925de736b327603a153ac">00182</a>   <span class="keywordtype">double</span> Size[3]; <span class="comment">// size on each axis</span>
<a name="l00183"></a><a class="code" href="a00711.html#393b016ae0381ad08a1a19d7c0c22b24">00183</a>   <span class="keywordtype">double</span> Origin[3]; <span class="comment">// position of corner (0,0,0) of the root.</span>
<a name="l00184"></a><a class="code" href="a00711.html#d5e395c45eefe9e6ddb1f9b14645b19f">00184</a>   <span class="keywordtype">int</span> Levels;
<a name="l00185"></a><a class="code" href="a00711.html#c5a8a6b07d1c26072559b82d0dc35c53">00185</a>   <span class="keywordtype">int</span> MinLevels;
<a name="l00186"></a>00186   
<a name="l00187"></a><a class="code" href="a00711.html#6ddfe1ff5f9db9509be67d0302840788">00187</a>   <span class="keywordtype">int</span> OutputScalarType;
<a name="l00188"></a><a class="code" href="a00711.html#e0588ff38f5d20508d2975f13e8c4e74">00188</a>   <a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *ImplicitFunction;
<a name="l00189"></a><a class="code" href="a00711.html#e0e1861fc913aa25082a4c77c69224f5">00189</a>   <span class="keywordtype">double</span> Threshold;
<a name="l00190"></a>00190   
<a name="l00191"></a>00191 <span class="keyword">private</span>:
<a name="l00192"></a>00192   <a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a>(<span class="keyword">const</span> <a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00193"></a>00193   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00711.html" title="sample an implicit function over an hyperoctree">vtkHyperOctreeSampleFunction</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00194"></a>00194 };
<a name="l00195"></a>00195 
<a name="l00196"></a>00196 <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&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>