VTK
vtkQtTableRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkQtTableRepresentation.h
5 
6  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7  All rights reserved.
8  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
15 /*----------------------------------------------------------------------------
16  Copyright (c) Sandia Corporation
17  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
18 ----------------------------------------------------------------------------*/
19 
51 #ifndef vtkQtTableRepresentation_h
52 #define vtkQtTableRepresentation_h
53 
54 #include "vtkViewsQtModule.h" // For export macro
55 #include "QVTKWin32Header.h"
56 #include "vtkDataRepresentation.h"
57 
58 class vtkDoubleArray;
59 class vtkLookupTable;
61 
62 // ----------------------------------------------------------------------
63 
64 class VTKVIEWSQT_EXPORT vtkQtTableRepresentation : public vtkDataRepresentation
65 {
66 public:
68  void PrintSelf(ostream &os, vtkIndent indent);
69 
71 
73  void SetColorTable(vtkLookupTable *t);
74  vtkGetObjectMacro(ColorTable, vtkLookupTable);
76 
78 
80  void SetKeyColumn(const char* col);
81  char* GetKeyColumn();
83 
85 
87  vtkSetStringMacro(FirstDataColumn);
88  vtkGetStringMacro(FirstDataColumn);
90 
92 
94  vtkSetStringMacro(LastDataColumn);
95  vtkGetStringMacro(LastDataColumn);
97 
98  protected:
101 
103  void UpdateTable();
104 
105  vtkSetStringMacro(KeyColumnInternal);
106  vtkGetStringMacro(KeyColumnInternal);
107 
108  // ----------------------------------------------------------------------
115 
117 
118  virtual int RequestData(vtkInformation* request,
119  vtkInformationVector** inputVector,
120  vtkInformationVector* outputVector);
122 
123  virtual void ResetModel();
124  virtual void CreateSeriesColors();
125 
128  virtual void SetModelType() { };
129 
130 private:
132  void operator=(const vtkQtTableRepresentation &);
133 
134 };
135 
136 #endif
Adapts a table to a Qt item model.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:38
The superclass for all representations.
void PrintSelf(ostream &os, vtkIndent indent)
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
vtkQtTableModelAdapter * ModelAdapter
Store zero or more vtkInformation instances.
set up a vtkTable in a Qt model