VTK  9.0.2
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 
25 #ifndef vtkPlotParallelCoordinates_h
26 #define vtkPlotParallelCoordinates_h
27 
28 #include "vtkChartsCoreModule.h" // For export macro
29 #include "vtkPlot.h"
30 #include "vtkScalarsToColors.h" // For VTK_COLOR_MODE_DEFAULT and _MAP_SCALARS
31 #include "vtkStdString.h" // For vtkStdString ivars
32 
34 class vtkTable;
35 class vtkStdString;
36 class vtkScalarsToColors;
38 
39 class VTKCHARTSCORE_EXPORT vtkPlotParallelCoordinates : public vtkPlot
40 {
41 public:
43  void PrintSelf(ostream& os, vtkIndent indent) override;
44 
49 
55  void Update() override;
56 
60  bool Paint(vtkContext2D* painter) override;
61 
68  bool PaintLegend(vtkContext2D* painter, const vtkRectf& rect, int legendIndex) override;
69 
73  void GetBounds(double bounds[4]) override;
74 
78  bool SetSelectionRange(int Axis, float low, float high);
79 
84 
86 
89  void SetInputData(vtkTable* table) override;
90  void SetInputData(vtkTable* table, const vtkStdString&, const vtkStdString&) override
91  {
92  this->SetInputData(table);
93  }
95 
97 
103 
108  virtual void CreateDefaultLookupTable();
109 
111 
114  vtkSetMacro(ScalarVisibility, vtkTypeBool);
115  vtkGetMacro(ScalarVisibility, vtkTypeBool);
116  vtkBooleanMacro(ScalarVisibility, vtkTypeBool);
118 
120 
125  void SelectColorArray(vtkIdType arrayNum);
126  void SelectColorArray(const vtkStdString& arrayName);
128 
133 
134 protected:
137 
142 
144 
147  class Private;
148  Private* Storage;
150 
155 
157 
165 
166 private:
168  void operator=(const vtkPlotParallelCoordinates&) = delete;
169 };
170 
171 #endif // vtkPlotParallelCoordinates_h
Factory class for drawing 2D charts.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:53
a simple class to control print indentation
Definition: vtkIndent.h:34
Class for drawing a parallel coordinate plot given columns from a vtkTable.
virtual void CreateDefaultLookupTable()
Create default lookup table.
bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex) override
Paint legend event for the XY plot, called whenever the legend needs the plot items symbol/mark/line ...
void GetBounds(double bounds[4]) override
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
bool Paint(vtkContext2D *painter) override
Paint event for the XY plot, called whenever the chart needs to be drawn.
void Update() override
Perform any updates to the item that may be necessary before rendering.
static vtkPlotParallelCoordinates * New()
Creates a parallel coordinates chart.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
void SetInputData(vtkTable *table) override
This is a convenience function to set the input table.
vtkStdString GetColorArrayName()
Get the array name to color by.
bool SetSelectionRange(int Axis, float low, float high)
Set the selection criteria on the given axis in normalized space (0.0 - 1.0).
bool ResetSelectionRange()
Reset the selection criteria for the chart.
~vtkPlotParallelCoordinates() override
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
void SetLookupTable(vtkScalarsToColors *lut)
Specify a lookup table for the mapper to use.
vtkScalarsToColors * GetLookupTable()
void SelectColorArray(vtkIdType arrayNum)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
void SelectColorArray(const vtkStdString &arrayName)
void SetInputData(vtkTable *table, const vtkStdString &, const vtkStdString &) override
vtkScalarsToColors * LookupTable
Lookup Table for coloring points by scalar value.
bool UpdateTableCache(vtkTable *table)
Update the table cache.
Abstract class for 2D plots.
Definition: vtkPlot.h:47
virtual void SetInputData(vtkTable *table)
This is a convenience function to set the input table and the x, y column for the plot.
Superclass for mapping scalar values to colors.
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:35
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:63
record modification and/or execution time
Definition: vtkTimeStamp.h:33
dynamic, self-adjusting array of unsigned char
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:338