<!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/vtkMaskFields.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 Page</span></a></li> <li><a href="pages.html"><span>Related 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/vtkMaskFields.h</h1><a href="a02592.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: vtkMaskFields.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="l00029"></a>00029 <span class="preprocessor">#ifndef __vtkMaskFields_h</span> <a name="l00030"></a>00030 <span class="preprocessor"></span><span class="preprocessor">#define __vtkMaskFields_h</span> <a name="l00031"></a>00031 <span class="preprocessor"></span> <a name="l00032"></a>00032 <span class="preprocessor">#include "<a class="code" href="a02227.html">vtkDataSetAlgorithm.h</a>"</span> <a name="l00033"></a>00033 <a name="l00034"></a>00034 <span class="preprocessor">#include "<a class="code" href="a02228.html">vtkDataSetAttributes.h</a>"</span> <span class="comment">// Needed for NUM_ATTRIBUTES</span> <a name="l00035"></a>00035 <a name="l00036"></a>00036 <span class="keyword">class </span><a class="code" href="a00374.html" title="abstract class to specify dataset behavior">vtkDataSet</a>; <a name="l00037"></a>00037 <a name="l00038"></a><a class="code" href="a00990.html">00038</a> <span class="keyword">class </span><a class="code" href="a02170.html#c3c1ffe2fe47b9b70ba90182b7860cce">VTK_GRAPHICS_EXPORT</a> <a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a> : <span class="keyword">public</span> <a class="code" href="a00375.html" title="Superclass for algorithms that produce output of the same type as input.">vtkDataSetAlgorithm</a> <a name="l00039"></a>00039 { <a name="l00040"></a>00040 <span class="keyword">public</span>: <a name="l00041"></a><a class="code" href="a00990.html#40cf4e0138c857398f6fe9fdf3a76b98">00041</a> vtkTypeRevisionMacro(<a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a>,<a class="code" href="a00375.html" title="Superclass for algorithms that produce output of the same type as input.">vtkDataSetAlgorithm</a>); <a name="l00042"></a>00042 <span class="keywordtype">void</span> <a class="code" href="a00375.html#399bf1def01568753e290f9cc45d7985">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00043"></a>00043 <a name="l00045"></a>00045 <span class="keyword">static</span> <a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a> *<a class="code" href="a00375.html#366c8a9b4e61249c93fd2f7a492de9cb">New</a>(); <a name="l00046"></a>00046 <a name="l00048"></a>00048 <a name="l00057"></a><a class="code" href="a00990.html#e43fde03113b76853144dbcf4da1d11c">00057</a> <span class="keywordtype">void</span> CopyFieldOn(<span class="keywordtype">int</span> fieldLocation, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>) { this->CopyFieldOnOff(fieldLocation, name, 1); } <a name="l00058"></a><a class="code" href="a00990.html#206b0bed1d5dbd8b72ef44f7ac83d0f2">00058</a> <span class="keywordtype">void</span> CopyFieldOff(<span class="keywordtype">int</span> fieldLocation, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>) { this->CopyFieldOnOff(fieldLocation, name, 0); } <a name="l00060"></a>00060 <a name="l00061"></a>00061 <a name="l00063"></a>00063 <a name="l00073"></a><a class="code" href="a00990.html#669d4bdb52eeeeac7d4667b7b837e63b">00073</a> <span class="keywordtype">void</span> CopyAttributeOn(<span class="keywordtype">int</span> attributeLocation, <span class="keywordtype">int</span> attributeType) { this->CopyAttributeOnOff(attributeLocation, attributeType, 1); } <a name="l00074"></a><a class="code" href="a00990.html#3dd34851cb0185f405cc7eae0a8f0476">00074</a> <span class="keywordtype">void</span> CopyAttributeOff(<span class="keywordtype">int</span> attributeLocation, <span class="keywordtype">int</span> attributeType) { this->CopyAttributeOnOff(attributeLocation, attributeType, 0); } <a name="l00076"></a>00076 <a name="l00078"></a>00078 <a name="l00080"></a><a class="code" href="a00990.html#b0b92cf575b896c1e094b5da1dc32125">00080</a> <span class="keywordtype">void</span> CopyFieldsOff() { this->CopyFields = 0; } <a name="l00081"></a><a class="code" href="a00990.html#e7fc6d6419afe039cb818d1b75c28622">00081</a> <span class="keywordtype">void</span> CopyAttributesOff() { this->CopyAttributes = 0; } <a name="l00083"></a>00083 <a name="l00084"></a><a class="code" href="a00990.html#2ca7b1ceed41eeeae8c9ba406f10bbbb">00084</a> <span class="keywordtype">void</span> CopyFieldsOn() { this->CopyFields = 1; } <a name="l00085"></a><a class="code" href="a00990.html#5a359bb9b465ec99c24c956d5faf97fc">00085</a> <span class="keywordtype">void</span> CopyAttributesOn() { this->CopyAttributes = 1; } <a name="l00086"></a>00086 <a name="l00088"></a>00088 <a name="l00090"></a>00090 <span class="keywordtype">void</span> CopyAttributeOn(<span class="keyword">const</span> <span class="keywordtype">char</span>* attributeLoc, <a name="l00091"></a>00091 <span class="keyword">const</span> <span class="keywordtype">char</span>* attributeType); <a name="l00092"></a>00092 <span class="keywordtype">void</span> CopyAttributeOff(<span class="keyword">const</span> <span class="keywordtype">char</span>* attributeLoc, <a name="l00093"></a>00093 <span class="keyword">const</span> <span class="keywordtype">char</span>* attributeType); <a name="l00094"></a>00094 <span class="keywordtype">void</span> CopyFieldOn(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldLoc, <a name="l00095"></a>00095 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>); <a name="l00096"></a>00096 <span class="keywordtype">void</span> CopyFieldOff(<span class="keyword">const</span> <span class="keywordtype">char</span>* fieldLoc, <a name="l00097"></a>00097 <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>); <a name="l00099"></a>00099 <a name="l00105"></a>00105 <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyAllOn(); <a name="l00106"></a>00106 <a name="l00112"></a>00112 <span class="keyword">virtual</span> <span class="keywordtype">void</span> CopyAllOff(); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="comment">//BTX</span> <a name="l00115"></a><a class="code" href="a00990.html#a0a80d0cc6dd479a411478cd3a031187">00115</a> <span class="keyword">enum</span> <a class="code" href="a00990.html#a0a80d0cc6dd479a411478cd3a031187">FieldLocation</a> <a name="l00116"></a>00116 { <a name="l00117"></a><a class="code" href="a00990.html#a0a80d0cc6dd479a411478cd3a03118713925cf8440398b4822da0f8faccdeab">00117</a> OBJECT_DATA=0, <a name="l00118"></a><a class="code" href="a00990.html#a0a80d0cc6dd479a411478cd3a0311876bbe84a1634e51cb49e849e981fe9e00">00118</a> POINT_DATA=1, <a name="l00119"></a><a class="code" href="a00990.html#a0a80d0cc6dd479a411478cd3a031187df4099e3181740cf8a20c1b02af847da">00119</a> CELL_DATA=2 <a name="l00120"></a>00120 }; <a name="l00121"></a>00121 <span class="comment">//ETX</span> <a name="l00122"></a>00122 <a name="l00123"></a>00123 <span class="keyword">protected</span>: <a name="l00124"></a>00124 <a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a>(); <a name="l00125"></a>00125 <span class="keyword">virtual</span> ~<a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a>(); <a name="l00126"></a>00126 <a name="l00127"></a>00127 <span class="keyword">virtual</span> <span class="keywordtype">int</span> <a class="code" href="a00375.html#49f7d102eea1f3c58aae7281a1b708cc">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="l00128"></a>00128 <a name="l00129"></a>00129 <span class="comment">//BTX</span> <a name="l00130"></a><a class="code" href="a00991.html">00130</a> <span class="keyword">struct </span><a class="code" href="a00991.html">CopyFieldFlag</a> <a name="l00131"></a>00131 { <a name="l00132"></a><a class="code" href="a00991.html#3abc880ab0e0dda42f79e3781822c1e9">00132</a> <span class="keywordtype">char</span>* Name; <a name="l00133"></a><a class="code" href="a00991.html#e94c2175c41133c72bff367ab77cb02c">00133</a> <span class="keywordtype">int</span> Type; <a name="l00134"></a><a class="code" href="a00991.html#470e5796d8d8a619eb6b673c95408664">00134</a> <span class="keywordtype">int</span> Location; <a name="l00135"></a><a class="code" href="a00991.html#de98af947e96e2064d3b8590cb718bb6">00135</a> <span class="keywordtype">int</span> IsCopied; <a name="l00136"></a>00136 }; <a name="l00137"></a>00137 <span class="comment">//ETX</span> <a name="l00138"></a>00138 <a name="l00139"></a><a class="code" href="a00990.html#914b095f7381030a4f985fea188e226b">00139</a> <a class="code" href="a00991.html">CopyFieldFlag</a>* CopyFieldFlags; <span class="comment">// the names of fields not to be copied</span> <a name="l00140"></a><a class="code" href="a00990.html#8433308d2bf04c802511b057fe4fc367">00140</a> <span class="keywordtype">int</span> NumberOfFieldFlags; <span class="comment">// the number of fields not to be copied</span> <a name="l00141"></a>00141 <span class="keywordtype">void</span> CopyFieldOnOff(<span class="keywordtype">int</span> fieldLocation, <span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>, <span class="keywordtype">int</span> onOff); <a name="l00142"></a>00142 <span class="keywordtype">void</span> CopyAttributeOnOff(<span class="keywordtype">int</span> attributeLocation, <span class="keywordtype">int</span> attributeType, <span class="keywordtype">int</span> onOff); <a name="l00143"></a>00143 <span class="keywordtype">void</span> ClearFieldFlags(); <a name="l00144"></a>00144 <span class="keywordtype">int</span> FindFlag(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>); <a name="l00145"></a>00145 <span class="keywordtype">int</span> FindFlag(<span class="keywordtype">int</span> arrayType, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>); <a name="l00146"></a>00146 <span class="keywordtype">int</span> GetFlag(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515fdf24c5348eccaabee77f038f47b36b89">field</a>, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>); <a name="l00147"></a>00147 <span class="keywordtype">int</span> GetFlag(<span class="keywordtype">int</span> arrayType, <span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d21013c73d49b0f10fc872e9c7895421e213">location</a>); <a name="l00148"></a>00148 <span class="keywordtype">int</span> GetAttributeLocation(<span class="keyword">const</span> <span class="keywordtype">char</span>* loc); <a name="l00149"></a>00149 <span class="keywordtype">int</span> GetAttributeType(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2108e7f81709ed57920a45c02a954726847">type</a>); <a name="l00150"></a>00150 <a name="l00151"></a><a class="code" href="a00990.html#48dba583caeade6b3769c4f1c9f395ca">00151</a> <span class="keywordtype">int</span> CopyFields; <a name="l00152"></a><a class="code" href="a00990.html#9c25f51899f931f28eac90628c844fd9">00152</a> <span class="keywordtype">int</span> CopyAttributes; <a name="l00153"></a>00153 <a name="l00154"></a><a class="code" href="a00990.html#e8e41b3f7bd77a50a52c73ea098642ad">00154</a> <span class="keyword">static</span> <span class="keywordtype">char</span> FieldLocationNames[3][12]; <a name="l00155"></a><a class="code" href="a00990.html#eb0fd9311f14b7bccf25894c16eedcf7">00155</a> <span class="keyword">static</span> <span class="keywordtype">char</span> AttributeNames[<a class="code" href="a00376.html#156a8842bffd9139fa81193cca0d5bcbc61e717a84f04b31880e846cad0664e2">vtkDataSetAttributes::NUM_ATTRIBUTES</a>][10]; <a name="l00156"></a>00156 <a name="l00157"></a>00157 <span class="keyword">private</span>: <a name="l00158"></a>00158 <a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a>(<span class="keyword">const</span> <a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a>&); <span class="comment">// Not implemented.</span> <a name="l00159"></a>00159 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00990.html" title="Allow control of which fields get passed to the output.">vtkMaskFields</a>&); <span class="comment">// Not implemented.</span> <a name="l00160"></a>00160 }; <a name="l00161"></a>00161 <a name="l00162"></a>00162 <span class="preprocessor">#endif</span> <a name="l00163"></a>00163 <span class="preprocessor"></span> <a name="l00164"></a>00164 </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:28 2009 for VTK by <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>