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 "vtkDataRepresentation.h"
56 
57 class vtkDoubleArray;
58 class vtkLookupTable;
60 
61 // ----------------------------------------------------------------------
62 
64 {
65 public:
67  void PrintSelf(ostream &os, vtkIndent indent);
68 
70 
72  void SetColorTable(vtkLookupTable *t);
73  vtkGetObjectMacro(ColorTable, vtkLookupTable);
75 
77 
79  void SetKeyColumn(const char* col);
80  char* GetKeyColumn();
82 
84 
86  vtkSetStringMacro(FirstDataColumn);
87  vtkGetStringMacro(FirstDataColumn);
89 
91 
93  vtkSetStringMacro(LastDataColumn);
94  vtkGetStringMacro(LastDataColumn);
96 
97  protected:
100 
102  void UpdateTable();
103 
104  vtkSetStringMacro(KeyColumnInternal);
105  vtkGetStringMacro(KeyColumnInternal);
106 
107  // ----------------------------------------------------------------------
114 
116 
117  virtual int RequestData(vtkInformation* request,
118  vtkInformationVector** inputVector,
119  vtkInformationVector* outputVector);
121 
122  virtual void ResetModel();
123  virtual void CreateSeriesColors();
124 
127  virtual void SetModelType() { };
128 
129 private:
130  vtkQtTableRepresentation(const vtkQtTableRepresentation &); // Not implemented
131  void operator=(const vtkQtTableRepresentation &); // Not implemented
132 
133 };
134 
135 #endif
Adapts a table to a Qt item model.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
#define VTKVIEWSQT_EXPORT
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