Sophie

Sophie

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

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/Filtering/vtkTable.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/Filtering/vtkTable.h</h1><a href="a02379.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: vtkTable.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 2008 Sandia Corporation.</span>
<a name="l00017"></a>00017 <span class="comment">  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,</span>
<a name="l00018"></a>00018 <span class="comment">  the U.S. Government retains certain rights in this software.</span>
<a name="l00019"></a>00019 <span class="comment">-------------------------------------------------------------------------*/</span>
<a name="l00053"></a>00053 <span class="preprocessor">#ifndef __vtkTable_h</span>
<a name="l00054"></a>00054 <span class="preprocessor"></span><span class="preprocessor">#define __vtkTable_h</span>
<a name="l00055"></a>00055 <span class="preprocessor"></span>
<a name="l00056"></a>00056 <span class="preprocessor">#include "<a class="code" href="a02221.html">vtkDataObject.h</a>"</span>
<a name="l00057"></a>00057 
<a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>;
<a name="l00059"></a>00059 <span class="keyword">class </span><a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>;
<a name="l00060"></a>00060 <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="l00061"></a>00061 <span class="keyword">class </span><a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a>;
<a name="l00062"></a>00062 
<a name="l00063"></a><a class="code" href="a01657.html">00063</a> <span class="keyword">class </span><a class="code" href="a02170.html#95ced7977a6b6b1bf9f38bf04e3835b6">VTK_FILTERING_EXPORT</a> <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a> : <span class="keyword">public</span> <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>
<a name="l00064"></a>00064 {
<a name="l00065"></a>00065 <span class="keyword">public</span>:
<a name="l00066"></a>00066   <span class="keyword">static</span> <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>* <a class="code" href="a00362.html#13d4f201619a19a9b39978e92239cd98">New</a>();
<a name="l00067"></a><a class="code" href="a01657.html#1bce1b2cd62412aacbf9632ae1b60982">00067</a>   vtkTypeRevisionMacro(<a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>, <a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>);
<a name="l00068"></a>00068   <span class="keywordtype">void</span> <a class="code" href="a00362.html#41fc1279a91124320705e5fc98f623c7">PrintSelf</a>(ostream &amp;os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent);
<a name="l00069"></a>00069 
<a name="l00071"></a>00071   <span class="keywordtype">void</span> Dump( <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> colWidth = 16 ); 
<a name="l00072"></a>00072 
<a name="l00074"></a><a class="code" href="a01657.html#144f94a7b032b277061b9bf5283f4225">00074</a>   <span class="keywordtype">int</span> <a class="code" href="a00362.html#a29b32b4beac6a90d31d4751f427add7">GetDataObjectType</a>() {<span class="keywordflow">return</span> <a class="code" href="a02149.html#9a83fb6897373d867f7372b629897953">VTK_TABLE</a>;}
<a name="l00075"></a>00075 
<a name="l00081"></a>00081   <span class="keyword">virtual</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">long</span> <a class="code" href="a00362.html#224aa0e7fafd101e9d1a316e126dbf87">GetActualMemorySize</a>();
<a name="l00082"></a>00082 
<a name="l00084"></a>00084 
<a name="l00085"></a>00085   vtkGetObjectMacro(RowData, <a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>);
<a name="l00086"></a>00086   <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetRowData(<a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210eb708a412c0730a6b5f3215b36474a1e">data</a>);
<a name="l00088"></a>00088 
<a name="l00089"></a>00089   <span class="comment">//</span>
<a name="l00090"></a>00090   <span class="comment">// Row functions</span>
<a name="l00091"></a>00091   <span class="comment">//</span>
<a name="l00092"></a>00092 
<a name="l00094"></a>00094   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetNumberOfRows();
<a name="l00095"></a>00095 
<a name="l00098"></a>00098   <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a>* GetRow(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row);
<a name="l00099"></a>00099 
<a name="l00102"></a>00102   <span class="keywordtype">void</span> GetRow(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row, <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *values);
<a name="l00103"></a>00103 
<a name="l00106"></a>00106   <span class="keywordtype">void</span> SetRow(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row, <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a> *values);
<a name="l00107"></a>00107 
<a name="l00109"></a>00109   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> InsertNextBlankRow();
<a name="l00110"></a>00110 
<a name="l00113"></a>00113   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> InsertNextRow(<a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a>* arr);
<a name="l00114"></a>00114 
<a name="l00117"></a>00117   <span class="keywordtype">void</span> RemoveRow(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row);
<a name="l00118"></a>00118 
<a name="l00119"></a>00119   <span class="comment">//</span>
<a name="l00120"></a>00120   <span class="comment">// Column functions</span>
<a name="l00121"></a>00121   <span class="comment">//</span>
<a name="l00122"></a>00122 
<a name="l00124"></a>00124   <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> GetNumberOfColumns();
<a name="l00125"></a>00125 
<a name="l00127"></a>00127   <span class="keyword">const</span> <span class="keywordtype">char</span>* GetColumnName(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> col);
<a name="l00128"></a>00128 
<a name="l00130"></a>00130   <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* GetColumnByName(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00131"></a>00131 
<a name="l00133"></a>00133   <a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* GetColumn(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> col);
<a name="l00134"></a>00134 
<a name="l00136"></a>00136   <span class="keywordtype">void</span> AddColumn(<a class="code" href="a00081.html" title="Abstract superclass for all arrays.">vtkAbstractArray</a>* arr);
<a name="l00137"></a>00137 
<a name="l00139"></a>00139   <span class="keywordtype">void</span> RemoveColumnByName(<span class="keyword">const</span> <span class="keywordtype">char</span>* <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d210c713735f1d46c2694d66e85217207be2">name</a>);
<a name="l00140"></a>00140 
<a name="l00142"></a>00142   <span class="keywordtype">void</span> RemoveColumn(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> col);
<a name="l00143"></a>00143 
<a name="l00144"></a>00144   <span class="comment">//</span>
<a name="l00145"></a>00145   <span class="comment">// Table single entry functions</span>
<a name="l00146"></a>00146   <span class="comment">//</span>
<a name="l00147"></a>00147 
<a name="l00148"></a>00148   <span class="comment">//BTX</span>
<a name="l00153"></a>00153 <span class="comment"></span>  <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> GetValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> col);
<a name="l00154"></a>00154 
<a name="l00157"></a>00157   <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> GetValueByName(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row, <span class="keyword">const</span> <span class="keywordtype">char</span>* col);
<a name="l00158"></a>00158 
<a name="l00160"></a>00160   <span class="keywordtype">void</span> SetValue(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row, <a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> col, <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00161"></a>00161 
<a name="l00163"></a>00163 
<a name="l00164"></a>00164   <span class="keywordtype">void</span> SetValueByName(<a class="code" href="a02149.html#20bd6b6dedfe1bbb096c50354d52cc7e">vtkIdType</a> row, <span class="keyword">const</span> <span class="keywordtype">char</span>* col, <a class="code" href="a01810.html" title="A atomic type representing the union of many types.">vtkVariant</a> <a class="code" href="a03761.html#c6551f7bf833e8254b2b3ecdaea0d2106bf5e5151797630e91167caab3f22b9a">value</a>);
<a name="l00165"></a>00165   <span class="comment">//ETX</span>
<a name="l00167"></a>00167 <span class="comment"></span>  
<a name="l00169"></a>00169   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00362.html#125a61962658df7dd87d0c5755c06193">Initialize</a>();
<a name="l00170"></a>00170 
<a name="l00172"></a>00172 
<a name="l00173"></a>00173   <span class="keyword">static</span> <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>* <a class="code" href="a00362.html#d7ebc4f6ec32a1db7e6cfc0ff6974559">GetData</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="l00174"></a>00174   <span class="keyword">static</span> <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>* <a class="code" href="a00362.html#d7ebc4f6ec32a1db7e6cfc0ff6974559">GetData</a>(<a class="code" href="a00895.html" title="Store zero or more vtkInformation instances.">vtkInformationVector</a>* v, <span class="keywordtype">int</span> i=0);
<a name="l00176"></a>00176 
<a name="l00178"></a>00178 
<a name="l00179"></a>00179   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00362.html#04a5fb60bdbc929ce84f0cd14d911dbe">ShallowCopy</a>(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* src);
<a name="l00180"></a>00180   <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00362.html#455b17df288af545f40c3a013714f114">DeepCopy</a>(<a class="code" href="a00362.html" title="general representation of visualization data">vtkDataObject</a>* src);
<a name="l00182"></a>00182 
<a name="l00183"></a>00183 <span class="keyword">protected</span>:
<a name="l00184"></a>00184   <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>();
<a name="l00185"></a>00185   ~<a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>();
<a name="l00186"></a>00186 
<a name="l00188"></a><a class="code" href="a01657.html#19df09c098d67baddd1904d6a8468e9e">00188</a>   <a class="code" href="a00376.html" title="represent and manipulate attribute data in a dataset">vtkDataSetAttributes</a>* RowData;
<a name="l00189"></a>00189 
<a name="l00191"></a><a class="code" href="a01657.html#b63ab4d361f77d9903d5d56d4817f62f">00191</a>   <a class="code" href="a01811.html" title="An array holding vtkVariants.">vtkVariantArray</a>* RowArray;
<a name="l00192"></a>00192 
<a name="l00193"></a>00193 <span class="keyword">private</span>:
<a name="l00194"></a>00194   <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>(<span class="keyword">const</span> <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00195"></a>00195   <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01657.html" title="A table, which contains similar-typed columns of data.">vtkTable</a>&amp;); <span class="comment">// Not implemented</span>
<a name="l00196"></a>00196 };
<a name="l00197"></a>00197 
<a name="l00198"></a>00198 <span class="preprocessor">#endif</span>
<a name="l00199"></a>00199 <span class="preprocessor"></span>
</pre></div></div>
<hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:18 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>