Sophie

Sophie

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

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/vtkOBBTree.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/vtkOBBTree.h</h1><a href="a02606.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: vtkOBBTree.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="l00055"></a>00055 <span class="preprocessor">#ifndef __vtkOBBTree_h</span>
<a name="l00056"></a>00056 <span class="preprocessor"></span><span class="preprocessor">#define __vtkOBBTree_h</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span>
<a name="l00058"></a>00058 <span class="preprocessor">#include "<a class="code" href="a02183.html">vtkAbstractCellLocator.h</a>"</span>
<a name="l00059"></a>00059 
<a name="l00060"></a>00060 <span class="keyword">class </span><a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a>;
<a name="l00061"></a>00061 
<a name="l00062"></a>00062 <span class="comment">// Special class defines node for the OBB tree</span>
<a name="l00063"></a>00063 <span class="comment">//</span>
<a name="l00064"></a>00064 <span class="comment">//BTX</span>
<a name="l00065"></a>00065 <span class="comment">//</span>
<a name="l00066"></a><a class="code" href="a01082.html">00066</a> <span class="keyword">class </span><a class="code" href="a01082.html">vtkOBBNode</a> { <span class="comment">//;prevent man page generation</span>
<a name="l00067"></a>00067 <span class="keyword">public</span>:
<a name="l00068"></a>00068   <a class="code" href="a01082.html#a43691318396d87dd8d66bb8e03e0a6c">vtkOBBNode</a>();
<a name="l00069"></a>00069   <a class="code" href="a01082.html#30a60f6958ed490659ceb1e295d7a482">~vtkOBBNode</a>();
<a name="l00070"></a>00070 
<a name="l00071"></a><a class="code" href="a01082.html#6bc484f69c99a84a128f479af4edfa32">00071</a>   <span class="keywordtype">double</span> <a class="code" href="a01082.html#6bc484f69c99a84a128f479af4edfa32">Corner</a>[3]; <span class="comment">//center point of this node</span>
<a name="l00072"></a><a class="code" href="a01082.html#0736841a398ef1ec11f76207427f3950">00072</a>   <span class="keywordtype">double</span> <a class="code" href="a01082.html#0736841a398ef1ec11f76207427f3950">Axes</a>[3][3]; <span class="comment">//the axes defining the OBB - ordered from long-&gt;short</span>
<a name="l00073"></a><a class="code" href="a01082.html#58f55b8f4210fba2d50f24e4429cef7c">00073</a>   <a class="code" href="a01082.html">vtkOBBNode</a> *<a class="code" href="a01082.html#58f55b8f4210fba2d50f24e4429cef7c">Parent</a>; <span class="comment">//parent node; NULL if root</span>
<a name="l00074"></a><a class="code" href="a01082.html#e0d7394c3d5acb8d9185165cdf18fbe0">00074</a>   <a class="code" href="a01082.html">vtkOBBNode</a> **<a class="code" href="a01082.html#e0d7394c3d5acb8d9185165cdf18fbe0">Kids</a>; <span class="comment">//two children of this node; NULL if leaf</span>
<a name="l00075"></a><a class="code" href="a01082.html#84fb0dbafe2dd5a2d7ab44080e106e20">00075</a>   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *<a class="code" href="a01082.html#84fb0dbafe2dd5a2d7ab44080e106e20">Cells</a>; <span class="comment">//list of cells in node</span>
<a name="l00076"></a>00076   <span class="keywordtype">void</span> <a class="code" href="a01082.html#db68019d9e271aff9b98db50e886947d">DebugPrintTree</a>( <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">double</span> *leaf_vol, <span class="keywordtype">int</span> *minCells,
<a name="l00077"></a>00077                        <span class="keywordtype">int</span> *maxCells );
<a name="l00078"></a>00078 };
<a name="l00079"></a>00079 <span class="comment">//ETX</span>
<a name="l00080"></a>00080 <span class="comment">//</span>
<a name="l00081"></a>00081 
<a name="l00082"></a><a class="code" href="a01083.html">00082</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a> : <span class="keyword">public</span> <a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>
<a name="l00083"></a>00083 {
<a name="l00084"></a>00084 <span class="keyword">public</span>:
<a name="l00085"></a><a class="code" href="a01083.html#198c50eb604e9a0e3414e5928c75e62f">00085</a>   vtkTypeRevisionMacro(<a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a>,<a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>);
<a name="l00086"></a>00086   <span class="keywordtype">void</span> <a class="code" href="a00082.html#af438f1576c1676b6acc42ecf64a11dd">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00087"></a>00087 
<a name="l00090"></a>00090   <span class="keyword">static</span> <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00091"></a>00091 
<a name="l00092"></a>00092 <span class="comment">//BTX</span>
<a name="l00093"></a>00093 <span class="comment">/*</span>
<a name="l00094"></a>00094 <span class="comment">  if the borland compiler is ever removed, we can use these declarations</span>
<a name="l00095"></a>00095 <span class="comment">  instead of reimplementaing the calls in this subclass</span>
<a name="l00096"></a>00096 <span class="comment">  using vtkAbstractCellLocator::IntersectWithLine;</span>
<a name="l00097"></a>00097 <span class="comment">  using vtkAbstractCellLocator::FindClosestPoint;</span>
<a name="l00098"></a>00098 <span class="comment">  using vtkAbstractCellLocator::FindClosestPointWithinRadius;</span>
<a name="l00099"></a>00099 <span class="comment">*/</span>
<a name="l00100"></a>00100 <span class="comment">//ETX</span>
<a name="l00101"></a>00101 
<a name="l00103"></a>00103 
<a name="l00104"></a><a class="code" href="a01083.html#e706abdc833e0365444cd2c1df1c8966">00104</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00082.html#94841c697d05cc9a20f108e8bdfb7235">IntersectWithLine</a>(
<a name="l00105"></a>00105     <span class="keywordtype">double</span> a0[3], <span class="keywordtype">double</span> a1[3], <span class="keywordtype">double</span> tol,
<a name="l00106"></a>00106     <span class="keywordtype">double</span>&amp; t, <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> pcoords[3],
<a name="l00107"></a>00107     <span class="keywordtype">int</span> &amp;subId) 
<a name="l00108"></a>00108   {
<a name="l00109"></a>00109     <span class="keywordflow">return</span> Superclass::
<a name="l00110"></a>00110       IntersectWithLine(a0, a1, tol,t, x, pcoords, subId);
<a name="l00111"></a>00111   }
<a name="l00113"></a>00113 
<a name="l00115"></a>00115 
<a name="l00116"></a><a class="code" href="a01083.html#2b2d9174fa6fac5268b44f57f1ffb005">00116</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00082.html#94841c697d05cc9a20f108e8bdfb7235">IntersectWithLine</a>(
<a name="l00117"></a>00117     <span class="keywordtype">double</span> a0[3], <span class="keywordtype">double</span> a1[3], <span class="keywordtype">double</span> tol,
<a name="l00118"></a>00118     <span class="keywordtype">double</span>&amp; t, <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> pcoords[3],
<a name="l00119"></a>00119     <span class="keywordtype">int</span> &amp;subId, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId)
<a name="l00120"></a>00120   {
<a name="l00121"></a>00121     <span class="keywordflow">return</span> Superclass::
<a name="l00122"></a>00122       IntersectWithLine(a0, a1, tol,t, x, pcoords, subId, cellId);
<a name="l00123"></a>00123   }
<a name="l00125"></a>00125 
<a name="l00127"></a>00127 
<a name="l00135"></a>00135   <span class="keywordtype">int</span> <a class="code" href="a00082.html#94841c697d05cc9a20f108e8bdfb7235">IntersectWithLine</a>(<span class="keyword">const</span> <span class="keywordtype">double</span> a0[3], <span class="keyword">const</span> <span class="keywordtype">double</span> a1[3],
<a name="l00136"></a>00136                         <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cellIds);
<a name="l00138"></a>00138 
<a name="l00140"></a>00140 
<a name="l00143"></a>00143   <span class="keywordtype">int</span> <a class="code" href="a00082.html#94841c697d05cc9a20f108e8bdfb7235">IntersectWithLine</a>(<span class="keywordtype">double</span> a0[3], <span class="keywordtype">double</span> a1[3], <span class="keywordtype">double</span> tol,
<a name="l00144"></a>00144                         <span class="keywordtype">double</span>&amp; t, <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> pcoords[3],
<a name="l00145"></a>00145                         <span class="keywordtype">int</span> &amp;subId, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *cell);
<a name="l00147"></a>00147 
<a name="l00149"></a>00149 
<a name="l00158"></a><a class="code" href="a01083.html#02f5f168e82e368d2af372ceddf2a017">00158</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00082.html#2905b926fba483ce5cc8ae55a9e114d5">FindClosestPoint</a>(
<a name="l00159"></a>00159     <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> closestPoint[3],
<a name="l00160"></a>00160     <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId, <span class="keywordtype">int</span> &amp;subId, <span class="keywordtype">double</span>&amp; dist2)
<a name="l00161"></a>00161   {
<a name="l00162"></a>00162     Superclass::
<a name="l00163"></a>00163       FindClosestPoint(x, closestPoint, cellId, subId, dist2);
<a name="l00164"></a>00164   }
<a name="l00166"></a>00166   
<a name="l00168"></a>00168 
<a name="l00169"></a><a class="code" href="a01083.html#afa42c16ca460bc6ec7b652f975abf52">00169</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00082.html#2905b926fba483ce5cc8ae55a9e114d5">FindClosestPoint</a>(
<a name="l00170"></a>00170     <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> closestPoint[3],
<a name="l00171"></a>00171     <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *cell, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId, 
<a name="l00172"></a>00172     <span class="keywordtype">int</span> &amp;subId, <span class="keywordtype">double</span>&amp; dist2)
<a name="l00173"></a>00173   {
<a name="l00174"></a>00174     Superclass::
<a name="l00175"></a>00175       FindClosestPoint(x, closestPoint, cell, cellId, subId, dist2);
<a name="l00176"></a>00176   }
<a name="l00178"></a>00178 
<a name="l00180"></a>00180 
<a name="l00181"></a><a class="code" href="a01083.html#4e1cd10d260cf194ff99f5fed1420f26">00181</a>   <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00082.html#ab50afea95c3e0076247b353ed92b341">FindClosestPointWithinRadius</a>(
<a name="l00182"></a>00182     <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>,
<a name="l00183"></a>00183     <span class="keywordtype">double</span> closestPoint[3], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId,
<a name="l00184"></a>00184     <span class="keywordtype">int</span> &amp;subId, <span class="keywordtype">double</span>&amp; dist2)
<a name="l00185"></a>00185   {
<a name="l00186"></a>00186     <span class="keywordflow">return</span> Superclass::FindClosestPointWithinRadius
<a name="l00187"></a>00187       (x, radius, closestPoint, cellId, subId, dist2);
<a name="l00188"></a>00188   }
<a name="l00190"></a>00190  
<a name="l00192"></a>00192 
<a name="l00193"></a><a class="code" href="a01083.html#65b2a3afae0338ea83e0cc53692431db">00193</a>   <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00082.html#ab50afea95c3e0076247b353ed92b341">FindClosestPointWithinRadius</a>(
<a name="l00194"></a>00194     <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>,
<a name="l00195"></a>00195     <span class="keywordtype">double</span> closestPoint[3],
<a name="l00196"></a>00196     <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *cell, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId,
<a name="l00197"></a>00197     <span class="keywordtype">int</span> &amp;subId, <span class="keywordtype">double</span>&amp; dist2)
<a name="l00198"></a>00198   {
<a name="l00199"></a>00199     <span class="keywordflow">return</span> Superclass::FindClosestPointWithinRadius
<a name="l00200"></a>00200       (x, radius, closestPoint, cell, cellId, subId, dist2);
<a name="l00201"></a>00201   }
<a name="l00203"></a>00203 
<a name="l00205"></a>00205 
<a name="l00206"></a><a class="code" href="a01083.html#56e332849604ac25f3f666b91f65e0e3">00206</a>   <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a00082.html#ab50afea95c3e0076247b353ed92b341">FindClosestPointWithinRadius</a>(
<a name="l00207"></a>00207     <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>, <span class="keywordtype">double</span> closestPoint[3],
<a name="l00208"></a>00208     <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *cell, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &amp;cellId,
<a name="l00209"></a>00209     <span class="keywordtype">int</span> &amp;subId, <span class="keywordtype">double</span>&amp; dist2, <span class="keywordtype">int</span> &amp;inside)
<a name="l00210"></a>00210   {
<a name="l00211"></a>00211     <span class="keywordflow">return</span> Superclass::FindClosestPointWithinRadius
<a name="l00212"></a>00212       (x, radius, closestPoint, cell, cellId, subId, dist2, inside);
<a name="l00213"></a>00213   }
<a name="l00215"></a>00215   
<a name="l00217"></a>00217 
<a name="l00220"></a>00220   <span class="keywordtype">void</span> ComputeOBB(<a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *pts, <span class="keywordtype">double</span> corner[3], <span class="keywordtype">double</span> <a class="code" href="a02864.html#ffe776513b24d84b39af8ab0930fef7f">max</a>[3], 
<a name="l00221"></a>00221                   <span class="keywordtype">double</span> mid[3], <span class="keywordtype">double</span> min[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[3]);
<a name="l00223"></a>00223 
<a name="l00225"></a>00225 
<a name="l00229"></a>00229   <span class="keywordtype">void</span> ComputeOBB(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input, <span class="keywordtype">double</span> corner[3], <span class="keywordtype">double</span> <a class="code" href="a02864.html#ffe776513b24d84b39af8ab0930fef7f">max</a>[3],
<a name="l00230"></a>00230                   <span class="keywordtype">double</span> mid[3], <span class="keywordtype">double</span> min[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[3]);
<a name="l00232"></a>00232 
<a name="l00237"></a>00237   <span class="keywordtype">int</span> InsideOrOutside(<span class="keyword">const</span> <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21006fc9b75c5a0835cfad2ef5d44379a0b">point</a>[3]);
<a name="l00238"></a>00238 
<a name="l00239"></a>00239   <span class="comment">//BTX</span>
<a name="l00240"></a>00240 
<a name="l00242"></a>00242 
<a name="l00244"></a>00244   <span class="keywordtype">int</span> DisjointOBBNodes( <a class="code" href="a01082.html">vtkOBBNode</a> *nodeA, <a class="code" href="a01082.html">vtkOBBNode</a> *nodeB,
<a name="l00245"></a>00245                         <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *XformBtoA );
<a name="l00247"></a>00247 
<a name="l00249"></a>00249   <span class="keywordtype">int</span> LineIntersectsNode( <a class="code" href="a01082.html">vtkOBBNode</a> *pA, <span class="keywordtype">double</span> b0[3], <span class="keywordtype">double</span> b1[3] );
<a name="l00250"></a>00250 
<a name="l00252"></a>00252 
<a name="l00253"></a>00253   <span class="keywordtype">int</span> TriangleIntersectsNode( <a class="code" href="a01082.html">vtkOBBNode</a> *pA,
<a name="l00254"></a>00254                               <span class="keywordtype">double</span> p0[3], <span class="keywordtype">double</span> p1[3],
<a name="l00255"></a>00255                               <span class="keywordtype">double</span> p2[3], <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *XformBtoA );
<a name="l00257"></a>00257 
<a name="l00259"></a>00259 
<a name="l00261"></a>00261   <span class="keywordtype">int</span> IntersectWithOBBTree( <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a> *OBBTreeB, <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *XformBtoA,
<a name="l00262"></a>00262                             <span class="keywordtype">int</span>(*<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2104a5f695df710396c5e1755b0a5ab62a3">function</a>)( <a class="code" href="a01082.html">vtkOBBNode</a> *nodeA,
<a name="l00263"></a>00263                                             <a class="code" href="a01082.html">vtkOBBNode</a> *nodeB,
<a name="l00264"></a>00264                                             <a class="code" href="a00998.html" title="represent and manipulate 4x4 transformation matrices">vtkMatrix4x4</a> *Xform,
<a name="l00265"></a>00265                                             <span class="keywordtype">void</span> *arg ),
<a name="l00266"></a>00266                             <span class="keywordtype">void</span> *data_arg );
<a name="l00267"></a>00267   <span class="comment">//ETX</span>
<a name="l00269"></a>00269 <span class="comment"></span>
<a name="l00271"></a>00271 
<a name="l00272"></a>00272   <span class="keywordtype">void</span> <a class="code" href="a00971.html#dd4eab3ae37e43fb99d99981e8cfb7d9">FreeSearchStructure</a>();
<a name="l00273"></a>00273   <span class="keywordtype">void</span> <a class="code" href="a00971.html#da245e189ce4efa881d856d7949a71db">BuildLocator</a>();
<a name="l00275"></a>00275 
<a name="l00284"></a>00284   <span class="keywordtype">void</span> <a class="code" href="a00971.html#cee465040df484d7fcbd2fdc34e94aae">GenerateRepresentation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *pd);
<a name="l00285"></a>00285 
<a name="l00286"></a>00286   <span class="comment">//BTX</span>
<a name="l00287"></a>00287 <span class="keyword">protected</span>:
<a name="l00288"></a>00288   <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a>();
<a name="l00289"></a>00289   ~<a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a>();
<a name="l00290"></a>00290 
<a name="l00291"></a>00291   <span class="comment">// Compute an OBB from the list of cells given.  This used to be</span>
<a name="l00292"></a>00292   <span class="comment">// public but should not have been.  A public call has been added</span>
<a name="l00293"></a>00293   <span class="comment">// so that the functionality can be accessed.</span>
<a name="l00294"></a>00294   <span class="keywordtype">void</span> ComputeOBB(<a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cells, <span class="keywordtype">double</span> corner[3], <span class="keywordtype">double</span> <a class="code" href="a02864.html#ffe776513b24d84b39af8ab0930fef7f">max</a>[3], 
<a name="l00295"></a>00295                        <span class="keywordtype">double</span> mid[3], <span class="keywordtype">double</span> min[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>[3]);
<a name="l00296"></a>00296 
<a name="l00297"></a><a class="code" href="a01083.html#5f155d715afb1a06fd384ef80df25cd1">00297</a>   <a class="code" href="a01082.html">vtkOBBNode</a> *Tree;
<a name="l00298"></a>00298   <span class="keywordtype">void</span> BuildTree(<a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cells, <a class="code" href="a01082.html">vtkOBBNode</a> *parent, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>);
<a name="l00299"></a><a class="code" href="a01083.html#97c2ce16b32577f73cd1e8ca2731e877">00299</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *PointsList;
<a name="l00300"></a><a class="code" href="a01083.html#cf5419383caf22f73ae76abf4cdb86db">00300</a>   <span class="keywordtype">int</span> *InsertedPoints;
<a name="l00301"></a><a class="code" href="a01083.html#cbc1d4fcc77da174342e746abfd44595">00301</a>   <span class="keywordtype">int</span> OBBCount;
<a name="l00302"></a>00302 
<a name="l00303"></a>00303   <span class="keywordtype">void</span> DeleteTree(<a class="code" href="a01082.html">vtkOBBNode</a> *OBBptr);
<a name="l00304"></a>00304   <span class="keywordtype">void</span> GeneratePolygons(<a class="code" href="a01082.html">vtkOBBNode</a> *OBBptr, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2103f20abad13593a5879a08c3e64355835">level</a>, <span class="keywordtype">int</span> repLevel, 
<a name="l00305"></a>00305                         <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>* pts, <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *polys);
<a name="l00306"></a>00306 
<a name="l00307"></a>00307   <span class="comment">//ETX</span>
<a name="l00308"></a>00308 <span class="keyword">private</span>:
<a name="l00309"></a>00309   <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a>(<span class="keyword">const</span> <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00310"></a>00310   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01083.html" title="generate oriented bounding box (OBB) tree">vtkOBBTree</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00311"></a>00311 };
<a name="l00312"></a>00312 
<a name="l00313"></a>00313 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:28 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>