Sophie

Sophie

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

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/vtkDelaunay3D.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/vtkDelaunay3D.h</h1><a href="a02511.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: vtkDelaunay3D.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="l00093"></a>00093 <span class="preprocessor">#ifndef __vtkDelaunay3D_h</span>
<a name="l00094"></a>00094 <span class="preprocessor"></span><span class="preprocessor">#define __vtkDelaunay3D_h</span>
<a name="l00095"></a>00095 <span class="preprocessor"></span>
<a name="l00096"></a>00096 <span class="preprocessor">#include "<a class="code" href="a02396.html">vtkUnstructuredGridAlgorithm.h</a>"</span>
<a name="l00097"></a>00097 
<a name="l00098"></a>00098 <span class="keyword">class </span><a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>;
<a name="l00099"></a>00099 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00100"></a>00100 <span class="keyword">class </span><a class="code" href="a01251.html" title="abstract class for specifying dataset behavior">vtkPointSet</a>;
<a name="l00101"></a>00101 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00102"></a>00102 <span class="keyword">class </span>vtkTetraArray;
<a name="l00103"></a>00103 
<a name="l00104"></a><a class="code" href="a00405.html">00104</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</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="l00105"></a>00105 {
<a name="l00106"></a>00106 <span class="keyword">public</span>:
<a name="l00107"></a><a class="code" href="a00405.html#baf97e139b8343f69a586cb1894d42d1">00107</a>   vtkTypeRevisionMacro(<a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a>,<a class="code" href="a01790.html" title="Superclass for algorithms that produce only unstructured grid as output.">vtkUnstructuredGridAlgorithm</a>);
<a name="l00108"></a>00108   <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="l00109"></a>00109 
<a name="l00112"></a>00112   <span class="keyword">static</span> <a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a> *<a class="code" href="a01790.html#2646137e0d32c31ea2f5d6c36a839c5e">New</a>();
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00119"></a>00119   vtkSetClampMacro(Alpha,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00120"></a>00120   vtkGetMacro(Alpha,<span class="keywordtype">double</span>);
<a name="l00122"></a>00122 
<a name="l00124"></a>00124 
<a name="l00127"></a>00127   vtkSetClampMacro(Tolerance,<span class="keywordtype">double</span>,0.0,1.0);
<a name="l00128"></a>00128   vtkGetMacro(Tolerance,<span class="keywordtype">double</span>);
<a name="l00130"></a>00130 
<a name="l00132"></a>00132 
<a name="l00134"></a>00134   vtkSetClampMacro(Offset,<span class="keywordtype">double</span>,2.5,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00135"></a>00135   vtkGetMacro(Offset,<span class="keywordtype">double</span>);
<a name="l00137"></a>00137 
<a name="l00139"></a>00139 
<a name="l00143"></a>00143   vtkSetMacro(BoundingTriangulation,<span class="keywordtype">int</span>);
<a name="l00144"></a>00144   vtkGetMacro(BoundingTriangulation,<span class="keywordtype">int</span>);
<a name="l00145"></a>00145   vtkBooleanMacro(BoundingTriangulation,<span class="keywordtype">int</span>);
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 
<a name="l00151"></a>00151   <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00152"></a>00152   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00154"></a>00154 
<a name="l00157"></a>00157   <span class="keywordtype">void</span> CreateDefaultLocator();
<a name="l00158"></a>00158 
<a name="l00160"></a>00160 
<a name="l00170"></a>00170   <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *InitPointInsertion(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2107cf190fdac7e1fa1890c67ec92d414d6">center</a>[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21042c5d76c3275f5d17bc1b329d83ab003">length</a>, 
<a name="l00171"></a>00171                                           <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> numPts, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* &amp;pts);
<a name="l00173"></a>00173 
<a name="l00175"></a>00175 
<a name="l00184"></a>00184   <span class="keywordtype">void</span> InsertPoint(<a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *Mesh, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>,
<a name="l00185"></a>00185                    <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <span class="keywordtype">id</span>, <span class="keywordtype">double</span> x[3], <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *holeTetras);
<a name="l00187"></a>00187 
<a name="l00192"></a>00192   <span class="keywordtype">void</span> EndPointInsertion();
<a name="l00193"></a>00193 
<a name="l00195"></a>00195   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00196"></a>00196 
<a name="l00197"></a>00197 <span class="keyword">protected</span>:
<a name="l00198"></a>00198   <a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a>();
<a name="l00199"></a>00199   ~<a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a>();
<a name="l00200"></a>00200 
<a name="l00201"></a>00201   <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="l00202"></a>00202 
<a name="l00203"></a><a class="code" href="a00405.html#c86793a8a3901a68de0e19be910ff303">00203</a>   <span class="keywordtype">double</span> Alpha;
<a name="l00204"></a><a class="code" href="a00405.html#610f5c124401626dcde9b28128ff83ec">00204</a>   <span class="keywordtype">double</span> Tolerance;
<a name="l00205"></a><a class="code" href="a00405.html#3a5cbdcf529fe56d606b6b7adfff376f">00205</a>   <span class="keywordtype">int</span> BoundingTriangulation;
<a name="l00206"></a><a class="code" href="a00405.html#6729305f7eba968b1826a278a1d2962e">00206</a>   <span class="keywordtype">double</span> Offset;
<a name="l00207"></a>00207 
<a name="l00208"></a><a class="code" href="a00405.html#a32926e7a14b3e42a466779d97cbd58d">00208</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;  <span class="comment">//help locate points faster</span>
<a name="l00209"></a>00209   
<a name="l00210"></a><a class="code" href="a00405.html#3f3a1234842f72595827144412c9d8be">00210</a>   vtkTetraArray *TetraArray; <span class="comment">//used to keep track of circumspheres/neighbors</span>
<a name="l00211"></a>00211   <span class="keywordtype">int</span> FindTetra(<a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *Mesh, <span class="keywordtype">double</span> x[3], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> tetId,
<a name="l00212"></a>00212                 <span class="keywordtype">int</span> depth);
<a name="l00213"></a>00213   <span class="keywordtype">int</span> InSphere(<span class="keywordtype">double</span> x[3], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> tetraId);
<a name="l00214"></a>00214   <span class="keywordtype">void</span> InsertTetra(<a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *Mesh, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *pts,
<a name="l00215"></a>00215                    <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> tetraId);
<a name="l00216"></a>00216 
<a name="l00217"></a><a class="code" href="a00405.html#7f3dec04431c55e778b12843367201a5">00217</a>   <span class="keywordtype">int</span> NumberOfDuplicatePoints; <span class="comment">//keep track of bad data</span>
<a name="l00218"></a><a class="code" href="a00405.html#569201dc296bec686b55fe92111ba8de">00218</a>   <span class="keywordtype">int</span> NumberOfDegeneracies;
<a name="l00219"></a>00219 
<a name="l00220"></a>00220   <span class="comment">// Keep track of number of references to points to avoid new/delete calls</span>
<a name="l00221"></a><a class="code" href="a00405.html#9f4420701697ce0aa10873483c3c4f71">00221</a>   <span class="keywordtype">int</span> *References;
<a name="l00222"></a>00222 
<a name="l00223"></a>00223   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> FindEnclosingFaces(<span class="keywordtype">double</span> x[3], <a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a> *Mesh,
<a name="l00224"></a>00224                                <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *tetras, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *faces, 
<a name="l00225"></a>00225                                <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator);
<a name="l00226"></a>00226 
<a name="l00227"></a>00227   <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="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a>*);
<a name="l00228"></a>00228 <span class="keyword">private</span>: <span class="comment">//members added for performance</span>
<a name="l00229"></a>00229   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *Tetras; <span class="comment">//used in InsertPoint</span>
<a name="l00230"></a>00230   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *Faces;  <span class="comment">//used in InsertPoint</span>
<a name="l00231"></a>00231   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *BoundaryPts; <span class="comment">//used by InsertPoint</span>
<a name="l00232"></a>00232   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *CheckedTetras; <span class="comment">//used by InsertPoint</span>
<a name="l00233"></a>00233   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *NeiTetras; <span class="comment">//used by InsertPoint</span>
<a name="l00234"></a>00234 
<a name="l00235"></a>00235 <span class="keyword">private</span>:
<a name="l00236"></a>00236   <a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a>(<span class="keyword">const</span> <a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00237"></a>00237   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00405.html" title="create 3D Delaunay triangulation of input points">vtkDelaunay3D</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00238"></a>00238 };
<a name="l00239"></a>00239 
<a name="l00240"></a>00240 <span class="preprocessor">#endif</span>
<a name="l00241"></a>00241 <span class="preprocessor"></span>
<a name="l00242"></a>00242 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:26 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>