<!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/GUISupport/Qt/vtkQtTableRepresentation.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/GUISupport/Qt/vtkQtTableRepresentation.h</h1><a href="a02801.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: vtkQtTableRepresentation.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="l00050"></a>00050 <span class="preprocessor">#ifndef __vtkQtTableRepresentation_h</span> <a name="l00051"></a>00051 <span class="preprocessor"></span><span class="preprocessor">#define __vtkQtTableRepresentation_h</span> <a name="l00052"></a>00052 <span class="preprocessor"></span> <a name="l00053"></a>00053 <span class="preprocessor">#include "QVTKWin32Header.h"</span> <a name="l00054"></a>00054 <span class="preprocessor">#include "<a class="code" href="a03589.html">vtkDataRepresentation.h</a>"</span> <a name="l00055"></a>00055 <a name="l00056"></a>00056 <span class="keyword">class </span><a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a>; <a name="l00057"></a>00057 <span class="keyword">class </span><a class="code" href="a00980.html" title="map scalar values into colors via a lookup table">vtkLookupTable</a>; <a name="l00058"></a>00058 <span class="keyword">class </span><a class="code" href="a01421.html" title="Adapts a table to a Qt item model.">vtkQtTableModelAdapter</a>; <a name="l00059"></a>00059 <a name="l00060"></a>00060 <span class="comment">// ----------------------------------------------------------------------</span> <a name="l00061"></a>00061 <a name="l00062"></a><a class="code" href="a01422.html">00062</a> <span class="keyword">class </span>QVTK_EXPORT <a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a> : <span class="keyword">public</span> <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a> <a name="l00063"></a>00063 { <a name="l00064"></a>00064 <span class="keyword">public</span>: <a name="l00065"></a><a class="code" href="a01422.html#e45766a963ce8d3ab4151bd1932fbd9e">00065</a> vtkTypeRevisionMacro(<a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a>, <a class="code" href="a00373.html" title="The superclass for all representations.">vtkDataRepresentation</a>); <a name="l00066"></a>00066 <span class="keywordtype">void</span> <a class="code" href="a00373.html#fc4d591589c67435e8a481e64b4949a3">PrintSelf</a>(ostream &os, <a class="code" href="a00869.html" title="a simple class to control print indentation">vtkIndent</a> indent); <a name="l00067"></a>00067 <a name="l00071"></a>00071 <span class="keyword">virtual</span> <span class="keywordtype">void</span> <a class="code" href="a00373.html#eac1b46877521662870da5c833c019be">SetInputConnection</a>(<a class="code" href="a00102.html" title="Proxy object to connect input/output ports.">vtkAlgorithmOutput</a> *conn); <a name="l00072"></a>00072 <a name="l00074"></a>00074 <a name="l00076"></a>00076 <span class="keywordtype">void</span> SetColorTable(<a class="code" href="a00980.html" title="map scalar values into colors via a lookup table">vtkLookupTable</a> *t); <a name="l00077"></a>00077 vtkGetObjectMacro(ColorTable, <a class="code" href="a00980.html" title="map scalar values into colors via a lookup table">vtkLookupTable</a>); <a name="l00079"></a>00079 <a name="l00081"></a>00081 <a name="l00084"></a>00084 <span class="keywordtype">void</span> SetKeyColumn(<span class="keyword">const</span> <span class="keywordtype">char</span>* col); <a name="l00085"></a>00085 <span class="comment">// This wasn't actually implemented anywhere so</span> <a name="l00086"></a>00086 <span class="comment">// I commented out the declaration:</span> <a name="l00087"></a>00087 <span class="comment">// char* GetKeyColumn();</span> <a name="l00089"></a>00089 <span class="comment"></span> <a name="l00091"></a>00091 <a name="l00093"></a>00093 vtkSetStringMacro(FirstDataColumn); <a name="l00094"></a>00094 vtkGetStringMacro(FirstDataColumn); <a name="l00096"></a>00096 <a name="l00098"></a>00098 <a name="l00100"></a>00100 vtkSetStringMacro(LastDataColumn); <a name="l00101"></a>00101 vtkGetStringMacro(LastDataColumn); <a name="l00103"></a>00103 <a name="l00105"></a>00105 <span class="keyword">virtual</span> <span class="keywordtype">void</span> Update(); <a name="l00106"></a>00106 <a name="l00107"></a>00107 <span class="keyword">protected</span>: <a name="l00108"></a>00108 <a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a>(); <a name="l00109"></a>00109 ~<a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a>(); <a name="l00110"></a>00110 <a name="l00111"></a>00111 vtkSetStringMacro(KeyColumnInternal); <a name="l00112"></a><a class="code" href="a01422.html#755530fd4b72cfab06f74a247990890f">00112</a> vtkGetStringMacro(KeyColumnInternal); <a name="l00113"></a>00113 <a name="l00114"></a>00114 <span class="comment">// ----------------------------------------------------------------------</span> <a name="l00115"></a>00115 <a class="code" href="a01421.html" title="Adapts a table to a Qt item model.">vtkQtTableModelAdapter</a> *ModelAdapter; <a name="l00116"></a><a class="code" href="a01422.html#9244da294deffc5a5562daee1bd4434a">00116</a> <a class="code" href="a00980.html" title="map scalar values into colors via a lookup table">vtkLookupTable</a> *ColorTable; <a name="l00117"></a><a class="code" href="a01422.html#d01cfa56526164293db51cfc971b4073">00117</a> <a class="code" href="a00436.html" title="dynamic, self-adjusting array of double">vtkDoubleArray</a> *SeriesColors; <a name="l00118"></a><a class="code" href="a01422.html#6947b38ce6a3574c72f7fb1c3da0fb8b">00118</a> <span class="keywordtype">char</span> *KeyColumnInternal; <a name="l00119"></a><a class="code" href="a01422.html#6a27b08b67c478c54ebc08f3ca221b95">00119</a> <span class="keywordtype">char</span> *FirstDataColumn; <a name="l00120"></a><a class="code" href="a01422.html#172fce7cc87696c143a12723b24aacf1">00120</a> <span class="keywordtype">char</span> *LastDataColumn; <a name="l00121"></a>00121 <a name="l00122"></a>00122 <span class="keyword">virtual</span> <span class="keywordtype">void</span> ResetModel(); <a name="l00123"></a>00123 <span class="keyword">virtual</span> <span class="keywordtype">void</span> CreateSeriesColors(); <a name="l00124"></a>00124 <a name="l00127"></a><a class="code" href="a01422.html#b92a82a75dee6b2e1f772b7e5fbca3b4">00127</a> <span class="keyword">virtual</span> <span class="keywordtype">void</span> SetModelType() { }; <a name="l00128"></a>00128 <a name="l00129"></a>00129 <span class="keyword">private</span>: <a name="l00130"></a>00130 <a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a>(<span class="keyword">const</span> <a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a> &); <a name="l00131"></a>00131 <span class="keywordtype">void</span> operator=(<span class="keyword">const</span> <a class="code" href="a01422.html" title="set up a vtkTable in a Qt model">vtkQtTableRepresentation</a> &); <a name="l00132"></a>00132 <a name="l00133"></a>00133 }; <a name="l00134"></a>00134 <a name="l00135"></a>00135 <span class="preprocessor">#endif</span> </pre></div></div> <hr size="1"><address style="text-align: right;"><small>Generated on Wed Jun 3 18:35:31 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>