Sophie

Sophie

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

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/vtkCleanPolyData.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/vtkCleanPolyData.h</h1><a href="a02483.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: vtkCleanPolyData.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="l00062"></a>00062 <span class="preprocessor">#ifndef __vtkCleanPolyData_h</span>
<a name="l00063"></a>00063 <span class="preprocessor"></span><span class="preprocessor">#define __vtkCleanPolyData_h</span>
<a name="l00064"></a>00064 <span class="preprocessor"></span>
<a name="l00065"></a>00065 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00066"></a>00066 
<a name="l00067"></a>00067 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00068"></a>00068 
<a name="l00069"></a><a class="code" href="a00268.html">00069</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a> : <span class="keyword">public</span> <a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>
<a name="l00070"></a>00070 {
<a name="l00071"></a>00071 <span class="keyword">public</span>:
<a name="l00072"></a>00072   <span class="keyword">static</span> <a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00073"></a>00073   <span class="keywordtype">void</span> <a class="code" href="a01261.html#e6d59a63261b0c56f8f473984ae0e1b6">PrintSelf</a>(ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00074"></a><a class="code" href="a00268.html#6cf42c03080f844c33c7d5b2f239afd6">00074</a>   vtkTypeRevisionMacro(<a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00075"></a>00075 
<a name="l00077"></a>00077 
<a name="l00080"></a>00080   vtkSetMacro(ToleranceIsAbsolute,<span class="keywordtype">int</span>);
<a name="l00081"></a>00081   vtkBooleanMacro(ToleranceIsAbsolute,<span class="keywordtype">int</span>);
<a name="l00082"></a>00082   vtkGetMacro(ToleranceIsAbsolute,<span class="keywordtype">int</span>);
<a name="l00084"></a>00084 
<a name="l00086"></a>00086 
<a name="l00087"></a>00087   vtkSetClampMacro(Tolerance,<span class="keywordtype">double</span>,0.0,1.0);
<a name="l00088"></a>00088   vtkGetMacro(Tolerance,<span class="keywordtype">double</span>);
<a name="l00090"></a>00090 
<a name="l00092"></a>00092 
<a name="l00093"></a>00093   vtkSetClampMacro(AbsoluteTolerance,<span class="keywordtype">double</span>,0.0,<a class="code" href="a02149.html#a933eb1ff8ef089de59cce7b41e21261">VTK_DOUBLE_MAX</a>);
<a name="l00094"></a>00094   vtkGetMacro(AbsoluteTolerance,<span class="keywordtype">double</span>);
<a name="l00096"></a>00096 
<a name="l00098"></a>00098 
<a name="l00099"></a>00099   vtkSetMacro(ConvertLinesToPoints,<span class="keywordtype">int</span>);
<a name="l00100"></a>00100   vtkBooleanMacro(ConvertLinesToPoints,<span class="keywordtype">int</span>);
<a name="l00101"></a>00101   vtkGetMacro(ConvertLinesToPoints,<span class="keywordtype">int</span>);
<a name="l00103"></a>00103 
<a name="l00105"></a>00105 
<a name="l00106"></a>00106   vtkSetMacro(ConvertPolysToLines,<span class="keywordtype">int</span>);
<a name="l00107"></a>00107   vtkBooleanMacro(ConvertPolysToLines,<span class="keywordtype">int</span>);
<a name="l00108"></a>00108   vtkGetMacro(ConvertPolysToLines,<span class="keywordtype">int</span>);
<a name="l00110"></a>00110 
<a name="l00112"></a>00112 
<a name="l00113"></a>00113   vtkSetMacro(ConvertStripsToPolys,<span class="keywordtype">int</span>);
<a name="l00114"></a>00114   vtkBooleanMacro(ConvertStripsToPolys,<span class="keywordtype">int</span>);
<a name="l00115"></a>00115   vtkGetMacro(ConvertStripsToPolys,<span class="keywordtype">int</span>);
<a name="l00117"></a>00117 
<a name="l00119"></a>00119 
<a name="l00123"></a>00123   vtkSetMacro(PointMerging,<span class="keywordtype">int</span>);
<a name="l00124"></a>00124   vtkGetMacro(PointMerging,<span class="keywordtype">int</span>);
<a name="l00125"></a>00125   vtkBooleanMacro(PointMerging,<span class="keywordtype">int</span>);
<a name="l00127"></a>00127 
<a name="l00129"></a>00129 
<a name="l00131"></a>00131   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00132"></a>00132   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00134"></a>00134 
<a name="l00136"></a>00136   <span class="keywordtype">void</span> CreateDefaultLocator(<a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *input = 0);
<a name="l00137"></a>00137 
<a name="l00139"></a><a class="code" href="a00268.html#20b90f670bbf7271a869770593669e0b">00139</a>   <span class="keywordtype">void</span> ReleaseLocator() { this-&gt;SetLocator(NULL); }
<a name="l00140"></a>00140 
<a name="l00142"></a>00142   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00143"></a>00143 
<a name="l00145"></a>00145   <span class="keyword">virtual</span> <span class="keywordtype">void</span> OperateOnPoint(<span class="keywordtype">double</span> in[3], <span class="keywordtype">double</span> out[3]);
<a name="l00146"></a>00146 
<a name="l00148"></a>00148   <span class="keyword">virtual</span> <span class="keywordtype">void</span> OperateOnBounds(<span class="keywordtype">double</span> in[6], <span class="keywordtype">double</span> out[6]);
<a name="l00149"></a>00149 
<a name="l00150"></a>00150   <span class="comment">// This filter is difficult to stream.</span>
<a name="l00151"></a>00151   <span class="comment">// To get invariant results, the whole input must be processed at once.</span>
<a name="l00152"></a>00152   <span class="comment">// This flag allows the user to select whether strict piece invariance</span>
<a name="l00153"></a>00153   <span class="comment">// is required.  By default it is on.  When off, the filter can stream,</span>
<a name="l00154"></a>00154   <span class="comment">// but results may change.</span>
<a name="l00155"></a>00155   vtkSetMacro(PieceInvariant, <span class="keywordtype">int</span>);
<a name="l00156"></a>00156   vtkGetMacro(PieceInvariant, <span class="keywordtype">int</span>);
<a name="l00157"></a>00157   vtkBooleanMacro(PieceInvariant, <span class="keywordtype">int</span>);
<a name="l00158"></a>00158 
<a name="l00159"></a>00159 <span class="keyword">protected</span>:
<a name="l00160"></a>00160   <a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a>();
<a name="l00161"></a>00161  ~<a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a>();
<a name="l00162"></a>00162 
<a name="l00163"></a>00163   <span class="comment">// Usual data generation method</span>
<a name="l00164"></a>00164   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#6b5a43ab1f9bbcb368c7dc83e4afe068">RequestData</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00165"></a>00165   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#cfed421fc23ff5262acc1c49053c75e1">RequestInformation</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00166"></a>00166   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#8ea20f6cc2dd5be4934c9e9b3f1d8eac">RequestUpdateExtent</a>(<a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> **, <a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a> *);
<a name="l00167"></a>00167 
<a name="l00168"></a><a class="code" href="a00268.html#e143e04566117812923bc41257ea626a">00168</a>   <span class="keywordtype">int</span>   PointMerging;
<a name="l00169"></a><a class="code" href="a00268.html#b5b3af6bb464d5f82b70ee9d0c9ff53e">00169</a>   <span class="keywordtype">double</span> Tolerance;
<a name="l00170"></a><a class="code" href="a00268.html#3933036402da5f27a6e023e07af2a5c9">00170</a>   <span class="keywordtype">double</span> AbsoluteTolerance;
<a name="l00171"></a><a class="code" href="a00268.html#4dc1ceeaa107dbb480ede925f00c34e5">00171</a>   <span class="keywordtype">int</span> ConvertLinesToPoints;
<a name="l00172"></a><a class="code" href="a00268.html#c1c801f4863b3045df0852745a6d0e3f">00172</a>   <span class="keywordtype">int</span> ConvertPolysToLines;
<a name="l00173"></a><a class="code" href="a00268.html#36054a4ca4c8fe144ea42a480be98f90">00173</a>   <span class="keywordtype">int</span> ConvertStripsToPolys;
<a name="l00174"></a><a class="code" href="a00268.html#11971d8ea89bc2830f6a7a38219bf7a8">00174</a>   <span class="keywordtype">int</span> ToleranceIsAbsolute;
<a name="l00175"></a><a class="code" href="a00268.html#10cdf121a51d275b42ebd59c9c484137">00175</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;
<a name="l00176"></a>00176 
<a name="l00177"></a><a class="code" href="a00268.html#374b0a0b65b068c59af32f76352ae97a">00177</a>   <span class="keywordtype">int</span> PieceInvariant;
<a name="l00178"></a>00178 <span class="keyword">private</span>:
<a name="l00179"></a>00179   <a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a>(<span class="keyword">const</span> <a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00180"></a>00180   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00268.html" title="merge duplicate points, and/or remove unused points and/or remove degenerate cells...">vtkCleanPolyData</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00181"></a>00181 };
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:25 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>