Sophie

Sophie

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

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/vtkContourGrid.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/vtkContourGrid.h</h1><a href="a02493.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: vtkContourGrid.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="l00048"></a>00048 <span class="preprocessor">#ifndef __vtkContourGrid_h</span>
<a name="l00049"></a>00049 <span class="preprocessor"></span><span class="preprocessor">#define __vtkContourGrid_h</span>
<a name="l00050"></a>00050 <span class="preprocessor"></span>
<a name="l00051"></a>00051 <span class="preprocessor">#include "<a class="code" href="a02331.html">vtkPolyDataAlgorithm.h</a>"</span>
<a name="l00052"></a>00052 
<a name="l00053"></a>00053 <span class="preprocessor">#include "<a class="code" href="a02002.html">vtkContourValues.h</a>"</span> <span class="comment">// Needed for inline methods</span>
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="keyword">class </span><a class="code" href="a00453.html" title="keep track of edges (edge is pair of integer id&amp;#39;s)">vtkEdgeTable</a>;
<a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>;
<a name="l00057"></a>00057 <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="l00058"></a>00058 
<a name="l00059"></a><a class="code" href="a00324.html">00059</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</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="l00060"></a>00060 {
<a name="l00061"></a>00061 <span class="keyword">public</span>:
<a name="l00062"></a><a class="code" href="a00324.html#a2f2a9ab4feae25b90c0a42b761b5f58">00062</a>   vtkTypeRevisionMacro(<a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a>,<a class="code" href="a01261.html" title="Superclass for algorithms that produce only polydata as output.">vtkPolyDataAlgorithm</a>);
<a name="l00063"></a>00063   <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="l00064"></a>00064 
<a name="l00067"></a>00067   <span class="keyword">static</span> <a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a> *<a class="code" href="a01261.html#cf785ac526132296ff652c636f713b5e">New</a>();
<a name="l00068"></a>00068 
<a name="l00070"></a>00070 
<a name="l00071"></a>00071   <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="l00072"></a>00072   <span class="keywordtype">double</span> GetValue(<span class="keywordtype">int</span> i);
<a name="l00073"></a>00073   <span class="keywordtype">double</span> *GetValues();
<a name="l00074"></a>00074   <span class="keywordtype">void</span> GetValues(<span class="keywordtype">double</span> *contourValues);
<a name="l00075"></a>00075   <span class="keywordtype">void</span> SetNumberOfContours(<span class="keywordtype">int</span> number);
<a name="l00076"></a>00076   <span class="keywordtype">int</span> GetNumberOfContours();
<a name="l00077"></a>00077   <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="l00078"></a>00078   <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="l00080"></a>00080 
<a name="l00082"></a>00082   <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>();
<a name="l00083"></a>00083 
<a name="l00085"></a>00085 
<a name="l00089"></a>00089   vtkSetMacro(ComputeNormals,<span class="keywordtype">int</span>);
<a name="l00090"></a>00090   vtkGetMacro(ComputeNormals,<span class="keywordtype">int</span>);
<a name="l00091"></a>00091   vtkBooleanMacro(ComputeNormals,<span class="keywordtype">int</span>);
<a name="l00093"></a>00093 
<a name="l00095"></a>00095 
<a name="l00101"></a>00101   vtkSetMacro(ComputeGradients,<span class="keywordtype">int</span>);
<a name="l00102"></a>00102   vtkGetMacro(ComputeGradients,<span class="keywordtype">int</span>);
<a name="l00103"></a>00103   vtkBooleanMacro(ComputeGradients,<span class="keywordtype">int</span>);
<a name="l00105"></a>00105 
<a name="l00107"></a>00107 
<a name="l00108"></a>00108   vtkSetMacro(ComputeScalars,<span class="keywordtype">int</span>);
<a name="l00109"></a>00109   vtkGetMacro(ComputeScalars,<span class="keywordtype">int</span>);
<a name="l00110"></a>00110   vtkBooleanMacro(ComputeScalars,<span class="keywordtype">int</span>);
<a name="l00112"></a>00112 
<a name="l00114"></a>00114 
<a name="l00115"></a>00115   vtkSetMacro(UseScalarTree,<span class="keywordtype">int</span>);
<a name="l00116"></a>00116   vtkGetMacro(UseScalarTree,<span class="keywordtype">int</span>);
<a name="l00117"></a>00117   vtkBooleanMacro(UseScalarTree,<span class="keywordtype">int</span>);
<a name="l00119"></a>00119 
<a name="l00121"></a>00121 
<a name="l00123"></a>00123   <span class="keywordtype">void</span> SetLocator(<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *locator);
<a name="l00124"></a>00124   vtkGetObjectMacro(Locator,<a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a>);
<a name="l00126"></a>00126 
<a name="l00129"></a>00129   <span class="keywordtype">void</span> CreateDefaultLocator();
<a name="l00130"></a>00130 
<a name="l00131"></a>00131 <span class="keyword">protected</span>:
<a name="l00132"></a>00132   <a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a>();
<a name="l00133"></a>00133   ~<a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a>();
<a name="l00134"></a>00134 
<a name="l00135"></a>00135   <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="l00136"></a>00136   <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="l00137"></a>00137 
<a name="l00138"></a><a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">00138</a>   <a class="code" href="a00330.html" title="helper object to manage setting and generating contour values">vtkContourValues</a> *ContourValues;
<a name="l00139"></a><a class="code" href="a00324.html#351952eb1990f0d33390cee4bd7d6f27">00139</a>   <span class="keywordtype">int</span> ComputeNormals;
<a name="l00140"></a><a class="code" href="a00324.html#813bbbc982a256546abd1a21951f61e0">00140</a>   <span class="keywordtype">int</span> ComputeGradients;
<a name="l00141"></a><a class="code" href="a00324.html#c11146a71cc6be71d6cf95b437b17cd4">00141</a>   <span class="keywordtype">int</span> ComputeScalars;
<a name="l00142"></a><a class="code" href="a00324.html#23672f45b5f2c3d5af7d1ad6cd15832f">00142</a>   <a class="code" href="a01247.html" title="quickly locate points in 3-space">vtkPointLocator</a> *Locator;
<a name="l00143"></a><a class="code" href="a00324.html#4906f8b3f46451049dcf57dc1efac7f8">00143</a>   <span class="keywordtype">int</span> UseScalarTree;
<a name="l00144"></a><a class="code" href="a00324.html#c33a14e8f993f459a7704d71b8d9fa2b">00144</a>   <a class="code" href="a01515.html" title="organize data according to scalar values (used to accelerate contouring operations)...">vtkScalarTree</a> *ScalarTree;
<a name="l00145"></a><a class="code" href="a00324.html#3b645cf522f8ac449f9ded780536439c">00145</a>   <a class="code" href="a00453.html" title="keep track of edges (edge is pair of integer id&amp;#39;s)">vtkEdgeTable</a> *EdgeTable;
<a name="l00146"></a>00146   
<a name="l00147"></a>00147 <span class="keyword">private</span>:
<a name="l00148"></a>00148   <a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a>(<span class="keyword">const</span> <a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00149"></a>00149   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00324.html" title="generate isosurfaces/isolines from scalar values (specialized for unstructured grids)...">vtkContourGrid</a>&amp;);  <span class="comment">// Not implemented.</span>
<a name="l00150"></a>00150 };
<a name="l00151"></a>00151 
<a name="l00154"></a><a class="code" href="a00324.html#821392f0de77950c81179313242781e6">00154</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00324.html#821392f0de77950c81179313242781e6">vtkContourGrid::SetValue</a>(<span class="keywordtype">int</span> i, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>)
<a name="l00155"></a>00155 {this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#c9adf286086d681d6b80da610fd2bc5b">SetValue</a>(i,value);}
<a name="l00156"></a>00156 
<a name="l00158"></a>00158 
<a name="l00159"></a><a class="code" href="a00324.html#d86afbaeba483ad24ddbe83ff4534581">00159</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> <a class="code" href="a00324.html#d86afbaeba483ad24ddbe83ff4534581">vtkContourGrid::GetValue</a>(<span class="keywordtype">int</span> i)
<a name="l00160"></a>00160 {<span class="keywordflow">return</span> this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#e1beb054c144c1eb5c65ef65ce9010dc">GetValue</a>(i);}
<a name="l00162"></a>00162 
<a name="l00164"></a>00164 
<a name="l00166"></a><a class="code" href="a00324.html#02471d1799cff80d8121811790584d9a">00166</a> <span class="keyword">inline</span> <span class="keywordtype">double</span> *<a class="code" href="a00324.html#02471d1799cff80d8121811790584d9a">vtkContourGrid::GetValues</a>()
<a name="l00167"></a>00167 {<span class="keywordflow">return</span> this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#f5488942a61e6465a4e155f956b1b110">GetValues</a>();}
<a name="l00169"></a>00169 
<a name="l00173"></a><a class="code" href="a00324.html#5b724f9bc222e04738a72b54bbf2a7ed">00173</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00324.html#02471d1799cff80d8121811790584d9a">vtkContourGrid::GetValues</a>(<span class="keywordtype">double</span> *contourValues)
<a name="l00174"></a>00174 {this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#f5488942a61e6465a4e155f956b1b110">GetValues</a>(contourValues);}
<a name="l00175"></a>00175 
<a name="l00179"></a><a class="code" href="a00324.html#7219d56b110bd10ad85cc1d1c21245d0">00179</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00324.html#7219d56b110bd10ad85cc1d1c21245d0">vtkContourGrid::SetNumberOfContours</a>(<span class="keywordtype">int</span> number)
<a name="l00180"></a>00180 {this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#b6ed9a0ad4920ab0202a8f658a1da320">SetNumberOfContours</a>(number);}
<a name="l00181"></a>00181 
<a name="l00183"></a>00183 
<a name="l00184"></a><a class="code" href="a00324.html#f0f12e5dc4ec044b2235e9457874b621">00184</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a00324.html#f0f12e5dc4ec044b2235e9457874b621">vtkContourGrid::GetNumberOfContours</a>()
<a name="l00185"></a>00185 {<span class="keywordflow">return</span> this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#3da80320f6255bb9d32bfb35d2012507">GetNumberOfContours</a>();}
<a name="l00187"></a>00187 
<a name="l00189"></a>00189 
<a name="l00191"></a><a class="code" href="a00324.html#2a2be9ba88225748e26299303a5604aa">00191</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00324.html#2a2be9ba88225748e26299303a5604aa">vtkContourGrid::GenerateValues</a>(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21076786d084c43d32f242990f932679539">range</a>[2])
<a name="l00192"></a>00192 {this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#a8d5613ee584e38211b8bbced32225e5">GenerateValues</a>(numContours, range);}
<a name="l00194"></a>00194 
<a name="l00196"></a>00196 
<a name="l00198"></a><a class="code" href="a00324.html#dd4650c4286475d93411a39da47706b4">00198</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="a00324.html#2a2be9ba88225748e26299303a5604aa">vtkContourGrid::GenerateValues</a>(<span class="keywordtype">int</span> numContours, <span class="keywordtype">double</span>
<a name="l00199"></a>00199                                              rangeStart, <span class="keywordtype">double</span> rangeEnd)
<a name="l00200"></a>00200 {this-&gt;<a class="code" href="a00324.html#6ec7c4f5de1f3a5dddb73abfa8675b47">ContourValues</a>-&gt;<a class="code" href="a00330.html#a8d5613ee584e38211b8bbced32225e5">GenerateValues</a>(numContours, rangeStart, rangeEnd);}
<a name="l00202"></a>00202 
<a name="l00203"></a>00203 
<a name="l00204"></a>00204 <span class="preprocessor">#endif</span>
<a name="l00205"></a>00205 <span class="preprocessor"></span>
<a name="l00206"></a>00206 
</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>