Sophie

Sophie

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

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/vtkClipHyperOctree.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/vtkClipHyperOctree.h</h1><a href="a02485.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: vtkClipHyperOctree.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="l00062"></a>00062 <span class="preprocessor">#ifndef __vtkClipHyperOctree_h</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#define __vtkClipHyperOctree_h</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>
<a name="l00065"></a>00065 <span class="preprocessor">#include "<a class="code" href="a02396.html">vtkUnstructuredGridAlgorithm.h</a>"</span>
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>;
<a name="l00068"></a>00068 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00069"></a>00069 <span class="keyword">class </span><a class="code" href="a00703.html" title="Objects that can traverse hyperoctree nodes.">vtkHyperOctreeCursor</a>;
<a name="l00070"></a>00070 <span class="keyword">class </span><a class="code" href="a00699.html" title="A dataset structured as a tree where each node has exactly 2^n children.">vtkHyperOctree</a>;
<a name="l00071"></a>00071 <span class="keyword">class </span><a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a>;
<a name="l00072"></a>00072 <span class="keyword">class </span><a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a>;
<a name="l00073"></a>00073 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>;
<a name="l00074"></a>00074 <span class="keyword">class </span><a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>;
<a name="l00075"></a>00075 <span class="keyword">class </span><a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>;
<a name="l00076"></a>00076 <span class="keyword">class </span><a class="code" href="a01128.html" title="helper class to generate triangulations">vtkOrderedTriangulator</a>;
<a name="l00077"></a>00077 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>;
<a name="l00078"></a>00078 <span class="keyword">class </span><a class="code" href="a01688.html" title="a 3D cell that represents a tetrahedron">vtkTetra</a>;
<a name="l00079"></a>00079 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00080"></a>00080 <span class="keyword">class </span><a class="code" href="a01278.html" title="a cell that represents an n-sided polygon">vtkPolygon</a>;
<a name="l00081"></a>00081 <span class="keyword">class </span><a class="code" href="a00701.html" title="A concrete implementation of vtkHyperOctreePointsGrabber used by vtkClipHyperOctree...">vtkHyperOctreeClipCutPointsGrabber</a>;
<a name="l00082"></a>00082 
<a name="l00083"></a><a class="code" href="a00271.html">00083</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a> : <span class="keyword">public</span> <a class="code" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output.">vtkUnstructuredGridAlgorithm</a>
<a name="l00084"></a>00084 {
<a name="l00085"></a>00085 <span class="keyword">public</span>:
<a name="l00086"></a><a class="code" href="a00271.html#7394a868893a398884e75bcc4edc3e11">00086</a>   vtkTypeRevisionMacro(<a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a>,<a class="code" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output.">vtkUnstructuredGridAlgorithm</a>);
<a name="l00087"></a>00087   <span class="keywordtype">void</span> <a class="code" href="a01790.html#13d193ef6fd94356f3306d3e799bc9cc">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00088"></a>00088 
<a name="l00091"></a>00091   <span class="keyword">static</span> <a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a> *<a class="code" href="a01790.html#2646137e0d32c31ea2f5d6c36a839c5e">New</a>();
<a name="l00092"></a>00092 
<a name="l00094"></a>00094 
<a name="l00097"></a>00097   vtkSetMacro(Value,<span class="keywordtype">double</span>);
<a name="l00098"></a>00098   vtkGetMacro(Value,<span class="keywordtype">double</span>);
<a name="l00100"></a>00100   
<a name="l00102"></a>00102 
<a name="l00107"></a>00107   vtkSetMacro(InsideOut,<span class="keywordtype">int</span>);
<a name="l00108"></a>00108   vtkGetMacro(InsideOut,<span class="keywordtype">int</span>);
<a name="l00109"></a>00109   vtkBooleanMacro(InsideOut,<span class="keywordtype">int</span>);
<a name="l00111"></a>00111 
<a name="l00113"></a>00113 
<a name="l00116"></a>00116   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetClipFunction(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>*);
<a name="l00117"></a>00117   vtkGetObjectMacro(ClipFunction,<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a>);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121 
<a name="l00125"></a>00125   vtkSetMacro(GenerateClipScalars,<span class="keywordtype">int</span>);
<a name="l00126"></a>00126   vtkGetMacro(GenerateClipScalars,<span class="keywordtype">int</span>);
<a name="l00127"></a>00127   vtkBooleanMacro(GenerateClipScalars,<span class="keywordtype">int</span>);
<a name="l00129"></a>00129 
<a name="l00131"></a>00131 
<a name="l00133"></a>00133   vtkSetMacro(GenerateClippedOutput,<span class="keywordtype">int</span>);
<a name="l00134"></a>00134   vtkGetMacro(GenerateClippedOutput,<span class="keywordtype">int</span>);
<a name="l00135"></a>00135   vtkBooleanMacro(GenerateClippedOutput,<span class="keywordtype">int</span>);
<a name="l00137"></a>00137   
<a name="l00139"></a>00139   <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *GetClippedOutput();
<a name="l00140"></a>00140 
<a name="l00142"></a>00142 
<a name="l00144"></a>00144   <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00145"></a>00145   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00147"></a>00147 
<a name="l00150"></a>00150   <span class="keywordtype">void</span> CreateDefaultLocator();
<a name="l00151"></a>00151 
<a name="l00153"></a>00153   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00154"></a>00154 
<a name="l00155"></a>00155 <span class="keyword">protected</span>:
<a name="l00156"></a>00156   <a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a>(<a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *cf=NULL);
<a name="l00157"></a>00157   ~<a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a>();
<a name="l00158"></a>00158 
<a name="l00159"></a>00159   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01790.html#c245179e9e4f4d4f83bf29fd4933b985">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="l00160"></a>00160   
<a name="l00162"></a>00162 
<a name="l00164"></a>00164   <span class="keywordtype">void</span> ClipNode(<a class="code" href="a00703.html" title="Objects that can traverse hyperoctree nodes.">vtkHyperOctreeCursor</a> *cursor,
<a name="l00165"></a>00165                 <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>,
<a name="l00166"></a>00166                 <span class="keywordtype">double</span> bounds[6]);
<a name="l00168"></a>00168   
<a name="l00169"></a>00169   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01790.html#1eb860b284f61b78bd00d5776545bd87">FillInputPortInformation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>);
<a name="l00170"></a><a class="code" href="a00271.html#175ab0a7766a3cc04b54d9effbb16b7b">00170</a>   <a class="code" href="a00855.html" title="abstract interface for implicit functions">vtkImplicitFunction</a> *ClipFunction;
<a name="l00171"></a>00171   
<a name="l00172"></a><a class="code" href="a00271.html#ebea18cb2848cc726e13306a7ab4f471">00172</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;
<a name="l00173"></a><a class="code" href="a00271.html#a2240625d940e106815928d7a14f574d">00173</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator2; <span class="comment">// used for the clipped output</span>
<a name="l00174"></a>00174   
<a name="l00175"></a><a class="code" href="a00271.html#0499fcb9c0714ec0749487191541a8d5">00175</a>   <span class="keywordtype">int</span> InsideOut;
<a name="l00176"></a><a class="code" href="a00271.html#a3dcfcf60d5ab62a463239e9741dae1c">00176</a>   <span class="keywordtype">double</span> Value;
<a name="l00177"></a><a class="code" href="a00271.html#3b790c0277feb15797893b8dd8a136f4">00177</a>   <span class="keywordtype">int</span> GenerateClipScalars;
<a name="l00178"></a>00178 
<a name="l00179"></a><a class="code" href="a00271.html#1238fa637120a53163b7d62e13833d57">00179</a>   <span class="keywordtype">int</span> GenerateClippedOutput;
<a name="l00180"></a>00180   
<a name="l00181"></a><a class="code" href="a00271.html#bd5e103ee4f18aaf9c74892cc914abf7">00181</a>   <a class="code" href="a00699.html" title="A dataset structured as a tree where each node has exactly 2^n children.">vtkHyperOctree</a> *Input;
<a name="l00182"></a><a class="code" href="a00271.html#c7d6dd663f6b809d6d13032d2f2a1b46">00182</a>   <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *Output;
<a name="l00183"></a><a class="code" href="a00271.html#6c310d3b26404900308e4989f7930e2e">00183</a>   <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *ClippedOutput;
<a name="l00184"></a>00184   
<a name="l00185"></a><a class="code" href="a00271.html#c087b438281d4844ee438dcef936a120">00185</a>   <a class="code" href="a01784.html" title="dynamic, self-adjusting array of unsigned char">vtkUnsignedCharArray</a> *Types[2];
<a name="l00186"></a><a class="code" href="a00271.html#8a472c0ba3baf9559f24de90e5b0e884">00186</a>   <a class="code" href="a00722.html" title="dynamic, self-adjusting array of vtkIdType">vtkIdTypeArray</a> *Locs[2];
<a name="l00187"></a><a class="code" href="a00271.html#a370be546e1c70ff6a3bddc92636284b">00187</a>   <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *Conn[2];
<a name="l00188"></a><a class="code" href="a00271.html#1c3055c67d483a36a22f3e7205a78190">00188</a>   <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a> *InCD;
<a name="l00189"></a><a class="code" href="a00271.html#51fd85d4543b89d9b3c78b4e924e45bc">00189</a>   <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a> *OutCD[2];
<a name="l00190"></a><a class="code" href="a00271.html#3dae3c3e9ed571c19f8c297c5180f83a">00190</a>   <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *OutPD[2];
<a name="l00191"></a><a class="code" href="a00271.html#ddff121fa8cbeffaedb7e2a4886643ee">00191</a>   <a class="code" href="a01128.html" title="helper class to generate triangulations">vtkOrderedTriangulator</a> *Triangulator;
<a name="l00192"></a>00192   
<a name="l00193"></a><a class="code" href="a00271.html#da03da5a01d99e5ba83eff3eb72b65b2">00193</a>   <a class="code" href="a00703.html" title="Objects that can traverse hyperoctree nodes.">vtkHyperOctreeCursor</a> *Sibling; <span class="comment">// to avoid allocation in the loop</span>
<a name="l00194"></a>00194   
<a name="l00195"></a><a class="code" href="a00271.html#656e22c797ea4f594f22f7c4e67d6b32">00195</a>   <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> *CellScalars;
<a name="l00196"></a><a class="code" href="a00271.html#dd1ee3d8db2d1c0e2b9d406a901260ac">00196</a>   <a class="code" href="a01688.html" title="a 3D cell that represents a tetrahedron">vtkTetra</a> *Tetra;
<a name="l00197"></a><a class="code" href="a00271.html#c4755c84d2a0ea410f035c607f18aab6">00197</a>   <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> *TetScalars;
<a name="l00198"></a>00198   
<a name="l00199"></a><a class="code" href="a00271.html#6d4d8748794229a679e65fa432466436">00199</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *Pts;
<a name="l00200"></a><a class="code" href="a00271.html#4f1de5a3e57cabee6e26adf136e8b902">00200</a>   <a class="code" href="a01278.html" title="a cell that represents an n-sided polygon">vtkPolygon</a> *Polygon;
<a name="l00201"></a>00201   
<a name="l00202"></a><a class="code" href="a00271.html#e2bee7856b18084800d7a88e33844670">00202</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> CellTypeCounter[65536]; <span class="comment">// up-to-65536 points per octant</span>
<a name="l00203"></a><a class="code" href="a00271.html#e5e02abfc678b1d435f076511a5171a8">00203</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> TotalCounter;
<a name="l00204"></a><a class="code" href="a00271.html#e7331568aebde7e9b9bfcbc5db6d5d59">00204</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> TemplateCounter; <span class="comment">// record the number of octants that succceed</span>
<a name="l00205"></a>00205   <span class="comment">// to use the template triangulator</span>
<a name="l00206"></a>00206   
<a name="l00207"></a><a class="code" href="a00271.html#42e07f8b346a1cfcbb4915df202d3be5">00207</a>   <a class="code" href="a00701.html" title="A concrete implementation of vtkHyperOctreePointsGrabber used by vtkClipHyperOctree...">vtkHyperOctreeClipCutPointsGrabber</a> *Grabber;
<a name="l00208"></a>00208   
<a name="l00209"></a>00209 <span class="keyword">private</span>:
<a name="l00210"></a>00210   <a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a>(<span class="keyword">const</span> <a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00211"></a>00211   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00271.html" title="clip an hyperoctree with user-specified implicit function or input scalar data">vtkClipHyperOctree</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00212"></a>00212 };
<a name="l00213"></a>00213 
<a name="l00214"></a>00214 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:25 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>