Sophie

Sophie

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

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/vtkGenericCellTessellator.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/vtkGenericCellTessellator.h</h1><a href="a02255.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: vtkGenericCellTessellator.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 __vtkGenericCellTessellator_h</span>
<a name="l00040"></a>00040 <span class="preprocessor"></span><span class="preprocessor">#define __vtkGenericCellTessellator_h</span>
<a name="l00041"></a>00041 <span class="preprocessor"></span>
<a name="l00042"></a>00042 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span>
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a>;
<a name="l00045"></a>00045 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>;
<a name="l00046"></a>00046 <span class="keyword">class </span><a class="code" href="a00285.html" title="create and manipulate unsorted lists of objects">vtkCollection</a>;
<a name="l00047"></a>00047 <span class="keyword">class </span><a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a>;
<a name="l00048"></a>00048 <span class="keyword">class </span><a class="code" href="a00579.html" title="defines cell interface">vtkGenericAdaptorCell</a>;
<a name="l00049"></a>00049 <span class="keyword">class </span><a class="code" href="a00583.html" title="iterator used to traverse cells">vtkGenericCellIterator</a>;
<a name="l00050"></a>00050 <span class="keyword">class </span><a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a>;
<a name="l00051"></a>00051 <span class="keyword">class </span><a class="code" href="a00590.html" title="defines dataset interface">vtkGenericDataSet</a>;
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="comment">//-----------------------------------------------------------------------------</span>
<a name="l00054"></a>00054 <span class="comment">//</span>
<a name="l00055"></a>00055 <span class="comment">// The tessellation object</span>
<a name="l00056"></a><a class="code" href="a00584.html">00056</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>
<a name="l00057"></a>00057 {
<a name="l00058"></a>00058 <span class="keyword">public</span>:
<a name="l00059"></a><a class="code" href="a00584.html#0898ed1242ee29ed687f67c14893118d">00059</a>   vtkTypeRevisionMacro(<a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>);
<a name="l00060"></a>00060   <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="l00061"></a>00061   
<a name="l00063"></a>00063 
<a name="l00070"></a>00070   <span class="keyword">virtual</span> <span class="keywordtype">void</span> TessellateFace(<a class="code" href="a00579.html" title="defines cell interface">vtkGenericAdaptorCell</a> *cell,
<a name="l00071"></a>00071                               <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> *att,
<a name="l00072"></a>00072                               <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e519c5019582479480124c44722a451f">index</a>,
<a name="l00073"></a>00073                               <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>,
<a name="l00074"></a>00074                               <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *cellArray,
<a name="l00075"></a>00075                               <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *internalPd)=0;
<a name="l00077"></a>00077 
<a name="l00079"></a>00079 
<a name="l00085"></a>00085   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Tessellate(<a class="code" href="a00579.html" title="defines cell interface">vtkGenericAdaptorCell</a> *cell,
<a name="l00086"></a>00086                           <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> *att,
<a name="l00087"></a>00087                           <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>, 
<a name="l00088"></a>00088                           <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *cellArray,
<a name="l00089"></a>00089                           <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *internalPd )=0;
<a name="l00091"></a>00091 
<a name="l00093"></a>00093 
<a name="l00099"></a>00099   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Triangulate(<a class="code" href="a00579.html" title="defines cell interface">vtkGenericAdaptorCell</a> *cell,
<a name="l00100"></a>00100                            <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> *att,
<a name="l00101"></a>00101                            <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2100fd9718c29b22570d5b02fa5c8de94f7">points</a>,
<a name="l00102"></a>00102                            <a class="code" href="a00242.html" title="object to represent cell connectivity">vtkCellArray</a> *cellArray,
<a name="l00103"></a>00103                            <a class="code" href="a01242.html" title="represent and manipulate point attribute data">vtkPointData</a> *internalPd)=0;
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 
<a name="l00110"></a>00110   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetErrorMetrics(<a class="code" href="a00285.html" title="create and manipulate unsorted lists of objects">vtkCollection</a> *someErrorMetrics);
<a name="l00111"></a>00111   vtkGetObjectMacro(ErrorMetrics,<a class="code" href="a00285.html" title="create and manipulate unsorted lists of objects">vtkCollection</a>);
<a name="l00113"></a>00113   
<a name="l00115"></a>00115   <span class="keyword">virtual</span> <span class="keywordtype">void</span> Initialize(<a class="code" href="a00590.html" title="defines dataset interface">vtkGenericDataSet</a> *ds)=0;
<a name="l00116"></a>00116   
<a name="l00119"></a>00119   <span class="keywordtype">void</span> InitErrorMetrics(<a class="code" href="a00590.html" title="defines dataset interface">vtkGenericDataSet</a> *ds);
<a name="l00120"></a>00120   
<a name="l00122"></a>00122 
<a name="l00123"></a>00123   vtkGetMacro(Measurement,<span class="keywordtype">int</span>);
<a name="l00124"></a>00124   vtkSetMacro(Measurement,<span class="keywordtype">int</span>);
<a name="l00126"></a>00126   
<a name="l00130"></a>00130   <span class="keywordtype">void</span> GetMaxErrors(<span class="keywordtype">double</span> *errors);
<a name="l00131"></a>00131   
<a name="l00132"></a>00132 <span class="keyword">protected</span>:
<a name="l00133"></a>00133   <a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a>();
<a name="l00134"></a>00134   ~<a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a>();
<a name="l00135"></a>00135   
<a name="l00137"></a>00137 
<a name="l00149"></a>00149   <span class="keywordtype">int</span> RequiresEdgeSubdivision(<span class="keywordtype">double</span> *left, <span class="keywordtype">double</span> *mid, <span class="keywordtype">double</span> *right,
<a name="l00150"></a>00150                               <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210a6028180e112c2c1c3556a8253cdbff5">alpha</a>);
<a name="l00152"></a>00152   
<a name="l00153"></a>00153   
<a name="l00155"></a>00155 
<a name="l00164"></a>00164   <span class="keyword">virtual</span> <span class="keywordtype">void</span> UpdateMaxError(<span class="keywordtype">double</span> *leftPoint, <span class="keywordtype">double</span> *midPoint,
<a name="l00165"></a>00165                               <span class="keywordtype">double</span> *rightPoint, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210a6028180e112c2c1c3556a8253cdbff5">alpha</a>);
<a name="l00167"></a>00167   
<a name="l00170"></a>00170   <span class="keywordtype">void</span> ResetMaxErrors();
<a name="l00171"></a>00171   
<a name="l00173"></a><a class="code" href="a00584.html#b004d67351ac2efe067c83da944bdedf">00173</a>   <a class="code" href="a00285.html" title="create and manipulate unsorted lists of objects">vtkCollection</a> *ErrorMetrics;
<a name="l00174"></a>00174   
<a name="l00178"></a>00178   <span class="keywordtype">void</span> SetGenericCell(<a class="code" href="a00579.html" title="defines cell interface">vtkGenericAdaptorCell</a> *cell);
<a name="l00179"></a>00179   
<a name="l00180"></a><a class="code" href="a00584.html#8f5bcb8e1e1fbda890c4e59b0983b498">00180</a>   <a class="code" href="a00590.html" title="defines dataset interface">vtkGenericDataSet</a> *DataSet;
<a name="l00181"></a>00181   
<a name="l00182"></a><a class="code" href="a00584.html#7be2d5b7f84159e26e7df1089dc3d6ec">00182</a>   <span class="keywordtype">int</span> Measurement; <span class="comment">// if true, measure the quality of the fixed subdivision.</span>
<a name="l00183"></a><a class="code" href="a00584.html#41015a376e693de37f8ad43512abb141">00183</a>   <span class="keywordtype">double</span> *MaxErrors; <span class="comment">// max error for each error metric, for measuring the</span>
<a name="l00184"></a>00184   <span class="comment">// quality of a fixed subdivision.</span>
<a name="l00185"></a><a class="code" href="a00584.html#3b3d934f0008e2b088da0ae52d391547">00185</a>   <span class="keywordtype">int</span> MaxErrorsCapacity;
<a name="l00186"></a>00186   
<a name="l00187"></a>00187 <span class="keyword">private</span>:
<a name="l00188"></a>00188   <a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a>(<span class="keyword">const</span> <a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00189"></a>00189   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00584.html" title="helper class to perform cell tessellation">vtkGenericCellTessellator</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00190"></a>00190 };
<a name="l00191"></a>00191 
<a name="l00192"></a>00192 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:15 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>