Sophie

Sophie

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

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/Filtering/vtkKdNode.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/Filtering/vtkKdNode.h</h1><a href="a02298.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: vtkKdNode.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="l00015"></a>00015 <span class="comment">/*----------------------------------------------------------------------------</span>
<a name="l00016"></a>00016 <span class="comment"> Copyright (c) Sandia Corporation</span>
<a name="l00017"></a>00017 <span class="comment"> See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.</span>
<a name="l00018"></a>00018 <span class="comment">----------------------------------------------------------------------------*/</span>
<a name="l00019"></a>00019 
<a name="l00035"></a>00035 <span class="preprocessor">#ifndef __vtkKdNode_h</span>
<a name="l00036"></a>00036 <span class="preprocessor"></span><span class="preprocessor">#define __vtkKdNode_h</span>
<a name="l00037"></a>00037 <span class="preprocessor"></span>
<a name="l00038"></a>00038 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00039"></a>00039 
<a name="l00040"></a>00040 <span class="keyword">class </span><a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>;
<a name="l00041"></a>00041 <span class="keyword">class </span><a class="code" href="a01227.html" title="A vtkPlanesIntersection object is a vtkPlanes object that can compute whether the...">vtkPlanesIntersection</a>;
<a name="l00042"></a>00042 
<a name="l00043"></a><a class="code" href="a00932.html">00043</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00044"></a>00044 {
<a name="l00045"></a>00045 <span class="keyword">public</span>:
<a name="l00046"></a><a class="code" href="a00932.html#6813d4495c15650eacc9de0e43b9d94b">00046</a>   vtkTypeRevisionMacro(<a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>, <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00047"></a>00047   <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream&amp; 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="l00049"></a>00049   <span class="keyword">static</span> <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>();
<a name="l00050"></a>00050 
<a name="l00052"></a>00052 
<a name="l00054"></a>00054   vtkSetMacro(Dim, <span class="keywordtype">int</span>);
<a name="l00055"></a>00055   vtkGetMacro(Dim, <span class="keywordtype">int</span>);
<a name="l00057"></a>00057 
<a name="l00061"></a>00061   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetDivisionPosition();
<a name="l00062"></a>00062 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065   vtkSetMacro(NumberOfPoints, <span class="keywordtype">int</span>);
<a name="l00066"></a>00066   vtkGetMacro(NumberOfPoints, <span class="keywordtype">int</span>);
<a name="l00068"></a>00068 
<a name="l00070"></a>00070 
<a name="l00072"></a>00072   <span class="keywordtype">void</span> SetBounds(<span class="keywordtype">double</span> x1,<span class="keywordtype">double</span> x2,<span class="keywordtype">double</span> y1,<span class="keywordtype">double</span> y2,<span class="keywordtype">double</span> z1,<span class="keywordtype">double</span> z2);
<a name="l00073"></a><a class="code" href="a00932.html#69761399b217cb8a9f97e4a160f9091e">00073</a>   <span class="keywordtype">void</span> SetBounds(<span class="keywordtype">double</span> b[6])
<a name="l00074"></a>00074     {
<a name="l00075"></a>00075     this-&gt;SetBounds(b[0], b[1], b[2], b[3], b[4], b[5]);
<a name="l00076"></a>00076     }
<a name="l00077"></a>00077   <span class="keywordtype">void</span> GetBounds(<span class="keywordtype">double</span> *b) <span class="keyword">const</span>;
<a name="l00079"></a>00079 
<a name="l00081"></a>00081 
<a name="l00084"></a>00084   <span class="keywordtype">void</span> SetDataBounds(<span class="keywordtype">double</span> x1,<span class="keywordtype">double</span> x2,<span class="keywordtype">double</span> y1,<span class="keywordtype">double</span> y2,<span class="keywordtype">double</span> z1,<span class="keywordtype">double</span> z2);
<a name="l00085"></a>00085   <span class="keywordtype">void</span> GetDataBounds(<span class="keywordtype">double</span> *b) <span class="keyword">const</span>;
<a name="l00087"></a>00087 
<a name="l00090"></a>00090   <span class="keywordtype">void</span> SetDataBounds(<span class="keywordtype">float</span> *v);
<a name="l00091"></a>00091 
<a name="l00093"></a>00093 
<a name="l00095"></a><a class="code" href="a00932.html#3dd0f068e582853d334494f01eba24e2">00095</a>   <span class="keywordtype">double</span> *GetMinBounds() {<span class="keywordflow">return</span> this-&gt;Min;}
<a name="l00096"></a><a class="code" href="a00932.html#af59c47429aefca4e3eb626d59bd717d">00096</a>   <span class="keywordtype">double</span> *GetMaxBounds() {<span class="keywordflow">return</span> this-&gt;Max;}
<a name="l00098"></a>00098 
<a name="l00100"></a>00100   <span class="keywordtype">void</span> SetMinBounds(<span class="keywordtype">double</span> *mb);
<a name="l00101"></a>00101 
<a name="l00103"></a>00103   <span class="keywordtype">void</span> SetMaxBounds(<span class="keywordtype">double</span> *mb);
<a name="l00104"></a>00104 
<a name="l00106"></a>00106 
<a name="l00108"></a><a class="code" href="a00932.html#2a03f4b27ed20e45dfb04e085e61aae4">00108</a>   <span class="keywordtype">double</span> *GetMinDataBounds() {<span class="keywordflow">return</span> this-&gt;MinVal;}
<a name="l00109"></a><a class="code" href="a00932.html#7fd121ef9338736ce2fcb7f1da1b2093">00109</a>   <span class="keywordtype">double</span> *GetMaxDataBounds() {<span class="keywordflow">return</span> this-&gt;MaxVal;}
<a name="l00111"></a>00111 
<a name="l00114"></a>00114   <span class="keywordtype">void</span> SetMinDataBounds(<span class="keywordtype">double</span> *mb);
<a name="l00115"></a>00115 
<a name="l00118"></a>00118   <span class="keywordtype">void</span> SetMaxDataBounds(<span class="keywordtype">double</span> *mb);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121 
<a name="l00123"></a>00123   vtkSetMacro(ID, <span class="keywordtype">int</span>);
<a name="l00124"></a>00124   vtkGetMacro(ID, <span class="keywordtype">int</span>);
<a name="l00126"></a>00126 
<a name="l00128"></a>00128 
<a name="l00133"></a>00133   vtkGetMacro(MinID, <span class="keywordtype">int</span>);
<a name="l00134"></a>00134   vtkGetMacro(MaxID, <span class="keywordtype">int</span>);
<a name="l00135"></a>00135   vtkSetMacro(MinID, <span class="keywordtype">int</span>);
<a name="l00136"></a>00136   vtkSetMacro(MaxID, <span class="keywordtype">int</span>);
<a name="l00138"></a>00138 
<a name="l00140"></a>00140   <span class="keywordtype">void</span> AddChildNodes(<a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *left, <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *right);
<a name="l00141"></a>00141 
<a name="l00143"></a>00143   <span class="keywordtype">void</span> DeleteChildNodes();
<a name="l00144"></a>00144 
<a name="l00146"></a>00146 
<a name="l00147"></a>00147   vtkGetObjectMacro(Left, <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>);
<a name="l00148"></a>00148   <span class="keywordtype">void</span> SetLeft(<a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>* left);
<a name="l00150"></a>00150 
<a name="l00152"></a>00152 
<a name="l00153"></a>00153   vtkGetObjectMacro(Right, <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>);
<a name="l00154"></a>00154   <span class="keywordtype">void</span> SetRight(<a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *right);
<a name="l00156"></a>00156 
<a name="l00158"></a>00158 
<a name="l00159"></a>00159   vtkGetObjectMacro(Up, <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>);
<a name="l00160"></a>00160   <span class="keywordtype">void</span> SetUp(<a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>* up);
<a name="l00162"></a>00162 
<a name="l00164"></a>00164 
<a name="l00167"></a>00167   <span class="keywordtype">int</span> IntersectsBox(<span class="keywordtype">double</span> x1,<span class="keywordtype">double</span> x2,<span class="keywordtype">double</span> y1,<span class="keywordtype">double</span> y2,<span class="keywordtype">double</span> z1,<span class="keywordtype">double</span> z2,
<a name="l00168"></a>00168                     <span class="keywordtype">int</span> useDataBounds);
<a name="l00170"></a>00170 
<a name="l00172"></a>00172 
<a name="l00175"></a>00175   <span class="keywordtype">int</span> IntersectsSphere2(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z, <span class="keywordtype">double</span> rSquared,
<a name="l00176"></a>00176                         <span class="keywordtype">int</span> useDataBounds);
<a name="l00178"></a>00178 
<a name="l00185"></a>00185   <span class="keywordtype">int</span> IntersectsRegion(<a class="code" href="a01227.html" title="A vtkPlanesIntersection object is a vtkPlanes object that can compute whether the...">vtkPlanesIntersection</a> *pi, <span class="keywordtype">int</span> useDataBounds);
<a name="l00186"></a>00186 
<a name="l00188"></a>00188 
<a name="l00195"></a>00195   <span class="keywordtype">int</span> IntersectsCell(<a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *cell, <span class="keywordtype">int</span> useDataBounds, 
<a name="l00196"></a>00196                      <span class="keywordtype">int</span> cellRegion=-1, <span class="keywordtype">double</span> *cellBounds=NULL);
<a name="l00198"></a>00198   
<a name="l00200"></a>00200 
<a name="l00203"></a>00203   <span class="keywordtype">int</span> ContainsBox(<span class="keywordtype">double</span> x1,<span class="keywordtype">double</span> x2,<span class="keywordtype">double</span> y1,<span class="keywordtype">double</span> y2,<span class="keywordtype">double</span> z1,<span class="keywordtype">double</span> z2,
<a name="l00204"></a>00204                   <span class="keywordtype">int</span> useDataBounds);
<a name="l00206"></a>00206 
<a name="l00210"></a>00210   <span class="keywordtype">int</span> ContainsPoint(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z, <span class="keywordtype">int</span> useDataBounds);
<a name="l00211"></a>00211 
<a name="l00215"></a>00215   <span class="keywordtype">double</span> GetDistance2ToBoundary(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z, <span class="keywordtype">int</span> useDataBounds);
<a name="l00216"></a>00216 
<a name="l00218"></a>00218 
<a name="l00222"></a>00222   <span class="keywordtype">double</span> GetDistance2ToBoundary(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z, <span class="keywordtype">double</span> *boundaryPt,
<a name="l00223"></a>00223                                 <span class="keywordtype">int</span> useDataBounds);
<a name="l00225"></a>00225 
<a name="l00230"></a>00230   <span class="keywordtype">double</span> GetDistance2ToInnerBoundary(<span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z);
<a name="l00231"></a>00231 
<a name="l00233"></a>00233 
<a name="l00234"></a>00234   <span class="keywordtype">void</span> PrintNode(<span class="keywordtype">int</span> depth);
<a name="l00235"></a>00235   <span class="keywordtype">void</span> PrintVerboseNode(<span class="keywordtype">int</span> depth);
<a name="l00237"></a>00237 
<a name="l00238"></a>00238 <span class="keyword">protected</span>:
<a name="l00239"></a>00239 
<a name="l00240"></a>00240   <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>();
<a name="l00241"></a>00241   ~<a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>();
<a name="l00242"></a>00242 
<a name="l00243"></a>00243 <span class="keyword">private</span>:
<a name="l00244"></a>00244 
<a name="l00245"></a>00245   <span class="keywordtype">double</span> _GetDistance2ToBoundary(
<a name="l00246"></a>00246     <span class="keywordtype">double</span> x, <span class="keywordtype">double</span> y, <span class="keywordtype">double</span> z, <span class="keywordtype">double</span> *boundaryPt,
<a name="l00247"></a>00247     <span class="keywordtype">int</span> innerBoundaryOnly, <span class="keywordtype">int</span> useDataBounds);
<a name="l00248"></a>00248 
<a name="l00249"></a>00249   <span class="keywordtype">double</span> Min[3];       <span class="comment">// spatial bounds of node</span>
<a name="l00250"></a>00250   <span class="keywordtype">double</span> Max[3];       <span class="comment">// spatial bounds of node</span>
<a name="l00251"></a>00251   <span class="keywordtype">double</span> MinVal[3];    <span class="comment">// spatial bounds of data within node</span>
<a name="l00252"></a>00252   <span class="keywordtype">double</span> MaxVal[3];    <span class="comment">// spatial bounds of data within node</span>
<a name="l00253"></a>00253   <span class="keywordtype">int</span> NumberOfPoints;
<a name="l00254"></a>00254   
<a name="l00255"></a>00255   <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *Up;
<a name="l00256"></a>00256 
<a name="l00257"></a>00257   <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *Left;
<a name="l00258"></a>00258   <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a> *Right;
<a name="l00259"></a>00259 
<a name="l00260"></a>00260   <span class="keywordtype">int</span> Dim;
<a name="l00261"></a>00261 
<a name="l00262"></a>00262   <span class="keywordtype">int</span> ID;        <span class="comment">// region id</span>
<a name="l00263"></a>00263 
<a name="l00264"></a>00264   <span class="keywordtype">int</span> MinID;
<a name="l00265"></a>00265   <span class="keywordtype">int</span> MaxID;
<a name="l00266"></a>00266 
<a name="l00267"></a>00267   <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>(<span class="keyword">const</span> <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00268"></a>00268   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00932.html" title="This class represents a single spatial region in an 3D axis aligned binary spatial...">vtkKdNode</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00269"></a>00269 };
<a name="l00270"></a>00270 
<a name="l00271"></a>00271 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:16 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>