<!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/Infovis/vtkArrayMap.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/Infovis/vtkArrayMap.h</h1><a href="a02985.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: vtkArrayMap.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="l00038"></a>00038 <span class="preprocessor">#ifndef __vtkArrayMap_h</span> <a name="l00039"></a>00039 <span class="preprocessor"></span><span class="preprocessor">#define __vtkArrayMap_h</span> <a name="l00040"></a>00040 <span class="preprocessor"></span> <a name="l00041"></a>00041 <span class="preprocessor">#include "<a class="code" href="a02315.html">vtkPassInputTypeAlgorithm.h</a>"</span> <a name="l00042"></a>00042 <a name="l00043"></a>00043 <span class="keyword">class </span>vtkMapType; <a name="l00044"></a>00044 <span class="keyword">class </span><a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a>; <a name="l00045"></a>00045 <a name="l00046"></a><a class="code" href="a00134.html">00046</a> <span class="keyword">class </span><a class="code" href="a02170.html#73f1c245b8811be3c4b76b0a89784e70">VTK_INFOVIS_EXPORT</a> <a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a> : <span class="keyword">public</span> <a class="code" href="a01178.html" title="Superclass for algorithms that produce output of the same type as input.">vtkPassInputTypeAlgorithm</a> <a name="l00047"></a>00047 { <a name="l00048"></a>00048 <span class="keyword">public</span>: <a name="l00049"></a><a class="code" href="a00134.html#4f1b1c46a8244e4b79f3df7a718a13e9">00049</a> vtkTypeRevisionMacro(<a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a>,<a class="code" href="a01178.html" title="Superclass for algorithms that produce output of the same type as input.">vtkPassInputTypeAlgorithm</a>); <a name="l00050"></a>00050 <span class="keywordtype">void</span> <a class="code" href="a01178.html#fd104ee7f0cb997633bdbce7796bbf2b">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00051"></a>00051 <a name="l00052"></a>00052 <span class="keyword">static</span> <a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a> *<a class="code" href="a01178.html#146751972629ab4d679d7efd68d7154f">New</a>(); <a name="l00053"></a>00053 <a name="l00055"></a>00055 <a name="l00057"></a>00057 vtkSetMacro(<a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986">FieldType</a>, <span class="keywordtype">int</span>); <a name="l00058"></a>00058 vtkGetMacro(<a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986">FieldType</a>, <span class="keywordtype">int</span>); <a name="l00060"></a>00060 <a name="l00062"></a>00062 <a name="l00065"></a>00065 vtkSetMacro(PassArray, <span class="keywordtype">int</span>); <a name="l00066"></a>00066 vtkGetMacro(PassArray, <span class="keywordtype">int</span>); <a name="l00067"></a>00067 vtkBooleanMacro(PassArray, <span class="keywordtype">int</span>); <a name="l00069"></a>00069 <a name="l00071"></a>00071 <a name="l00074"></a>00074 vtkSetMacro(FillValue, <span class="keywordtype">double</span>); <a name="l00075"></a>00075 vtkGetMacro(FillValue, <span class="keywordtype">double</span>); <a name="l00077"></a>00077 <a name="l00079"></a>00079 <a name="l00081"></a>00081 vtkSetStringMacro(InputArrayName); <a name="l00082"></a>00082 vtkGetStringMacro(InputArrayName); <a name="l00084"></a>00084 <a name="l00086"></a>00086 <a name="l00087"></a>00087 vtkSetStringMacro(OutputArrayName); <a name="l00088"></a>00088 vtkGetStringMacro(OutputArrayName); <a name="l00090"></a>00090 <a name="l00092"></a>00092 <a name="l00094"></a>00094 vtkGetMacro(OutputArrayType, <span class="keywordtype">int</span>); <a name="l00095"></a>00095 vtkSetMacro(OutputArrayType, <span class="keywordtype">int</span>); <a name="l00097"></a>00097 <a name="l00101"></a>00101 <span class="keywordtype">void</span> AddToMap(<a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> from, <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> to); <a name="l00102"></a>00102 <span class="comment">//ETX</span> <a name="l00103"></a>00103 <span class="keywordtype">void</span> AddToMap(<span class="keywordtype">int</span> from, <span class="keywordtype">int</span> to); <a name="l00104"></a>00104 <span class="keywordtype">void</span> AddToMap(<span class="keywordtype">int</span> from, <span class="keywordtype">char</span> *to); <a name="l00105"></a>00105 <span class="keywordtype">void</span> AddToMap(<span class="keywordtype">char</span> *from, <span class="keywordtype">int</span> to); <a name="l00106"></a>00106 <span class="keywordtype">void</span> AddToMap(<span class="keywordtype">char</span> *from, <span class="keywordtype">char</span> *to); <a name="l00107"></a>00107 <a name="l00109"></a>00109 <span class="keywordtype">void</span> ClearMap(); <a name="l00110"></a>00110 <a name="l00112"></a>00112 <span class="keywordtype">int</span> GetMapSize(); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="comment">//BTX</span> <a name="l00115"></a>00115 <span class="comment">// Always keep NUM_ATTRIBUTE_LOCS as the last entry</span> <a name="l00116"></a><a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986">00116</a> <span class="keyword">enum</span> <a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986">FieldType</a> <a name="l00117"></a>00117 { <a name="l00118"></a><a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b69862d18b3ca9b2752e407d9d5bf19c28200">00118</a> POINT_DATA=0, <a name="l00119"></a><a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986a1ffbb8f7d99123c33bdfe5f54c18afd">00119</a> CELL_DATA=1, <a name="l00120"></a><a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986ea46002971c3a66642f9b50be88d69c6">00120</a> VERTEX_DATA=2, <a name="l00121"></a><a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986d29d44ab03159b720b80b48eab80b315">00121</a> EDGE_DATA=3, <a name="l00122"></a><a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b69864da9a86b3afe40d270906957ac523997">00122</a> NUM_ATTRIBUTE_LOCS <a name="l00123"></a>00123 }; <a name="l00124"></a>00124 <span class="comment">//ETX</span> <a name="l00125"></a>00125 <a name="l00126"></a>00126 <span class="keyword">protected</span>: <a name="l00127"></a>00127 <a name="l00128"></a>00128 <a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a>(); <a name="l00129"></a>00129 <span class="keyword">virtual</span> ~<a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a>(); <a name="l00130"></a>00130 <a name="l00131"></a>00131 <span class="keywordtype">int</span> <a class="code" href="a01178.html#c3ae1f96dfc46c6556bbb8a73332bb0b">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="l00132"></a>00132 <span class="keywordtype">int</span> <a class="code" href="a01178.html#94cce1fbb7e334dd5b78a0ca9264bc35">FillInputPortInformation</a>(<span class="keywordtype">int</span>, <a class="code" href="a00872.html" title="Store vtkAlgorithm input/output information.">vtkInformation</a> *); <a name="l00133"></a>00133 <a name="l00134"></a><a class="code" href="a00134.html#74cc28f9f82564236de8acfac7c733be">00134</a> <span class="keywordtype">char</span>* InputArrayName; <a name="l00135"></a><a class="code" href="a00134.html#7a21fad113bf6b0fd721ad0fc4362fad">00135</a> <span class="keywordtype">char</span>* OutputArrayName; <a name="l00136"></a><a class="code" href="a00134.html#82e1c54c4beea38e8474207174057883">00136</a> <span class="keywordtype">int</span> OutputArrayType; <a name="l00137"></a><a class="code" href="a00134.html#6225f3343834c70f0b0d7f9eef5c6bc5">00137</a> <span class="keywordtype">int</span> <a class="code" href="a00134.html#8c45ca538a7cfad1444dee1a515b6986">FieldType</a>; <a name="l00138"></a><a class="code" href="a00134.html#8f6691802e13a96cbcdc462a800aa25a">00138</a> <span class="keywordtype">int</span> MapType; <a name="l00139"></a><a class="code" href="a00134.html#f683bbccc3cab26a9c14aa5447ac398b">00139</a> <span class="keywordtype">int</span> PassArray; <a name="l00140"></a><a class="code" href="a00134.html#9ae97aed0d81f851932311afe7f1bdfe">00140</a> <span class="keywordtype">double</span> FillValue; <a name="l00141"></a>00141 <a name="l00142"></a>00142 <span class="comment">// PIMPL idiom to hide map implementation.</span> <a name="l00143"></a><a class="code" href="a00134.html#4328957fad137f15ac10aff67b1fa72b">00143</a> vtkMapType *Map; <a name="l00144"></a>00144 <a name="l00145"></a>00145 <span class="keyword">private</span>: <a name="l00146"></a>00146 <a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a>(<span class="keyword">const</span> <a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a>&); <span class="comment">// Not implemented.</span> <a name="l00147"></a>00147 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00134.html" title="Map values in an input array to different values in an output array of (possibly)...">vtkArrayMap</a>&); <span class="comment">// Not implemented.</span> <a name="l00148"></a>00148 }; <a name="l00149"></a>00149 <a name="l00150"></a>00150 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:36 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>