VTK  9.1.0
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
52#ifndef vtkQtTableRepresentation_h
53#define vtkQtTableRepresentation_h
54
56#include "vtkViewsQtModule.h" // For export macro
57
58class vtkDoubleArray;
59class vtkLookupTable;
61
62// ----------------------------------------------------------------------
63
64class VTKVIEWSQT_EXPORT vtkQtTableRepresentation : public vtkDataRepresentation
65{
66public:
68 void PrintSelf(ostream& os, vtkIndent indent) override;
69
71
76 vtkGetObjectMacro(ColorTable, vtkLookupTable);
78
80
84 void SetKeyColumn(const char* col);
85 char* GetKeyColumn();
87
89
93 vtkSetStringMacro(FirstDataColumn);
94 vtkGetStringMacro(FirstDataColumn);
96
98
102 vtkSetStringMacro(LastDataColumn);
103 vtkGetStringMacro(LastDataColumn);
105
106protected:
109
114
115 vtkSetStringMacro(KeyColumnInternal);
116 vtkGetStringMacro(KeyColumnInternal);
117
118 // ----------------------------------------------------------------------
125
130 vtkInformationVector* outputVector) override;
131
132 virtual void ResetModel();
133 virtual void CreateSeriesColors();
134
139 virtual void SetModelType() {}
140
141private:
143 void operator=(const vtkQtTableRepresentation&) = delete;
144};
145
146#endif
The superclass for all representations.
dynamic, self-adjusting array of double
a simple class to control print indentation
Definition: vtkIndent.h:113
Store zero or more vtkInformation instances.
Store vtkAlgorithm input/output information.
map scalar values into colors via a lookup table
Adapts a table to a Qt item model.
set up a vtkTable in a Qt model
void SetKeyColumn(const char *col)
Set/get the name of the column that contains series names.
int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
Prepare the input connections to this representation.
virtual void CreateSeriesColors()
void SetColorTable(vtkLookupTable *t)
Set/get the lookup table that will be used to determine colors for each series.
~vtkQtTableRepresentation() override
vtkQtTableModelAdapter * ModelAdapter
char * GetKeyColumn()
Set/get the name of the column that contains series names.
virtual void SetModelType()
This should set the model type to DATA, METADATA or FULL depending on what you want.
void UpdateTable()
Update the table representation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void ResetModel()