Sophie

Sophie

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

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/vtkCell.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/vtkCell.h</h1><a href="a02203.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: vtkCell.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="l00039"></a>00039 <span class="preprocessor">#ifndef __vtkCell_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define __vtkCell_h</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a><a class="code" href="a02203.html#5985323de342397ad176573a24097a69">00042</a> <span class="preprocessor">#define VTK_CELL_SIZE 512</span>
<a name="l00043"></a><a class="code" href="a02203.html#fdeb089428f0906d65f5a0fc38b8afc5">00043</a> <span class="preprocessor"></span><span class="preprocessor">#define VTK_TOL 1.e-05 // Tolerance for geometric calculation</span>
<a name="l00044"></a>00044 <span class="preprocessor"></span>
<a name="l00045"></a>00045 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00046"></a>00046 
<a name="l00047"></a>00047 <span class="preprocessor">#include "<a class="code" href="a02033.html">vtkIdList.h</a>"</span> <span class="comment">// Needed for inline methods</span>
<a name="l00048"></a>00048 <span class="preprocessor">#include "<a class="code" href="a02209.html">vtkCellType.h</a>"</span> <span class="comment">// Needed to define cell types</span>
<a name="l00049"></a>00049 
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>;
<a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>;
<a name="l00052"></a>00052 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>;
<a name="l00053"></a>00053 <span class="keyword">class </span><a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>;
<a name="l00054"></a>00054 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a>;
<a name="l00056"></a>00056 
<a name="l00057"></a><a class="code" href="a00240.html">00057</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00058"></a>00058 {
<a name="l00059"></a>00059 <span class="keyword">public</span>:
<a name="l00060"></a><a class="code" href="a00240.html#dca93909a5142f41ab577003edb57ac8">00060</a>   vtkTypeRevisionMacro(<a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00061"></a>00061   <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="l00062"></a>00062 
<a name="l00065"></a>00065   <span class="keywordtype">void</span> Initialize(<span class="keywordtype">int</span> npts, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> *pts, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *p);
<a name="l00066"></a>00066 
<a name="l00070"></a>00070   <span class="keyword">virtual</span> <span class="keywordtype">void</span> ShallowCopy(<a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *c);
<a name="l00071"></a>00071 
<a name="l00074"></a>00074   <span class="keyword">virtual</span> <span class="keywordtype">void</span> DeepCopy(<a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *c);
<a name="l00075"></a>00075 
<a name="l00077"></a>00077   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetCellType() = 0;
<a name="l00078"></a>00078 
<a name="l00080"></a>00080   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetCellDimension() = 0;
<a name="l00081"></a>00081 
<a name="l00085"></a><a class="code" href="a00240.html#c9e9a9177ea34880850c03134dc766f6">00085</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> IsLinear() {<span class="keywordflow">return</span> 1;}
<a name="l00086"></a>00086 
<a name="l00088"></a>00088 
<a name="l00091"></a><a class="code" href="a00240.html#be88e00ff25f92dc6d2b53b4a0e60ada">00091</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> RequiresInitialization() {<span class="keywordflow">return</span> 0;}
<a name="l00092"></a><a class="code" href="a00240.html#9dba3db31de5ca81db31daeb98019627">00092</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize() {}
<a name="l00094"></a>00094 
<a name="l00098"></a><a class="code" href="a00240.html#f3eb7ce1fb5b894a7fc12359d9ff55b9">00098</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> IsExplicitCell() {<span class="keywordflow">return</span> 0;}
<a name="l00099"></a>00099 
<a name="l00101"></a><a class="code" href="a00240.html#d5ef38813e7cba3c81f2e8ee84976460">00101</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *GetPoints() {<span class="keywordflow">return</span> this-&gt;Points;}
<a name="l00102"></a>00102 
<a name="l00104"></a><a class="code" href="a00240.html#6da6becf0c1df6580faa37beba589e00">00104</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetNumberOfPoints() {<span class="keywordflow">return</span> this-&gt;PointIds-&gt;GetNumberOfIds();}
<a name="l00105"></a>00105 
<a name="l00107"></a>00107   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNumberOfEdges() = 0;
<a name="l00108"></a>00108 
<a name="l00110"></a>00110   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetNumberOfFaces() = 0;
<a name="l00111"></a>00111 
<a name="l00113"></a><a class="code" href="a00240.html#b44ff4b9d408c56f5ea6d97f937f6c12">00113</a>   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *GetPointIds() {<span class="keywordflow">return</span> this-&gt;PointIds;}
<a name="l00114"></a>00114 
<a name="l00116"></a><a class="code" href="a00240.html#215cd6b8fb546830aa2eb6f6d28a6aa1">00116</a>   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetPointId(<span class="keywordtype">int</span> ptId) {<span class="keywordflow">return</span> this-&gt;PointIds-&gt;GetId(ptId);}
<a name="l00117"></a>00117 
<a name="l00119"></a>00119   <span class="keyword">virtual</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *GetEdge(<span class="keywordtype">int</span> edgeId) = 0;
<a name="l00120"></a>00120 
<a name="l00122"></a>00122   <span class="keyword">virtual</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a> *GetFace(<span class="keywordtype">int</span> faceId) = 0;
<a name="l00123"></a>00123 
<a name="l00129"></a>00129   <span class="keyword">virtual</span> <span class="keywordtype">int</span> CellBoundary(<span class="keywordtype">int</span> subId, <span class="keywordtype">double</span> pcoords[3], <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *pts) = 0;
<a name="l00130"></a>00130 
<a name="l00132"></a>00132 
<a name="l00147"></a>00147   <span class="keyword">virtual</span> <span class="keywordtype">int</span> EvaluatePosition(<span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span>* closestPoint, 
<a name="l00148"></a>00148                                <span class="keywordtype">int</span>&amp; subId, <span class="keywordtype">double</span> pcoords[3], 
<a name="l00149"></a>00149                                <span class="keywordtype">double</span>&amp; dist2, <span class="keywordtype">double</span> *weights) = 0;
<a name="l00151"></a>00151 
<a name="l00153"></a>00153 
<a name="l00156"></a>00156   <span class="keyword">virtual</span> <span class="keywordtype">void</span> EvaluateLocation(<span class="keywordtype">int</span>&amp; subId, <span class="keywordtype">double</span> pcoords[3], 
<a name="l00157"></a>00157                                 <span class="keywordtype">double</span> x[3], <span class="keywordtype">double</span> *weights) = 0;
<a name="l00159"></a>00159 
<a name="l00161"></a>00161 
<a name="l00172"></a>00172   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Contour(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *cellScalars, 
<a name="l00173"></a>00173                        <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator, <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *verts, 
<a name="l00174"></a>00174                        <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *lines, <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *polys, 
<a name="l00175"></a>00175                        <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *inPd, <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *outPd,
<a name="l00176"></a>00176                        <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a> *inCd, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId,
<a name="l00177"></a>00177                        <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a> *outCd) = 0;
<a name="l00179"></a>00179 
<a name="l00181"></a>00181 
<a name="l00192"></a>00192   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Clip(<span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a> *cellScalars, 
<a name="l00193"></a>00193                     <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator, <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *connectivity,
<a name="l00194"></a>00194                     <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *inPd, <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *outPd,
<a name="l00195"></a>00195                     <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a> *inCd, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a> *outCd, 
<a name="l00196"></a>00196                     <span class="keywordtype">int</span> insideOut) = 0;
<a name="l00198"></a>00198 
<a name="l00200"></a>00200 
<a name="l00203"></a>00203   <span class="keyword">virtual</span> <span class="keywordtype">int</span> IntersectWithLine(<span class="keywordtype">double</span> p1[3], <span class="keywordtype">double</span> p2[3], 
<a name="l00204"></a>00204                                 <span class="keywordtype">double</span> tol, <span class="keywordtype">double</span>&amp; t, <span class="keywordtype">double</span> x[3], 
<a name="l00205"></a>00205                                 <span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">int</span>&amp; subId) = 0;
<a name="l00207"></a>00207 
<a name="l00217"></a>00217   <span class="keyword">virtual</span> <span class="keywordtype">int</span> Triangulate(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>, <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *ptIds, <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *pts) = 0;
<a name="l00218"></a>00218 
<a name="l00220"></a>00220 
<a name="l00232"></a>00232   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Derivatives(<span class="keywordtype">int</span> subId, <span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">double</span> *values, 
<a name="l00233"></a>00233                            <span class="keywordtype">int</span> dim, <span class="keywordtype">double</span> *derivs) = 0;
<a name="l00235"></a>00235 
<a name="l00236"></a>00236 
<a name="l00239"></a>00239   <span class="keywordtype">void</span> GetBounds(<span class="keywordtype">double</span> bounds[6]);
<a name="l00240"></a>00240 
<a name="l00241"></a>00241 
<a name="l00244"></a>00244   <span class="keywordtype">double</span> *GetBounds();
<a name="l00245"></a>00245 
<a name="l00246"></a>00246 
<a name="l00248"></a>00248   <span class="keywordtype">double</span> GetLength2();
<a name="l00249"></a>00249 
<a name="l00250"></a>00250 
<a name="l00256"></a>00256   <span class="keyword">virtual</span> <span class="keywordtype">int</span> GetParametricCenter(<span class="keywordtype">double</span> pcoords[3]);
<a name="l00257"></a>00257 
<a name="l00258"></a>00258 
<a name="l00264"></a>00264   <span class="keyword">virtual</span> <span class="keywordtype">double</span> GetParametricDistance(<span class="keywordtype">double</span> pcoords[3]);
<a name="l00265"></a>00265 
<a name="l00266"></a>00266 
<a name="l00272"></a><a class="code" href="a00240.html#8bedce11b842b6a6694f31edfd6bb005">00272</a>   <span class="keyword">virtual</span> <span class="keywordtype">int</span> IsPrimaryCell() {<span class="keywordflow">return</span> 1;}
<a name="l00273"></a>00273 
<a name="l00274"></a>00274 
<a name="l00282"></a>00282   <span class="keyword">virtual</span> <span class="keywordtype">double</span> *GetParametricCoords();
<a name="l00283"></a>00283 
<a name="l00285"></a>00285 
<a name="l00288"></a><a class="code" href="a00240.html#8511c354198e20220fc12babbeadb93a">00288</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> InterpolateFunctions(<span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">double</span> weights[3])
<a name="l00289"></a>00289     {
<a name="l00290"></a>00290     (void)pcoords;
<a name="l00291"></a>00291     (void)weights;
<a name="l00292"></a>00292     }
<a name="l00293"></a><a class="code" href="a00240.html#a09bb50666972c5cfff07f1aca3e161f">00293</a>   <span class="keyword">virtual</span> <span class="keywordtype">void</span> InterpolateDerivs(<span class="keywordtype">double</span> pcoords[3], <span class="keywordtype">double</span> derivs[3])
<a name="l00294"></a>00294     {
<a name="l00295"></a>00295     (void)pcoords;
<a name="l00296"></a>00296     (void)derivs;
<a name="l00297"></a>00297     }
<a name="l00299"></a>00299 
<a name="l00300"></a>00300   <span class="comment">// left public for quick computational access</span>
<a name="l00301"></a><a class="code" href="a00240.html#c1baa5c044a9b92106e93a294fa1fa85">00301</a>   <a class="code" href="a01250.html" title="represent and manipulate 3D points">vtkPoints</a> *Points;
<a name="l00302"></a><a class="code" href="a00240.html#d97fc31340d75e8d493476b39324f229">00302</a>   <a class="code" href="a00720.html" title="list of point or cell ids">vtkIdList</a> *PointIds;
<a name="l00303"></a>00303 
<a name="l00304"></a>00304 <span class="keyword">protected</span>:
<a name="l00305"></a>00305   <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>();
<a name="l00306"></a>00306   ~<a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>();
<a name="l00307"></a>00307 
<a name="l00308"></a><a class="code" href="a00240.html#20ace0b71040666a6a5893efba90e5e0">00308</a>   <span class="keywordtype">double</span> Bounds[6];
<a name="l00309"></a>00309 
<a name="l00310"></a>00310 <span class="keyword">private</span>:
<a name="l00311"></a>00311   <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>(<span class="keyword">const</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00312"></a>00312   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00313"></a>00313 };
<a name="l00314"></a>00314 
<a name="l00315"></a>00315 <span class="preprocessor">#endif</span>
<a name="l00316"></a>00316 <span class="preprocessor"></span>
<a name="l00317"></a>00317 
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:14 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>