Sophie

Sophie

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

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/vtkMarchingContourFilter.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/vtkMarchingContourFilter.h</h1><a href="a02589.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: vtkMarchingContourFilter.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="l00056"></a>00056 <span class="preprocessor">#ifndef __vtkMarchingContourFilter_h</span>
<a name="l00057"></a>00057 <span class="preprocessor"></span><span class="preprocessor">#define __vtkMarchingContourFilter_h</span>
<a name="l00058"></a>00058 <span class="preprocessor"></span>
<a name="l00059"></a>00059 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00060"></a>00060 
<a name="l00061"></a>00061 <span class="preprocessor">#include "<a class="code" href="a02002.html">vtkContourValues.h</a>"</span> <span class="comment">// Needed for direct access to ContourValues</span>
<a name="l00062"></a>00062 
<a name="l00063"></a>00063 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00064"></a>00064 <span class="keyword">class </span><a class="code" href="a01515.html" title="organize data according to scalar values (used to accelerate contouring operations)...">vtkScalarTree</a>;
<a name="l00065"></a>00065 
<a name="l00066"></a><a class="code" href="a00987.html">00066</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</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="l00067"></a>00067 {
<a name="l00068"></a>00068 <span class="keyword">public</span>:
<a name="l00069"></a><a class="code" href="a00987.html#7ae06ebce897236f7fe4b986b91a6d1c">00069</a>   vtkTypeRevisionMacro(<a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00070"></a>00070   <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="l00071"></a>00071 
<a name="l00074"></a>00074   <span class="keyword">static</span> <a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00075"></a>00075 
<a name="l00077"></a>00077 
<a name="l00078"></a>00078   <span class="keywordtype">void</span> SetValue(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00079"></a>00079   <span class="keywordtype">double</span> GetValue(<span class="keywordtype">int</span> i);
<a name="l00080"></a>00080   <span class="keywordtype">double</span> *GetValues();
<a name="l00081"></a>00081   <span class="keywordtype">void</span> GetValues(<span class="keywordtype">double</span> *contourValues);
<a name="l00082"></a>00082   <span class="keywordtype">void</span> SetNumberOfContours(<span class="keywordtype">int</span> number);
<a name="l00083"></a>00083   <span class="keywordtype">int</span> GetNumberOfContours();
<a name="l00084"></a>00084   <span class="keywordtype">void</span> GenerateValues(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2]);
<a name="l00085"></a>00085   <span class="keywordtype">void</span> GenerateValues(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> rangeStart, <span class="keywordtype">double</span> rangeEnd);
<a name="l00087"></a>00087 
<a name="l00089"></a>00089   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00090"></a>00090 
<a name="l00092"></a>00092 
<a name="l00096"></a>00096   vtkSetMacro(ComputeNormals,<span class="keywordtype">int</span>);
<a name="l00097"></a>00097   vtkGetMacro(ComputeNormals,<span class="keywordtype">int</span>);
<a name="l00098"></a>00098   vtkBooleanMacro(ComputeNormals,<span class="keywordtype">int</span>);
<a name="l00100"></a>00100 
<a name="l00102"></a>00102 
<a name="l00108"></a>00108   vtkSetMacro(ComputeGradients,<span class="keywordtype">int</span>);
<a name="l00109"></a>00109   vtkGetMacro(ComputeGradients,<span class="keywordtype">int</span>);
<a name="l00110"></a>00110   vtkBooleanMacro(ComputeGradients,<span class="keywordtype">int</span>);
<a name="l00112"></a>00112 
<a name="l00114"></a>00114 
<a name="l00115"></a>00115   vtkSetMacro(ComputeScalars,<span class="keywordtype">int</span>);
<a name="l00116"></a>00116   vtkGetMacro(ComputeScalars,<span class="keywordtype">int</span>);
<a name="l00117"></a>00117   vtkBooleanMacro(ComputeScalars,<span class="keywordtype">int</span>);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121 
<a name="l00122"></a>00122   vtkSetMacro(UseScalarTree,<span class="keywordtype">int</span>);
<a name="l00123"></a>00123   vtkGetMacro(UseScalarTree,<span class="keywordtype">int</span>);
<a name="l00124"></a>00124   vtkBooleanMacro(UseScalarTree,<span class="keywordtype">int</span>);
<a name="l00126"></a>00126 
<a name="l00128"></a>00128 
<a name="l00130"></a>00130   <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00131"></a>00131   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00133"></a>00133 
<a name="l00136"></a>00136   <span class="keywordtype">void</span> CreateDefaultLocator();
<a name="l00137"></a>00137 
<a name="l00138"></a>00138 <span class="keyword">protected</span>:
<a name="l00139"></a>00139   <a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a>();
<a name="l00140"></a>00140   ~<a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a>();
<a name="l00141"></a>00141 
<a name="l00142"></a>00142   <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="l00143"></a>00143   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01261.html#a9084b97ab9c0c8c76e490fa9776a832">FillInputPortInformation</a>(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210710cb6d12e418b21e8fb3d79ac32f51c">port</a>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21023da246d4a744e861548382bb79fad81">info</a>);
<a name="l00144"></a>00144 
<a name="l00145"></a><a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">00145</a>   <a class="code" href="a00330.html" title="helper object to manage setting and generating contour values">vtkContourValues</a> *ContourValues;
<a name="l00146"></a><a class="code" href="a00987.html#6ff97af1c6fec0194d50d29c66c00f68">00146</a>   <span class="keywordtype">int</span> ComputeNormals;
<a name="l00147"></a><a class="code" href="a00987.html#5fa32c2a432aed1149a5c54ef452c991">00147</a>   <span class="keywordtype">int</span> ComputeGradients;
<a name="l00148"></a><a class="code" href="a00987.html#6ac345441390bd7005196d4a692894da">00148</a>   <span class="keywordtype">int</span> ComputeScalars;
<a name="l00149"></a><a class="code" href="a00987.html#9c6d4f18f02f0c3ed6a15955aa73605d">00149</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;
<a name="l00150"></a><a class="code" href="a00987.html#3145bfaa9c392a6da284cdc23a573455">00150</a>   <span class="keywordtype">int</span> UseScalarTree;
<a name="l00151"></a><a class="code" href="a00987.html#57f875be5ec7396d6f611792355be179">00151</a>   <a class="code" href="a01515.html" title="organize data according to scalar values (used to accelerate contouring operations)...">vtkScalarTree</a> *ScalarTree;
<a name="l00152"></a>00152   
<a name="l00153"></a>00153   <span class="comment">//special contouring for structured points</span>
<a name="l00154"></a>00154   <span class="keywordtype">void</span> StructuredPointsContour(<span class="keywordtype">int</span> dim, <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output); 
<a name="l00155"></a>00155   <span class="comment">//special contouring for image data</span>
<a name="l00156"></a>00156   <span class="keywordtype">void</span> ImageContour(<span class="keywordtype">int</span> dim, <a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output);
<a name="l00157"></a>00157   <span class="comment">//default if not structured data</span>
<a name="l00158"></a>00158   <span class="keywordtype">void</span> DataSetContour(<a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a> *input, <a class="code" href="a01260.html" title="concrete dataset represents vertices, lines, polygons, and triangle strips">vtkPolyData</a> *output);
<a name="l00159"></a>00159 <span class="keyword">private</span>:
<a name="l00160"></a>00160   <a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a>(<span class="keyword">const</span> <a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00161"></a>00161   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00987.html" title="generate isosurfaces/isolines from scalar values">vtkMarchingContourFilter</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00162"></a>00162 };
<a name="l00163"></a>00163 
<a name="l00166"></a><a class="code" href="a00987.html#704b505232b527fffeaa3d0f639459b8">00166</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00987.html#704b505232b527fffeaa3d0f639459b8">vtkMarchingContourFilter::SetValue</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>)
<a name="l00167"></a>00167 {
<a name="l00168"></a>00168   this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#c9adf286086d681d6b80da610fd2bc5b">SetValue</a>(i,value);
<a name="l00169"></a>00169 }
<a name="l00170"></a>00170 
<a name="l00172"></a><a class="code" href="a00987.html#5864959bca3e7864e39ac015dd2b7f99">00172</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="a00987.html#5864959bca3e7864e39ac015dd2b7f99">vtkMarchingContourFilter::GetValue</a>(<span class="keywordtype">int</span> i)
<a name="l00173"></a>00173 {
<a name="l00174"></a>00174   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#e1beb054c144c1eb5c65ef65ce9010dc">GetValue</a>(i);
<a name="l00175"></a>00175 }
<a name="l00176"></a>00176 
<a name="l00179"></a><a class="code" href="a00987.html#9ce0ab9b89626878ed4545f42fab9c89">00179</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> *<a class="code" href="a00987.html#9ce0ab9b89626878ed4545f42fab9c89">vtkMarchingContourFilter::GetValues</a>()
<a name="l00180"></a>00180 {
<a name="l00181"></a>00181   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#f5488942a61e6465a4e155f956b1b110">GetValues</a>();
<a name="l00182"></a>00182 }
<a name="l00183"></a>00183 
<a name="l00187"></a><a class="code" href="a00987.html#42c0008edccee198b2ea6516e44bdced">00187</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00987.html#9ce0ab9b89626878ed4545f42fab9c89">vtkMarchingContourFilter::GetValues</a>(<span class="keywordtype">double</span> *contourValues)
<a name="l00188"></a>00188 {
<a name="l00189"></a>00189   this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#f5488942a61e6465a4e155f956b1b110">GetValues</a>(contourValues);
<a name="l00190"></a>00190 }
<a name="l00191"></a>00191 
<a name="l00195"></a><a class="code" href="a00987.html#3ff65aa97cb7e39579495b850445b9bc">00195</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00987.html#3ff65aa97cb7e39579495b850445b9bc">vtkMarchingContourFilter::SetNumberOfContours</a>(<span class="keywordtype">int</span> number)
<a name="l00196"></a>00196 {
<a name="l00197"></a>00197   this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#b6ed9a0ad4920ab0202a8f658a1da320">SetNumberOfContours</a>(number);
<a name="l00198"></a>00198 }
<a name="l00199"></a>00199 
<a name="l00201"></a><a class="code" href="a00987.html#18a4015bfaa6ea89bfdd329552187b3b">00201</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a00987.html#18a4015bfaa6ea89bfdd329552187b3b">vtkMarchingContourFilter::GetNumberOfContours</a>()
<a name="l00202"></a>00202 {
<a name="l00203"></a>00203   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#3da80320f6255bb9d32bfb35d2012507">GetNumberOfContours</a>();
<a name="l00204"></a>00204 }
<a name="l00205"></a>00205 
<a name="l00207"></a>00207 
<a name="l00209"></a><a class="code" href="a00987.html#8d9f18238effd962471a6fe20dbbdb3e">00209</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00987.html#8d9f18238effd962471a6fe20dbbdb3e">vtkMarchingContourFilter::GenerateValues</a>(<span class="keywordtype">int</span> numContours,
<a name="l00210"></a>00210                                                      <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2])
<a name="l00212"></a>00212 {
<a name="l00213"></a>00213   this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#a8d5613ee584e38211b8bbced32225e5">GenerateValues</a>(numContours, range);
<a name="l00214"></a>00214 }
<a name="l00215"></a>00215 
<a name="l00217"></a>00217 
<a name="l00219"></a><a class="code" href="a00987.html#da111db0d567151151178ab0203de234">00219</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00987.html#8d9f18238effd962471a6fe20dbbdb3e">vtkMarchingContourFilter::GenerateValues</a>(<span class="keywordtype">int</span> numContours,
<a name="l00220"></a>00220                                                      <span class="keywordtype">double</span> rangeStart,
<a name="l00221"></a>00221                                                      <span class="keywordtype">double</span> rangeEnd)
<a name="l00223"></a>00223 {
<a name="l00224"></a>00224   this-&gt;<a class="code" href="a00987.html#09ccdd6f0aed6f2d75ea338c4f932722">ContourValues</a>-&gt;<a class="code" href="a00330.html#a8d5613ee584e38211b8bbced32225e5">GenerateValues</a>(numContours, rangeStart, rangeEnd);
<a name="l00225"></a>00225 }
<a name="l00226"></a>00226 
<a name="l00227"></a>00227 <span class="preprocessor">#endif</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:27 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>