Sophie

Sophie

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

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/vtkMultiThreshold.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/vtkMultiThreshold.h</h1><a href="a02604.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: vtkMultiThreshold.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="l00015"></a>00015 <span class="comment">/*----------------------------------------------------------------------------</span>
<a name="l00016"></a>00016 <span class="comment"> Copyright (c) Sandia Corporation</span>
<a name="l00017"></a>00017 <span class="comment"> See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.</span>
<a name="l00018"></a>00018 <span class="comment">----------------------------------------------------------------------------*/</span>
<a name="l00019"></a>00019 
<a name="l00100"></a>00100 <span class="preprocessor">#ifndef __vtkMultiThreshold_h</span>
<a name="l00101"></a>00101 <span class="preprocessor"></span><span class="preprocessor">#define __vtkMultiThreshold_h</span>
<a name="l00102"></a>00102 <span class="preprocessor"></span>
<a name="l00103"></a>00103 <span class="preprocessor">#include "<a class="code" href="a02307.html">vtkMultiBlockDataSetAlgorithm.h</a>"</span>
<a name="l00104"></a>00104 <span class="preprocessor">#include "<a class="code" href="a02073.html">vtkMath.h</a>"</span> <span class="comment">// for Inf() and NegInf()</span>
<a name="l00105"></a>00105 
<a name="l00106"></a>00106 <span class="preprocessor">#include &lt;vtkstd/vector&gt;</span> <span class="comment">// for lists of threshold rules</span>
<a name="l00107"></a>00107 <span class="preprocessor">#include &lt;vtkstd/map&gt;</span> <span class="comment">// for IntervalRules map</span>
<a name="l00108"></a>00108 <span class="preprocessor">#include &lt;vtkstd/set&gt;</span> <span class="comment">// for UpdateDependents()</span>
<a name="l00109"></a>00109 <span class="preprocessor">#include &lt;vtkstd/string&gt;</span> <span class="comment">// for holding array names in NormKey</span>
<a name="l00110"></a>00110 
<a name="l00111"></a>00111 <span class="keyword">class </span><a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>;
<a name="l00112"></a>00112 <span class="keyword">class </span><a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>;
<a name="l00113"></a>00113 <span class="keyword">class </span><a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>;
<a name="l00114"></a>00114 <span class="keyword">class </span><a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a>;
<a name="l00115"></a>00115 <span class="keyword">class </span><a class="code" href="a01251.html" title="abstract class for specifying dataset behavior">vtkPointSet</a>;
<a name="l00116"></a>00116 <span class="keyword">class </span><a class="code" href="a01789.html" title="dataset represents arbitrary combinations of all possible cell types">vtkUnstructuredGrid</a>;
<a name="l00117"></a>00117 
<a name="l00118"></a><a class="code" href="a01066.html">00118</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a> : <span class="keyword">public</span> <a class="code" href="a01056.html" title="Superclass for algorithms that produce only vtkMultiBlockDataSet as output.">vtkMultiBlockDataSetAlgorithm</a>
<a name="l00119"></a>00119 {
<a name="l00120"></a>00120 <span class="keyword">public</span>:
<a name="l00121"></a><a class="code" href="a01066.html#55019d35d0285a76784f10b28553d7f0">00121</a>   vtkTypeRevisionMacro(<a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>,<a class="code" href="a01056.html" title="Superclass for algorithms that produce only vtkMultiBlockDataSet as output.">vtkMultiBlockDataSetAlgorithm</a>);
<a name="l00122"></a>00122   <span class="keyword">static</span> <a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>* <a class="code" href="a01056.html#3969cba5243b2054f7b376a8929cb4ef">New</a>();
<a name="l00123"></a>00123   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01056.html#4e90d52a7205702d0a00ec23ce6ea318">PrintSelf</a>( ostream&amp; os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent );
<a name="l00124"></a>00124 
<a name="l00125"></a>00125   <span class="comment">//BTX</span>
<a name="l00127"></a><a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a">00127</a> <span class="comment"></span>  <span class="keyword">enum</span> <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a" title="Whether the endpoint value of an interval should be included or excluded.">Closure</a> {
<a name="l00128"></a><a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a3b17c12c438f91f692e509601e287a6b">00128</a>     OPEN=0,   
<a name="l00129"></a><a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59">00129</a>     CLOSED=1  
<a name="l00130"></a>00130   };
<a name="l00132"></a><a class="code" href="a01066.html#2f93a36ad10fcf573fd56ad7019669a9">00132</a>   <span class="keyword">enum</span> <a class="code" href="a01066.html#2f93a36ad10fcf573fd56ad7019669a9" title="Norms that can be used to threshold vector attributes.">Norm</a> {
<a name="l00133"></a><a class="code" href="a01066.html#2f93a36ad10fcf573fd56ad7019669a9e1437ffe251a70ef2f0813035e89e2b4">00133</a>     LINFINITY_NORM=-3, 
<a name="l00134"></a><a class="code" href="a01066.html#2f93a36ad10fcf573fd56ad7019669a93da0e662365787c89942eb6d172a8c72">00134</a>     L2_NORM=-2,        
<a name="l00135"></a><a class="code" href="a01066.html#2f93a36ad10fcf573fd56ad7019669a986be001d5b995c8f68876e7c4fa3574f">00135</a>     L1_NORM=-1         
<a name="l00136"></a>00136   };
<a name="l00138"></a><a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c0">00138</a>   <span class="keyword">enum</span> <a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c0" title="Operations that can be performed on sets to generate another set. Most of these operators...">SetOperation</a> {
<a name="l00139"></a><a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c0d7fc2bcc703c6f429bad84890dabbf56">00139</a>     AND, 
<a name="l00140"></a><a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c0ef06f56d8ee68ac1fa9142da1e83bab3">00140</a>     OR, 
<a name="l00141"></a><a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c07772cfd715b7335065283e70190d5c66">00141</a>     XOR, 
<a name="l00142"></a><a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c01da2ce25b1814aebbb2f623b85a015cc">00142</a>     WOR, 
<a name="l00143"></a><a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c09291ac1421d14d9fe63feee0016dc29d">00143</a>     NAND 
<a name="l00144"></a>00144   };
<a name="l00145"></a>00145   <span class="comment">//ETX</span>
<a name="l00146"></a>00146 
<a name="l00148"></a>00148 
<a name="l00191"></a>00191   <span class="keywordtype">int</span> AddIntervalSet( <span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> omin, <span class="keywordtype">int</span> omax,
<a name="l00192"></a>00192     <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars );
<a name="l00193"></a>00193   <span class="keywordtype">int</span> AddIntervalSet( <span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> omin, <span class="keywordtype">int</span> omax,
<a name="l00194"></a>00194     <span class="keywordtype">int</span> assoc, <span class="keywordtype">int</span> attribType, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars );
<a name="l00196"></a>00196 
<a name="l00198"></a>00198 
<a name="l00204"></a>00204   <span class="keywordtype">int</span> AddLowpassIntervalSet( <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars );
<a name="l00205"></a>00205   <span class="keywordtype">int</span> AddHighpassIntervalSet( <span class="keywordtype">double</span> xmin, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars );
<a name="l00206"></a>00206   <span class="keywordtype">int</span> AddBandpassIntervalSet( <span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars );
<a name="l00207"></a>00207   <span class="keywordtype">int</span> AddNotchIntervalSet( <span class="keywordtype">double</span> xlo, <span class="keywordtype">double</span> xhi, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars );
<a name="l00209"></a>00209 
<a name="l00212"></a>00212   <span class="keywordtype">int</span> AddBooleanSet( <span class="keywordtype">int</span> operation, <span class="keywordtype">int</span> numInputs, <span class="keywordtype">int</span>* inputs );
<a name="l00213"></a>00213 
<a name="l00216"></a>00216   <span class="keywordtype">int</span> OutputSet( <span class="keywordtype">int</span> setId );
<a name="l00217"></a>00217 
<a name="l00219"></a>00219   <span class="keywordtype">void</span> Reset();
<a name="l00220"></a>00220 
<a name="l00221"></a>00221   <span class="comment">//BTX</span>
<a name="l00223"></a>00223 <span class="comment"></span>  <span class="keyword">typedef</span> double (*TupleNorm)( <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* arr, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> tuple, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a> );
<a name="l00224"></a>00224 
<a name="l00225"></a>00225   <span class="comment">// NormKey must be able to use TupleNorm typedef:</span>
<a name="l00226"></a>00226   <span class="keyword">class </span>NormKey;
<a name="l00227"></a>00227 
<a name="l00228"></a>00228   <span class="comment">// Interval must be able to use NormKey typedef:</span>
<a name="l00229"></a>00229   <span class="keyword">class </span>Interval;
<a name="l00230"></a>00230 
<a name="l00231"></a>00231   <span class="comment">// Set needs to refer to boolean set pointers</span>
<a name="l00232"></a>00232   <span class="keyword">class </span>BooleanSet;
<a name="l00233"></a>00233 
<a name="l00235"></a><a class="code" href="a01069.html">00235</a>   <span class="keyword">class </span><a class="code" href="a01069.html" title="A class with comparison operator used to index input array norms used in threshold...">NormKey</a> {
<a name="l00236"></a>00236   <span class="keyword">public</span>:
<a name="l00237"></a><a class="code" href="a01069.html#373b986b872c68ed381b41344e772d55">00237</a>     <span class="keywordtype">int</span> Association; <span class="comment">// vtkDataObject::FIELD_ASSOCIATION_POINTS or vtkDataObject::FIELD_ASSOCIATION_CELLS</span>
<a name="l00238"></a><a class="code" href="a01069.html#781dd1612bc2dcb198c168f715fc4688">00238</a>     <span class="keywordtype">int</span> Type; <span class="comment">// -1 =&gt; use Name, otherwise: vtkDataSetAttributes::{SCALARS, VECTORS, TENSORS, NORMALS, TCOORDS, GLOBALIDS}</span>
<a name="l00239"></a><a class="code" href="a01069.html#a69e16dda1a4670f65cccb3451ef5a8c">00239</a>     <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210ff2af282e340f7884417cb571d333ccc">vtkstd::string</a> Name; <span class="comment">// Either empty or (when ArrayType == -1) an input array name</span>
<a name="l00240"></a><a class="code" href="a01069.html#a88d3250d8d0921365bdbfce157b0b9c">00240</a>     <span class="keywordtype">int</span> Component; <span class="comment">// LINFINITY_NORM, L1_NORM, L2_NORM or an integer component number</span>
<a name="l00241"></a><a class="code" href="a01069.html#80b875e174776f41ef08ccb4a756a462">00241</a>     <span class="keywordtype">int</span> AllScalars; <span class="comment">// For Association == vtkDataObject::FIELD_ASSOCIATION_POINTS, must all points be in the interval?</span>
<a name="l00242"></a><a class="code" href="a01069.html#23195de514ebea07c2519e26656e6323">00242</a>     <span class="keywordtype">int</span> InputArrayIndex; <span class="comment">// The number passed to vtkAlgorithm::SetInputArrayToProcess()</span>
<a name="l00243"></a><a class="code" href="a01069.html#505d1b746bb4fd17c5d835db8c9bab9c">00243</a>     TupleNorm NormFunction; <span class="comment">// A function pointer to compute the norm (or fetcht the correct component) of a tuple.</span>
<a name="l00244"></a>00244 
<a name="l00246"></a>00246     <span class="keywordtype">void</span> ComputeNorm( <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00240.html" title="abstract class to specify cell behavior">vtkCell</a>* cell, <a class="code" href="a00356.html" title="abstract superclass for arrays of numeric data">vtkDataArray</a>* array, <span class="keywordtype">double</span> cellNorm[2] ) <span class="keyword">const</span>;
<a name="l00247"></a>00247 
<a name="l00249"></a><a class="code" href="a01069.html#37488af54e7e4f0548fd3c3cdcb13312">00249</a>     <span class="keywordtype">bool</span> operator &lt; ( <span class="keyword">const</span> <a class="code" href="a01069.html" title="A class with comparison operator used to index input array norms used in threshold...">NormKey</a>&amp; other )<span class="keyword"> const </span>{
<a name="l00250"></a>00250       <span class="keywordflow">if</span> ( this-&gt;Association &lt; other.<a class="code" href="a01069.html#373b986b872c68ed381b41344e772d55">Association</a> )
<a name="l00251"></a>00251         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00252"></a>00252       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( this-&gt;Association &gt; other.<a class="code" href="a01069.html#373b986b872c68ed381b41344e772d55">Association</a> )
<a name="l00253"></a>00253         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00254"></a>00254 
<a name="l00255"></a>00255       <span class="keywordflow">if</span> ( this-&gt;Component &lt; other.<a class="code" href="a01069.html#a88d3250d8d0921365bdbfce157b0b9c">Component</a> )
<a name="l00256"></a>00256         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00257"></a>00257       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( this-&gt;Component &gt; other.<a class="code" href="a01069.html#a88d3250d8d0921365bdbfce157b0b9c">Component</a> )
<a name="l00258"></a>00258         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00259"></a>00259 
<a name="l00260"></a>00260       <span class="keywordflow">if</span> ( (! this-&gt;AllScalars) &amp;&amp; other.<a class="code" href="a01069.html#80b875e174776f41ef08ccb4a756a462">AllScalars</a> )
<a name="l00261"></a>00261         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00262"></a>00262       <span class="keywordflow">else</span> <span class="keywordflow">if</span> ( this-&gt;AllScalars &amp;&amp; (! other.<a class="code" href="a01069.html#80b875e174776f41ef08ccb4a756a462">AllScalars</a>) )
<a name="l00263"></a>00263         <span class="keywordflow">return</span> <span class="keyword">false</span>;
<a name="l00264"></a>00264 
<a name="l00265"></a>00265       <span class="keywordflow">if</span> ( this-&gt;Type == -1 )
<a name="l00266"></a>00266         {
<a name="l00267"></a>00267         <span class="keywordflow">if</span> ( other.<a class="code" href="a01069.html#781dd1612bc2dcb198c168f715fc4688">Type</a> == -1 )
<a name="l00268"></a>00268           <span class="keywordflow">return</span> this-&gt;Name &lt; other.<a class="code" href="a01069.html#a69e16dda1a4670f65cccb3451ef5a8c">Name</a>;
<a name="l00269"></a>00269         <span class="keywordflow">return</span> <span class="keyword">true</span>;
<a name="l00270"></a>00270         }
<a name="l00271"></a>00271       <span class="keywordflow">else</span>
<a name="l00272"></a>00272         {
<a name="l00273"></a>00273         <span class="keywordflow">return</span> this-&gt;Type &lt; other.<a class="code" href="a01069.html#781dd1612bc2dcb198c168f715fc4688">Type</a>;
<a name="l00274"></a>00274         }
<a name="l00275"></a>00275     }
<a name="l00276"></a>00276   };
<a name="l00277"></a>00277 
<a name="l00282"></a><a class="code" href="a01070.html">00282</a>   <span class="keyword">class </span><a class="code" href="a01070.html" title="A base class for representing threshold sets.">Set</a> {
<a name="l00283"></a>00283   <span class="keyword">public</span>:
<a name="l00284"></a><a class="code" href="a01070.html#035396bb54ed44e01106a2a5cddee73d">00284</a>     <span class="keywordtype">int</span> Id; 
<a name="l00285"></a><a class="code" href="a01070.html#33e766ab2306e13fc65fec10ce47f9f6">00285</a>     <span class="keywordtype">int</span> OutputId; 
<a name="l00286"></a>00286 
<a name="l00288"></a><a class="code" href="a01070.html#eab182002954fd0e798979c2d5a87b55">00288</a>     <a class="code" href="a01070.html" title="A base class for representing threshold sets.">Set</a>() {
<a name="l00289"></a>00289       this-&gt;OutputId = -1;
<a name="l00290"></a>00290     }
<a name="l00292"></a><a class="code" href="a01070.html#b20f92a3ec09552f45902a8fa69623be">00292</a>     <span class="keyword">virtual</span> ~<a class="code" href="a01070.html" title="A base class for representing threshold sets.">Set</a>() { }
<a name="l00294"></a>00294     <span class="keyword">virtual</span> <span class="keywordtype">void</span> PrintNodeName( ostream&amp; os );
<a name="l00296"></a>00296     <span class="keyword">virtual</span> <span class="keywordtype">void</span> PrintNode( ostream&amp; os ) = 0;
<a name="l00298"></a>00298     <span class="keyword">virtual</span> <a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">BooleanSet</a>* GetBooleanSetPointer();
<a name="l00299"></a>00299     <span class="keyword">virtual</span> <a class="code" href="a01068.html" title="A subset of a mesh represented by a range of acceptable attribute values.">Interval</a>* GetIntervalPointer();
<a name="l00300"></a>00300   };
<a name="l00301"></a>00301 
<a name="l00303"></a><a class="code" href="a01068.html">00303</a>   <span class="keyword">class </span><a class="code" href="a01068.html" title="A subset of a mesh represented by a range of acceptable attribute values.">Interval</a> : <span class="keyword">public</span> <a class="code" href="a01070.html" title="A base class for representing threshold sets.">Set</a> {
<a name="l00304"></a>00304   <span class="keyword">public</span>:
<a name="l00306"></a><a class="code" href="a01068.html#f85a77e1ddd2b924951797198641362a">00306</a>     <span class="keywordtype">double</span> EndpointValues[2];
<a name="l00308"></a><a class="code" href="a01068.html#98e6455926223657280b21e0a96c872b">00308</a>     <span class="keywordtype">int</span> EndpointClosures[2];
<a name="l00310"></a><a class="code" href="a01068.html#d49959c1cfa069fa14e9391f6a8aa643">00310</a>     <a class="code" href="a01069.html" title="A class with comparison operator used to index input array norms used in threshold...">NormKey</a> <a class="code" href="a01066.html#2f93a36ad10fcf573fd56ad7019669a9" title="Norms that can be used to threshold vector attributes.">Norm</a>;
<a name="l00311"></a>00311 
<a name="l00316"></a>00316     <span class="keywordtype">int</span> Match( <span class="keywordtype">double</span> cellNorm[2] );
<a name="l00317"></a>00317 
<a name="l00318"></a><a class="code" href="a01068.html#153a3ae353714f9b1469583b32bd1944">00318</a>     <span class="keyword">virtual</span> ~<a class="code" href="a01068.html" title="A subset of a mesh represented by a range of acceptable attribute values.">Interval</a>() { }
<a name="l00319"></a>00319     <span class="keyword">virtual</span> <span class="keywordtype">void</span> PrintNode( ostream&amp; os );
<a name="l00320"></a>00320     <span class="keyword">virtual</span> <a class="code" href="a01068.html" title="A subset of a mesh represented by a range of acceptable attribute values.">Interval</a>* GetIntervalPointer();
<a name="l00321"></a>00321   };
<a name="l00322"></a>00322 
<a name="l00324"></a><a class="code" href="a01067.html">00324</a>   <span class="keyword">class </span><a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">BooleanSet</a> : <span class="keyword">public</span> <a class="code" href="a01070.html" title="A base class for representing threshold sets.">Set</a> {
<a name="l00325"></a>00325   <span class="keyword">public</span>:
<a name="l00327"></a><a class="code" href="a01067.html#47b33bc89da836458453740cf2e16ddf">00327</a>     <span class="keywordtype">int</span> Operator;
<a name="l00329"></a><a class="code" href="a01067.html#26e2568f2c4bf78006871ec18bf82aa7">00329</a>     vtkstd::vector&lt;int&gt; Inputs;
<a name="l00330"></a>00330 
<a name="l00332"></a><a class="code" href="a01067.html#6d9dfa645a1148db424f7f4ccd32325f">00332</a>     <a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">BooleanSet</a>( <span class="keywordtype">int</span> sId, <span class="keywordtype">int</span> op, <span class="keywordtype">int</span>* inBegin, <span class="keywordtype">int</span>* inEnd ) : Inputs( inBegin, inEnd ) {
<a name="l00333"></a>00333       this-&gt;Id = sId;
<a name="l00334"></a>00334       this-&gt;Operator = op;
<a name="l00335"></a>00335     }
<a name="l00336"></a><a class="code" href="a01067.html#40905cb2a77ec5e5b50e23fdead5ea91">00336</a>     <span class="keyword">virtual</span> ~<a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">BooleanSet</a>() { }
<a name="l00337"></a>00337     <span class="keyword">virtual</span> <span class="keywordtype">void</span> PrintNode( ostream&amp; os );
<a name="l00338"></a>00338     <span class="keyword">virtual</span> <a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">BooleanSet</a>* GetBooleanSetPointer();
<a name="l00339"></a>00339   };
<a name="l00340"></a>00340   <span class="comment">//ETX</span>
<a name="l00341"></a>00341 
<a name="l00342"></a>00342 <span class="keyword">protected</span>:
<a name="l00343"></a>00343 
<a name="l00344"></a>00344   <a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>();
<a name="l00345"></a>00345   <span class="keyword">virtual</span> ~<a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>();
<a name="l00346"></a>00346 
<a name="l00347"></a>00347   <span class="comment">//BTX</span>
<a name="l00349"></a>00349 <span class="comment"></span>
<a name="l00360"></a><a class="code" href="a01066.html#29b39d972882d0e3337ff6f0303cb547">00360</a>   <span class="keyword">enum</span> <a class="code" href="a01066.html#29b39d972882d0e3337ff6f0303cb547">Ruling</a> {
<a name="l00361"></a><a class="code" href="a01066.html#29b39d972882d0e3337ff6f0303cb547726a91d56fe5872cedd52c1228456558">00361</a>     INCONCLUSIVE=-1,
<a name="l00362"></a><a class="code" href="a01066.html#29b39d972882d0e3337ff6f0303cb54706c4d4e1e910dd8cbdd10b0d71f0ab11">00362</a>     INCLUDE=-2,
<a name="l00363"></a><a class="code" href="a01066.html#29b39d972882d0e3337ff6f0303cb547c461cb21cf25b4d854b8c675dff7b4f6">00363</a>     EXCLUDE=-3
<a name="l00364"></a>00364   };
<a name="l00365"></a>00365   <span class="comment">//ETX</span>
<a name="l00367"></a>00367 <span class="comment"></span>
<a name="l00369"></a>00369   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01056.html#40c518cc34a3c85721b45158977638c4">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="l00370"></a>00370 
<a name="l00374"></a>00374   <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a01056.html#b1b78334ecb694df080659898bb05629">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="l00375"></a>00375 
<a name="l00380"></a><a class="code" href="a01066.html#34db76646279d171dc33e71d369c68da">00380</a>   <span class="keywordtype">int</span> NextArrayIndex;
<a name="l00381"></a>00381 
<a name="l00383"></a><a class="code" href="a01066.html#17539c92e6b333fe82f45737500d3517">00383</a>   <span class="keywordtype">int</span> NumberOfOutputs;
<a name="l00384"></a>00384 
<a name="l00385"></a>00385   <span class="comment">//BTX</span>
<a name="l00387"></a><a class="code" href="a01066.html#e33195bc2e7ad6b8fe0239452b0e056e">00387</a> <span class="comment"></span>  <span class="keyword">typedef</span> vtkstd::vector&lt;Interval*&gt; IntervalList;
<a name="l00389"></a><a class="code" href="a01066.html#ce63e08c14eb74c204576da2c8822d3e">00389</a>   <span class="keyword">typedef</span> vtkstd::map&lt;NormKey,IntervalList&gt; RuleMap;
<a name="l00390"></a>00390 
<a name="l00391"></a><a class="code" href="a01066.html#e96d9a7457d62468c393b18e2f98105f">00391</a>   <span class="keyword">typedef</span> vtkstd::vector&lt;int&gt; TruthTreeValues;
<a name="l00392"></a><a class="code" href="a01066.html#4b928a84efb697a33954861b64344a8b">00392</a>   <span class="keyword">typedef</span> vtkstd::vector&lt;TruthTreeValues&gt; TruthTree;
<a name="l00393"></a>00393 
<a name="l00396"></a><a class="code" href="a01066.html#54aff018d3ea6c37685d248eed5b4983">00396</a>   RuleMap IntervalRules;
<a name="l00397"></a>00397 
<a name="l00401"></a><a class="code" href="a01066.html#493d9bfb90209fe2f40c6dc1afddae4f">00401</a>   vtkstd::vector&lt;Set*&gt; Sets;
<a name="l00402"></a>00402 
<a name="l00408"></a><a class="code" href="a01066.html#0fbc2a1c82eb821b1eaf1b98c7837267">00408</a>   TruthTree DependentSets;
<a name="l00409"></a>00409 
<a name="l00411"></a>00411 
<a name="l00413"></a>00413   <span class="keywordtype">void</span> UpdateDependents(
<a name="l00414"></a>00414     <span class="keywordtype">int</span> <span class="keywordtype">id</span>, vtkstd::set&lt;int&gt;&amp; unresolvedOutputs, TruthTreeValues&amp; setStates,
<a name="l00415"></a>00415     <a class="code" href="a00245.html" title="represent and manipulate cell attribute data">vtkCellData</a>* inCellData, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> cellId, <a class="code" href="a00582.html" title="provides thread-safe access to cells">vtkGenericCell</a>* cell, vtkstd::vector&lt;vtkUnstructuredGrid*&gt;&amp; outv );
<a name="l00417"></a>00417 
<a name="l00419"></a>00419   <span class="keywordtype">int</span> AddIntervalSet( <a class="code" href="a01069.html" title="A class with comparison operator used to index input array norms used in threshold...">NormKey</a>&amp; nk, <span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> omin, <span class="keywordtype">int</span> omax );
<a name="l00420"></a>00420 
<a name="l00421"></a>00421   <span class="comment">//ETX</span>
<a name="l00422"></a>00422   
<a name="l00424"></a>00424   <span class="keywordtype">void</span> PrintGraph( ostream&amp; os );
<a name="l00425"></a>00425 
<a name="l00426"></a>00426   <a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>( <span class="keyword">const</span> <a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>&amp; ); <span class="comment">// Not implemented.</span>
<a name="l00427"></a>00427   <span class="keywordtype">void</span> operator = ( <span class="keyword">const</span> <a class="code" href="a01066.html" title="Threshold cells within multiple intervals.">vtkMultiThreshold</a>&amp; ); <span class="comment">// Not implemented.</span>
<a name="l00428"></a>00428 };
<a name="l00429"></a>00429 
<a name="l00430"></a><a class="code" href="a01066.html#71e5c4e302574535161742516c6ab6a5">00430</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a01066.html#71e5c4e302574535161742516c6ab6a5">vtkMultiThreshold::AddLowpassIntervalSet</a>( <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars )
<a name="l00431"></a>00431 {
<a name="l00432"></a>00432   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a01066.html#c0e802afa864e4692c3d5d25d33cbe10">AddIntervalSet</a>( <a class="code" href="a00996.html#49c88083ce2b8ed50d41fc4ebd9868af">vtkMath::NegInf</a>(), xmax, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, assoc, arrayName, component, allScalars );
<a name="l00433"></a>00433 }
<a name="l00434"></a>00434 
<a name="l00435"></a><a class="code" href="a01066.html#e22ff9eb449b0d9e99bf805139f5b550">00435</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a01066.html#e22ff9eb449b0d9e99bf805139f5b550">vtkMultiThreshold::AddHighpassIntervalSet</a>( <span class="keywordtype">double</span> xmin, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars )
<a name="l00436"></a>00436 {
<a name="l00437"></a>00437   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a01066.html#c0e802afa864e4692c3d5d25d33cbe10">AddIntervalSet</a>( xmin, <a class="code" href="a00996.html#54193733c61913fb566e47ba284ca7e8">vtkMath::Inf</a>(), <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, assoc, arrayName, component, allScalars );
<a name="l00438"></a>00438 }
<a name="l00439"></a>00439 
<a name="l00440"></a><a class="code" href="a01066.html#5888f73b3286974b441961e697bbc983">00440</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a01066.html#5888f73b3286974b441961e697bbc983">vtkMultiThreshold::AddBandpassIntervalSet</a>(
<a name="l00441"></a>00441   <span class="keywordtype">double</span> xmin, <span class="keywordtype">double</span> xmax, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars )
<a name="l00442"></a>00442 {
<a name="l00443"></a>00443   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a01066.html#c0e802afa864e4692c3d5d25d33cbe10">AddIntervalSet</a>( xmin, xmax, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, assoc, arrayName, component, allScalars );
<a name="l00444"></a>00444 }
<a name="l00445"></a>00445 
<a name="l00446"></a><a class="code" href="a01066.html#c64117293440a734dcf7497a9ec65419">00446</a> <span class="keyword">inline</span> <span class="keywordtype">int</span> <a class="code" href="a01066.html#c64117293440a734dcf7497a9ec65419">vtkMultiThreshold::AddNotchIntervalSet</a>(
<a name="l00447"></a>00447   <span class="keywordtype">double</span> xlo, <span class="keywordtype">double</span> xhi, <span class="keywordtype">int</span> assoc, <span class="keyword">const</span> <span class="keywordtype">char</span>* arrayName, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a>, <span class="keywordtype">int</span> allScalars )
<a name="l00448"></a>00448 {
<a name="l00449"></a>00449   <span class="keywordtype">int</span> band = this-&gt;<a class="code" href="a01066.html#c0e802afa864e4692c3d5d25d33cbe10">AddIntervalSet</a>( xlo, xhi, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, <a class="code" href="a01066.html#e45472ebb7ff828e0513636244e0652a60c3410038bf9395aa008097ded5ab59" title="Specify a closed interval.">CLOSED</a>, assoc, arrayName, component, allScalars );
<a name="l00450"></a>00450   <span class="keywordflow">if</span> ( band &lt; 0 )
<a name="l00451"></a>00451     {
<a name="l00452"></a>00452     <span class="keywordflow">return</span> -1;
<a name="l00453"></a>00453     }
<a name="l00454"></a>00454   <span class="keywordflow">return</span> this-&gt;<a class="code" href="a01066.html#9e37a69354f370ac89d8fd85e6664076">AddBooleanSet</a>( <a class="code" href="a01066.html#d0e3f1e91b9c3e3bbf1825efedfcf5c09291ac1421d14d9fe63feee0016dc29d" title="Only include elements that don&amp;#39;t belong to any input set.">NAND</a>, 1, &amp;band );
<a name="l00455"></a>00455 }
<a name="l00456"></a>00456 
<a name="l00457"></a><a class="code" href="a01070.html#7f4f39f8656a3aebb35362703adc3f64">00457</a> <span class="keyword">inline</span> <a class="code" href="a01068.html" title="A subset of a mesh represented by a range of acceptable attribute values.">vtkMultiThreshold::Interval</a>* <a class="code" href="a01070.html#7f4f39f8656a3aebb35362703adc3f64">vtkMultiThreshold::Set::GetIntervalPointer</a>()
<a name="l00458"></a>00458 {
<a name="l00459"></a>00459   <span class="keywordflow">return</span> 0;
<a name="l00460"></a>00460 }
<a name="l00461"></a>00461 
<a name="l00462"></a><a class="code" href="a01070.html#bce72aa7940a448ea2eeb48884b845b7">00462</a> <span class="keyword">inline</span> <a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">vtkMultiThreshold::BooleanSet</a>* <a class="code" href="a01070.html#bce72aa7940a448ea2eeb48884b845b7" title="Avoid dynamic_casts. Subclasses must override.">vtkMultiThreshold::Set::GetBooleanSetPointer</a>()
<a name="l00463"></a>00463 {
<a name="l00464"></a>00464   <span class="keywordflow">return</span> 0;
<a name="l00465"></a>00465 }
<a name="l00466"></a>00466 
<a name="l00467"></a><a class="code" href="a01068.html#9cb8aa6ccd49bf16c88e4c6f1f41fe86">00467</a> <span class="keyword">inline</span> <a class="code" href="a01068.html" title="A subset of a mesh represented by a range of acceptable attribute values.">vtkMultiThreshold::Interval</a>* <a class="code" href="a01068.html#9cb8aa6ccd49bf16c88e4c6f1f41fe86">vtkMultiThreshold::Interval::GetIntervalPointer</a>()
<a name="l00468"></a>00468 {
<a name="l00469"></a>00469   <span class="keywordflow">return</span> <span class="keyword">this</span>;
<a name="l00470"></a>00470 }
<a name="l00471"></a>00471 
<a name="l00472"></a><a class="code" href="a01067.html#543662ecae2bc144f629fcf1b37644e0">00472</a> <span class="keyword">inline</span> <a class="code" href="a01067.html" title="A subset of a mesh represented as a boolean set operation.">vtkMultiThreshold::BooleanSet</a>* <a class="code" href="a01067.html#543662ecae2bc144f629fcf1b37644e0" title="Avoid dynamic_casts. Subclasses must override.">vtkMultiThreshold::BooleanSet::GetBooleanSetPointer</a>()
<a name="l00473"></a>00473 {
<a name="l00474"></a>00474   <span class="keywordflow">return</span> <span class="keyword">this</span>;
<a name="l00475"></a>00475 }
<a name="l00476"></a>00476 
<a name="l00477"></a>00477 <span class="preprocessor">#endif // __vtkMultiThreshold_h</span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:28 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>