<!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/Filtering/vtkGenericAttributeCollection.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/Filtering/vtkGenericAttributeCollection.h</h1><a href="a02252.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: vtkGenericAttributeCollection.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="l00025"></a>00025 <span class="preprocessor">#ifndef __vtkGenericAttributeCollection_h</span> <a name="l00026"></a>00026 <span class="preprocessor"></span><span class="preprocessor">#define __vtkGenericAttributeCollection_h</span> <a name="l00027"></a>00027 <span class="preprocessor"></span> <a name="l00028"></a>00028 <span class="preprocessor">#include "<a class="code" href="a02079.html">vtkObject.h</a>"</span> <a name="l00029"></a>00029 <a name="l00030"></a>00030 <span class="keyword">class </span>vtkGenericAttributeInternalVector; <a name="l00031"></a>00031 <span class="keyword">class </span>vtkIntInternalVector; <a name="l00032"></a>00032 <span class="keyword">class </span><a class="code" href="a00580.html" title="abstract class defined API for attribute data">vtkGenericAttribute</a>; <a name="l00033"></a>00033 <a name="l00034"></a><a class="code" href="a00581.html">00034</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> : <span class="keyword">public</span> <a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a> <a name="l00035"></a>00035 { <a name="l00036"></a>00036 <span class="keyword">public</span>: <a name="l00038"></a>00038 <span class="keyword">static</span> <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> *<a class="code" href="a01084.html#4d5b227267c076d6f9e38483370b6612">New</a>(); <a name="l00039"></a>00039 <a name="l00041"></a>00041 <a name="l00042"></a><a class="code" href="a00581.html#e0a0570b2670f2bae0b7214223845756">00042</a> vtkTypeRevisionMacro(<a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a>,<a class="code" href="a01084.html" title="abstract base class for most VTK objects">vtkObject</a>); <a name="l00043"></a>00043 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a01084.html#bf3dbb4154289b56a12483eee3866263">PrintSelf</a>(ostream& os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00045"></a>00045 <a name="l00049"></a>00049 <span class="keywordtype">int</span> GetNumberOfAttributes(); <a name="l00050"></a>00050 <a name="l00053"></a>00053 <span class="keywordtype">int</span> GetNumberOfComponents(); <a name="l00054"></a>00054 <a name="l00058"></a>00058 <span class="keywordtype">int</span> GetNumberOfPointCenteredComponents(); <a name="l00059"></a>00059 <a name="l00063"></a>00063 <span class="keywordtype">int</span> GetMaxNumberOfComponents(); <a name="l00064"></a>00064 <a name="l00068"></a>00068 <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> GetActualMemorySize(); <a name="l00069"></a>00069 <a name="l00072"></a>00072 <span class="keywordtype">int</span> IsEmpty(); <a name="l00073"></a>00073 <a name="l00077"></a>00077 <a class="code" href="a00580.html" title="abstract class defined API for attribute data">vtkGenericAttribute</a> *GetAttribute(<span class="keywordtype">int</span> i); <a name="l00078"></a>00078 <a name="l00083"></a>00083 <span class="keywordtype">int</span> FindAttribute(<span class="keyword">const</span> <span class="keywordtype">char</span> *<a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>); <a name="l00084"></a>00084 <a name="l00089"></a>00089 <span class="keywordtype">int</span> GetAttributeIndex(<span class="keywordtype">int</span> i); <a name="l00090"></a>00090 <a name="l00095"></a>00095 <span class="keywordtype">void</span> InsertNextAttribute(<a class="code" href="a00580.html" title="abstract class defined API for attribute data">vtkGenericAttribute</a> *a); <a name="l00096"></a>00096 <a name="l00101"></a>00101 <span class="keywordtype">void</span> InsertAttribute(<span class="keywordtype">int</span> i, <a class="code" href="a00580.html" title="abstract class defined API for attribute data">vtkGenericAttribute</a> *a); <a name="l00102"></a>00102 <a name="l00106"></a>00106 <span class="keywordtype">void</span> RemoveAttribute(<span class="keywordtype">int</span> i); <a name="l00107"></a>00107 <a name="l00109"></a>00109 <span class="keywordtype">void</span> Reset(); <a name="l00110"></a>00110 <a name="l00114"></a>00114 <span class="keywordtype">void</span> DeepCopy(<a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> *other); <a name="l00115"></a>00115 <a name="l00119"></a>00119 <span class="keywordtype">void</span> ShallowCopy(<a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> *other); <a name="l00120"></a>00120 <a name="l00123"></a>00123 <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <span class="keywordtype">int</span> <a class="code" href="a01084.html#8137c0551b29bb996f0dd2f886bcd2da">GetMTime</a>(); <a name="l00124"></a>00124 <a name="l00125"></a>00125 <span class="comment">// *** ALL THE FOLLOWING METHODS SHOULD BE REMOVED WHEN when the </span> <a name="l00126"></a>00126 <span class="comment">// new pipeline update mechanism is checked in.</span> <a name="l00127"></a>00127 <span class="comment">// *** BEGIN</span> <a name="l00128"></a>00128 <a name="l00130"></a>00130 <a name="l00133"></a>00133 vtkGetMacro(ActiveAttribute, <span class="keywordtype">int</span>); <a name="l00135"></a>00135 <a name="l00137"></a>00137 <a name="l00141"></a>00141 vtkGetMacro(ActiveComponent, <span class="keywordtype">int</span>); <a name="l00143"></a>00143 <a name="l00150"></a>00150 <span class="keywordtype">void</span> SetActiveAttribute(<span class="keywordtype">int</span> attribute, <span class="keywordtype">int</span> <a class="code" href="a03761.html#88ade42854f67d6297898362e17a515f78fb09245c9bd345bf96d579664f9736">component</a> = 0); <a name="l00151"></a>00151 <a name="l00153"></a>00153 <a name="l00155"></a>00155 vtkGetMacro(NumberOfAttributesToInterpolate, <span class="keywordtype">int</span>); <a name="l00157"></a>00157 <a name="l00158"></a>00158 <span class="comment">//BTX</span> <a name="l00160"></a>00160 <span class="comment"></span> <a name="l00163"></a>00163 <span class="keywordtype">int</span> *GetAttributesToInterpolate(); <a name="l00164"></a>00164 <span class="comment">//ETX</span> <a name="l00166"></a>00166 <span class="comment"></span> <a name="l00170"></a>00170 <span class="keywordtype">int</span> HasAttribute(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>, <span class="keywordtype">int</span> *attributes, <span class="keywordtype">int</span> attribute); <a name="l00171"></a>00171 <a name="l00173"></a>00173 <a name="l00179"></a>00179 <span class="keywordtype">void</span> SetAttributesToInterpolate(<span class="keywordtype">int</span> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210e3d5e7c015dff08d8daf72a0102e1444">size</a>, <span class="keywordtype">int</span> *attributes); <a name="l00180"></a>00180 <span class="keywordtype">void</span> SetAttributesToInterpolateToAll(); <a name="l00182"></a>00182 <a name="l00183"></a>00183 <span class="keyword">protected</span>: <a name="l00185"></a>00185 <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a>(); <a name="l00186"></a>00186 <a name="l00188"></a>00188 <span class="keyword">virtual</span> ~<a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a>(); <a name="l00189"></a>00189 <a name="l00191"></a>00191 <a name="l00192"></a><a class="code" href="a00581.html#6d77fd0e5e5514e1e6ff616548a1d9e8">00192</a> vtkGenericAttributeInternalVector* AttributeInternalVector; <a name="l00193"></a>00193 <span class="comment">// Description:</span> <a name="l00194"></a>00194 <span class="comment">// STL vector for storing index of point centered attributes</span> <a name="l00195"></a><a class="code" href="a00581.html#f49cb3c67dd3096af3cf6f1ac5a02055">00195</a> vtkIntInternalVector *AttributeIndices; <a name="l00197"></a>00197 <a name="l00198"></a><a class="code" href="a00581.html#62211033ff3403309fe1e4db05569375">00198</a> <span class="keywordtype">int</span> ActiveAttribute; <a name="l00199"></a><a class="code" href="a00581.html#6b76e420749d687965388a4199237649">00199</a> <span class="keywordtype">int</span> ActiveComponent; <a name="l00200"></a><a class="code" href="a00581.html#9eba374851d267463d5dfe2675f5fe0e">00200</a> <span class="keywordtype">int</span> NumberOfAttributesToInterpolate; <a name="l00201"></a><a class="code" href="a00581.html#3d7476ff212ffa1886a7c0abfad39b22">00201</a> <span class="keywordtype">int</span> AttributesToInterpolate[10]; <a name="l00202"></a>00202 <a name="l00203"></a><a class="code" href="a00581.html#274195441ef97236542d1370e46afb06">00203</a> <span class="keywordtype">int</span> NumberOfComponents; <span class="comment">// cache</span> <a name="l00204"></a><a class="code" href="a00581.html#60ebabba020c6b543ed330551168b205">00204</a> <span class="keywordtype">int</span> NumberOfPointCenteredComponents; <span class="comment">// cache</span> <a name="l00205"></a><a class="code" href="a00581.html#d897f12ef4c0f71af2a73afad55cd330">00205</a> <span class="keywordtype">int</span> MaxNumberOfComponents; <span class="comment">// cache</span> <a name="l00206"></a><a class="code" href="a00581.html#66f3ae92cce0d26be33a18852fecc959">00206</a> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> ActualMemorySize; <span class="comment">// cache</span> <a name="l00207"></a><a class="code" href="a00581.html#4ab4ab3433e7dd9fb068859152527c83">00207</a> <a class="code" href="a01719.html" title="record modification and/or execution time">vtkTimeStamp</a> ComputeTime; <span class="comment">// cache time stamp</span> <a name="l00208"></a>00208 <a name="l00211"></a>00211 <span class="keywordtype">void</span> ComputeNumbers(); <a name="l00212"></a>00212 <a name="l00213"></a>00213 <span class="keyword">private</span>: <a name="l00214"></a>00214 <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a>(<span class="keyword">const</span> <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> &); <span class="comment">// Not implemented.</span> <a name="l00215"></a>00215 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a00581.html" title="a collection of attributes">vtkGenericAttributeCollection</a> &); <span class="comment">// Not implemented.</span> <a name="l00216"></a>00216 }; <a name="l00217"></a>00217 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:15 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>