VTK
vtkPlotParallelCoordinates.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkPlotParallelCoordinates.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 
24 #ifndef vtkPlotParallelCoordinates_h
25 #define vtkPlotParallelCoordinates_h
26 
27 #include "vtkChartsCoreModule.h" // For export macro
28 #include "vtkPlot.h"
29 #include "vtkScalarsToColors.h" // For VTK_COLOR_MODE_DEFAULT and _MAP_SCALARS
30 #include "vtkStdString.h" // For vtkStdString ivars
31 
33 class vtkTable;
34 class vtkStdString;
35 class vtkScalarsToColors;
37 
39 {
40 public:
42  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
46 
50  virtual void Update();
51 
54  virtual bool Paint(vtkContext2D *painter);
55 
57 
62  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
63  int legendIndex);
65 
67  virtual void GetBounds(double bounds[4]);
68 
71  bool SetSelectionRange(int Axis, float low, float high);
72 
74  bool ResetSelectionRange();
75 
77 
78  virtual void SetInputData(vtkTable *table);
79  virtual void SetInputData(vtkTable *table, const vtkStdString&,
80  const vtkStdString&)
81  {
82  this->SetInputData(table);
83  }
85 
87 
88  void SetLookupTable(vtkScalarsToColors *lut);
89  vtkScalarsToColors *GetLookupTable();
91 
94  virtual void CreateDefaultLookupTable();
95 
97 
99  vtkSetMacro(ScalarVisibility,int);
100  vtkGetMacro(ScalarVisibility,int);
101  vtkBooleanMacro(ScalarVisibility,int);
103 
105 
108  void SelectColorArray(vtkIdType arrayNum);
109  void SelectColorArray(const vtkStdString &arrayName);
111 
113  vtkStdString GetColorArrayName();
114 
115 //BTX
116 protected:
119 
121  bool UpdateTableCache(vtkTable *table);
122 
124 
125  class Private;
126  Private* Storage;
128 
131 
133 
139 
140 private:
141  vtkPlotParallelCoordinates(const vtkPlotParallelCoordinates &); // Not implemented.
142  void operator=(const vtkPlotParallelCoordinates &); // Not implemented.
143 
144 //ETX
145 };
146 
147 #endif //vtkPlotParallelCoordinates_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:46
virtual void SetInputData(vtkTable *table, const vtkStdString &, const vtkStdString &)
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
virtual bool Paint(vtkContext2D *painter)
record modification and/or execution time
Definition: vtkTimeStamp.h:34
virtual void GetBounds(double bounds[4])
Definition: vtkPlot.h:276
Class for drawing a parallel coordinate plot given columns from a vtkTable.
int vtkIdType
Definition: vtkType.h:275
Superclass for mapping scalar values to colors.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
a simple class to control print indentation
Definition: vtkIndent.h:38
Abstract class for 2D plots.
Definition: vtkPlot.h:51
dynamic, self-adjusting array of unsigned char
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:67
virtual void SetInputData(vtkTable *table)
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
virtual void Update()
#define VTKCHARTSCORE_EXPORT
Factory class for drawing 2D charts.