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 
52 #ifndef vtkQtTableRepresentation_h
53 #define vtkQtTableRepresentation_h
54 
55 #include "vtkViewsQtModule.h" // For export macro
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 
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 
106  protected:
109 
113  void UpdateTable();
114 
115  vtkSetStringMacro(KeyColumnInternal);
116  vtkGetStringMacro(KeyColumnInternal);
117 
118  // ----------------------------------------------------------------------
125 
129  virtual int RequestData(vtkInformation* request,
130  vtkInformationVector** inputVector,
131  vtkInformationVector* outputVector);
132 
133  virtual void ResetModel();
134  virtual void CreateSeriesColors();
135 
140  virtual void SetModelType() { };
141 
142 private:
143  vtkQtTableRepresentation(const vtkQtTableRepresentation &) VTK_DELETE_FUNCTION;
144  void operator=(const vtkQtTableRepresentation &) VTK_DELETE_FUNCTION;
145 
146 };
147 
148 #endif
vtkQtTableRepresentation
set up a vtkTable in a Qt model
Definition: vtkQtTableRepresentation.h:65
vtkQtTableRepresentation::~vtkQtTableRepresentation
~vtkQtTableRepresentation()
vtkInformationVector
Store zero or more vtkInformation instances.
Definition: vtkInformationVector.h:42
vtkQtTableRepresentation::SetColorTable
void SetColorTable(vtkLookupTable *t)
Set/get the lookup table that will be used to determine colors for each series.
vtkQtTableRepresentation::ModelAdapter
vtkQtTableModelAdapter * ModelAdapter
Definition: vtkQtTableRepresentation.h:116
vtkQtTableRepresentation::KeyColumnInternal
char * KeyColumnInternal
Definition: vtkQtTableRepresentation.h:122
vtkQtTableRepresentation::SeriesColors
vtkDoubleArray * SeriesColors
Definition: vtkQtTableRepresentation.h:121
vtkDataRepresentation
The superclass for all representations.
Definition: vtkDataRepresentation.h:70
vtkQtTableRepresentation::SetModelType
virtual void SetModelType()
This should set the model type to DATA, METADATA or FULL depending on what you want.
Definition: vtkQtTableRepresentation.h:140
vtkQtTableRepresentation::ColorTable
vtkLookupTable * ColorTable
Definition: vtkQtTableRepresentation.h:120
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkGetStringMacro
vtkGetStringMacro(ExtensionsString)
Returns a string listing all available extensions.
vtkQtTableRepresentation::RequestData
virtual int RequestData(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
Prepare the input connections to this representation.
vtkQtTableRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkInformation
Store vtkAlgorithm input/output information.
Definition: vtkInformation.h:87
vtkLookupTable
map scalar values into colors via a lookup table
Definition: vtkLookupTable.h:75
vtkQtTableRepresentation::CreateSeriesColors
virtual void CreateSeriesColors()
vtkQtTableRepresentation::ResetModel
virtual void ResetModel()
vtkQtTableRepresentation::UpdateTable
void UpdateTable()
Update the table representation.
vtkQtTableRepresentation::SetKeyColumn
void SetKeyColumn(const char *col)
Set/get the name of the column that contains series names.
vtkDataRepresentation.h
vtkQtTableModelAdapter
Adapts a table to a Qt item model.
Definition: vtkQtTableModelAdapter.h:50
vtkQtTableRepresentation::FirstDataColumn
char * FirstDataColumn
Definition: vtkQtTableRepresentation.h:123
vtkDoubleArray
dynamic, self-adjusting array of double
Definition: vtkDoubleArray.h:42
vtkQtTableRepresentation::LastDataColumn
char * LastDataColumn
Definition: vtkQtTableRepresentation.h:124
vtkQtTableRepresentation::GetKeyColumn
char * GetKeyColumn()
vtkQtTableRepresentation::vtkQtTableRepresentation
vtkQtTableRepresentation()