<!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/vtkAbstractCellLocator.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 Page</span></a></li> <li><a href="pages.html"><span>Related 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/vtkAbstractCellLocator.h</h1><a href="a02183.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: vtkAbstractCellLocator.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="l00038"></a>00038 <span class="preprocessor">#ifndef __vtkAbstractCellLocator_h</span> <a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define __vtkAbstractCellLocator_h</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a02303.html">vtkLocator.h</a>"</span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a>; <a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a>; <a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>; <a name="l00047"></a>00047 <a name="l00048"></a><a class="code" href="a00082.html">00048</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a> : <span class="keyword">public</span> <a class="code" href="a00971.html" title="abstract base class for objects that accelerate spatial searches">vtkLocator</a> <a name="l00049"></a>00049 { <a name="l00050"></a>00050 <span class="keyword">public</span>: <a name="l00051"></a><a class="code" href="a00082.html#11ac410c62d0e378a5ae32e25fe5014a">00051</a> vtkTypeRevisionMacro(<a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>,<a class="code" href="a00971.html" title="abstract base class for objects that accelerate spatial searches">vtkLocator</a>); <a name="l00052"></a>00052 <span class="keywordtype">void</span> <a class="code" href="a00971.html#e8661aa7fe43687556be27eeecd3ae1d">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00053"></a>00053 <a name="l00055"></a>00055 <a name="l00059"></a>00059 vtkSetClampMacro(NumberOfCellsPerNode,<span class="keywordtype">int</span>,1,<a class="code" href="a02149.html#804f55a35836c1770f9176f3a01c4d5e">VTK_LARGE_INTEGER</a>); <a name="l00060"></a>00060 vtkGetMacro(NumberOfCellsPerNode,<span class="keywordtype">int</span>); <a name="l00062"></a>00062 <a name="l00064"></a>00064 <a name="l00069"></a>00069 vtkSetMacro(CacheCellBounds,<span class="keywordtype">int</span>); <a name="l00070"></a>00070 vtkGetMacro(CacheCellBounds,<span class="keywordtype">int</span>); <a name="l00071"></a>00071 vtkBooleanMacro(CacheCellBounds,<span class="keywordtype">int</span>); <a name="l00073"></a>00073 <a name="l00075"></a>00075 <a name="l00079"></a>00079 vtkSetMacro(RetainCellLists,<span class="keywordtype">int</span>); <a name="l00080"></a>00080 vtkGetMacro(RetainCellLists,<span class="keywordtype">int</span>); <a name="l00081"></a>00081 vtkBooleanMacro(RetainCellLists,<span class="keywordtype">int</span>); <a name="l00083"></a>00083 <a name="l00085"></a>00085 <a name="l00089"></a>00089 vtkSetMacro(LazyEvaluation,<span class="keywordtype">int</span>); <a name="l00090"></a>00090 vtkGetMacro(LazyEvaluation,<span class="keywordtype">int</span>); <a name="l00091"></a>00091 vtkBooleanMacro(LazyEvaluation,<span class="keywordtype">int</span>); <a name="l00093"></a>00093 <a name="l00095"></a>00095 <a name="l00099"></a>00099 vtkSetMacro(UseExistingSearchStructure,<span class="keywordtype">int</span>); <a name="l00100"></a>00100 vtkGetMacro(UseExistingSearchStructure,<span class="keywordtype">int</span>); <a name="l00101"></a>00101 vtkBooleanMacro(UseExistingSearchStructure,<span class="keywordtype">int</span>); <a name="l00103"></a>00103 <a name="l00105"></a>00105 <a name="l00107"></a>00107 <span class="keyword">virtual</span> <span class="keywordtype">int</span> IntersectWithLine( <a name="l00108"></a>00108 <span class="keywordtype">double</span> a0[3], <span class="keywordtype">double</span> a1[3], <span class="keywordtype">double</span> tol, <a name="l00109"></a>00109 <span class="keywordtype">double</span>& t, <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> pcoords[3], <a name="l00110"></a>00110 <span class="keywordtype">int</span> &subId); <a name="l00112"></a>00112 <a name="l00114"></a>00114 <a name="l00116"></a>00116 <span class="keyword">virtual</span> <span class="keywordtype">int</span> IntersectWithLine( <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>& 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> &subId, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &cellId); <a name="l00121"></a>00121 <a name="l00123"></a>00123 <a name="l00126"></a>00126 <span class="keyword">virtual</span> <span class="keywordtype">int</span> IntersectWithLine( <a name="l00127"></a>00127 <span class="keywordtype">double</span> a0[3], <span class="keywordtype">double</span> a1[3], <span class="keywordtype">double</span> tol, <a name="l00128"></a>00128 <span class="keywordtype">double</span>& t, <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> pcoords[3], <a name="l00129"></a>00129 <span class="keywordtype">int</span> &subId, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &cellId, <a name="l00130"></a>00130 <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *cell); <a name="l00132"></a>00132 <a name="l00134"></a>00134 <a name="l00143"></a>00143 <span class="keyword">virtual</span> <span class="keywordtype">int</span> IntersectWithLine( <a name="l00144"></a>00144 <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="l00145"></a>00145 <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="l00147"></a>00147 <a name="l00149"></a>00149 <a name="l00152"></a>00152 <span class="keyword">virtual</span> <span class="keywordtype">void</span> FindClosestPoint( <a name="l00153"></a>00153 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> closestPoint[3], <a name="l00154"></a>00154 <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &cellId, <span class="keywordtype">int</span> &subId, <span class="keywordtype">double</span>& dist2); <a name="l00156"></a>00156 <a name="l00158"></a>00158 <a name="l00167"></a>00167 <span class="keyword">virtual</span> <span class="keywordtype">void</span> FindClosestPoint( <a name="l00168"></a>00168 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> closestPoint[3], <a name="l00169"></a>00169 <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> &cellId, <a name="l00170"></a>00170 <span class="keywordtype">int</span> &subId, <span class="keywordtype">double</span>& dist2); <a name="l00172"></a>00172 <a name="l00174"></a>00174 <a name="l00180"></a>00180 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> FindClosestPointWithinRadius( <a name="l00181"></a>00181 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>, <a name="l00182"></a>00182 <span class="keywordtype">double</span> closestPoint[3], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> &cellId, <a name="l00183"></a>00183 <span class="keywordtype">int</span> &subId, <span class="keywordtype">double</span>& dist2); <a name="l00185"></a>00185 <a name="l00187"></a>00187 <a name="l00200"></a>00200 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> FindClosestPointWithinRadius( <a name="l00201"></a>00201 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>, <a name="l00202"></a>00202 <span class="keywordtype">double</span> closestPoint[3], <a name="l00203"></a>00203 <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> &cellId, <a name="l00204"></a>00204 <span class="keywordtype">int</span> &subId, <span class="keywordtype">double</span>& dist2); <a name="l00206"></a>00206 <a name="l00208"></a>00208 <a name="l00223"></a>00223 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> FindClosestPointWithinRadius( <a name="l00224"></a>00224 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c88c373494669189048f82ee86af5852">radius</a>, <a name="l00225"></a>00225 <span class="keywordtype">double</span> closestPoint[3], <a name="l00226"></a>00226 <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> &cellId, <a name="l00227"></a>00227 <span class="keywordtype">int</span> &subId, <span class="keywordtype">double</span>& dist2, <span class="keywordtype">int</span> &inside); <a name="l00229"></a>00229 <a name="l00233"></a>00233 <span class="keyword">virtual</span> <span class="keywordtype">void</span> FindCellsWithinBounds(<span class="keywordtype">double</span> *bbox, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cells); <a name="l00234"></a>00234 <a name="l00236"></a>00236 <a name="l00241"></a>00241 <span class="keyword">virtual</span> <span class="keywordtype">void</span> FindCellsAlongLine( <a name="l00242"></a>00242 <span class="keywordtype">double</span> p1[3], <span class="keywordtype">double</span> p2[3], <span class="keywordtype">double</span> tolerance, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *cells); <a name="l00244"></a>00244 <a name="l00247"></a>00247 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> FindCell(<span class="keywordtype">double</span> x[3]); <a name="l00248"></a>00248 <a name="l00250"></a>00250 <a name="l00253"></a>00253 <span class="keyword">virtual</span> <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> FindCell( <a name="l00254"></a>00254 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> tol2, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *GenCell, <a name="l00255"></a>00255 <span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">double</span> *weights); <a name="l00257"></a>00257 <a name="l00261"></a>00261 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> InsideCellBounds(<span class="keywordtype">double</span> x[3], <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cell_ID); <a name="l00262"></a>00262 <a name="l00263"></a>00263 <span class="keyword">protected</span>: <a name="l00264"></a>00264 <a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>(); <a name="l00265"></a>00265 ~<a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>(); <a name="l00266"></a>00266 <a name="l00268"></a>00268 <a name="l00273"></a>00273 <span class="keyword">virtual</span> <span class="keywordtype">bool</span> StoreCellBounds(); <a name="l00274"></a>00274 <span class="keyword">virtual</span> <span class="keywordtype">void</span> FreeCellBounds(); <a name="l00276"></a>00276 <a name="l00277"></a><a class="code" href="a00082.html#f67224003829025bf87e83e0088a8483">00277</a> <span class="keywordtype">int</span> NumberOfCellsPerNode; <a name="l00278"></a><a class="code" href="a00082.html#c9c5bd1f1395e96155c095e85cc14d9d">00278</a> <span class="keywordtype">int</span> RetainCellLists; <a name="l00279"></a><a class="code" href="a00082.html#93309dfb80acf185b3e93b033803828b">00279</a> <span class="keywordtype">int</span> CacheCellBounds; <a name="l00280"></a><a class="code" href="a00082.html#432d4ebff4ce2ed1340b4b36e3179041">00280</a> <span class="keywordtype">int</span> LazyEvaluation; <a name="l00281"></a><a class="code" href="a00082.html#6eca6604aeec28c3d3e32428d135665d">00281</a> <span class="keywordtype">int</span> UseExistingSearchStructure; <a name="l00282"></a><a class="code" href="a00082.html#364cd7fc4d5c4be1564f7ae3ad9bf911">00282</a> <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a> *GenericCell; <a name="l00283"></a>00283 <span class="comment">//BTX - begin tcl exclude</span> <a name="l00284"></a><a class="code" href="a00082.html#42d6a6aabdc0b329d425e8b9a298f837">00284</a> double (*CellBounds)[6]; <a name="l00285"></a>00285 <span class="comment">//ETX - end tcl exclude</span> <a name="l00286"></a>00286 <a name="l00287"></a>00287 <span class="keyword">private</span>: <a name="l00288"></a>00288 <a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>(<span class="keyword">const</span> <a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>&); <span class="comment">// Not implemented.</span> <a name="l00289"></a>00289 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00082.html" title="an abstract base class for locators which find cells">vtkAbstractCellLocator</a>&); <span class="comment">// Not implemented.</span> <a name="l00290"></a>00290 }; <a name="l00291"></a>00291 <a name="l00292"></a>00292 <span class="preprocessor">#endif</span> <a name="l00293"></a>00293 <span class="preprocessor"></span> <a name="l00294"></a>00294 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:13 2009 for VTK by <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>