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 "vtkPlot.h"
28 #include "vtkScalarsToColors.h" // For VTK_COLOR_MODE_DEFAULT and _MAP_SCALARS
29 #include "vtkStdString.h" // For vtkStdString ivars
30 
32 class vtkTable;
33 class vtkStdString;
34 class vtkScalarsToColors;
36 
38 {
39 public:
41  virtual void PrintSelf(ostream &os, vtkIndent indent);
42 
45 
49  virtual void Update();
50 
53  virtual bool Paint(vtkContext2D *painter);
54 
56 
61  virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
62  int legendIndex);
64 
66  virtual void GetBounds(double bounds[4]);
67 
70  bool SetSelectionRange(int Axis, float low, float high);
71 
73  bool ResetSelectionRange();
74 
76 
77  virtual void SetInput(vtkTable *table);
78  virtual void SetInput(vtkTable *table, const vtkStdString&,
79  const vtkStdString&)
80  {
81  this->SetInput(table);
82  }
84 
86 
87  void SetLookupTable(vtkScalarsToColors *lut);
88  vtkScalarsToColors *GetLookupTable();
90 
93  virtual void CreateDefaultLookupTable();
94 
96 
98  vtkSetMacro(ScalarVisibility,int);
99  vtkGetMacro(ScalarVisibility,int);
100  vtkBooleanMacro(ScalarVisibility,int);
102 
104 
107  void SelectColorArray(vtkIdType arrayNum);
108  void SelectColorArray(const vtkStdString &arrayName);
110 
112  vtkStdString GetColorArrayName();
113 
114 //BTX
115 protected:
118 
120  bool UpdateTableCache(vtkTable *table);
121 
123 
124  class Private;
125  Private* Storage;
127 
130 
132 
138 
139 private:
140  vtkPlotParallelCoordinates(const vtkPlotParallelCoordinates &); // Not implemented.
141  void operator=(const vtkPlotParallelCoordinates &); // Not implemented.
142 
143 //ETX
144 };
145 
146 #endif //__vtkPlotParallelCoordinates_h
virtual void SetInput(vtkTable *table, const vtkStdString &, const vtkStdString &)
#define VTK_CHARTS_EXPORT
Wrapper around vtkstd::string to keep symbols short.
Definition: vtkStdString.h:45
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
virtual bool Paint(vtkContext2D *painter)
record modification and/or execution time
Definition: vtkTimeStamp.h:33
virtual void GetBounds(double bounds[4])
Definition: vtkPlot.h:213
Class for drawing a parallel coordinate plot given columns from a vtkTable.
int vtkIdType
Definition: vtkType.h:255
Superclass for mapping scalar values into colors.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:54
a simple class to control print indentation
Definition: vtkIndent.h:37
Abstract class for 2D plots.
Definition: vtkPlot.h:50
virtual void SetInput(vtkTable *table)
dynamic, self-adjusting array of unsigned char
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkObject * New()
virtual void Update()
Factory class for drawing 2D charts.