VTK  9.1.0
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
34class vtkTable;
35class vtkStdString;
38
39class VTKCHARTSCORE_EXPORT vtkPlotParallelCoordinates : public vtkPlot
40{
41public:
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
109
111
114 vtkSetMacro(ScalarVisibility, vtkTypeBool);
115 vtkGetMacro(ScalarVisibility, vtkTypeBool);
116 vtkBooleanMacro(ScalarVisibility, vtkTypeBool);
118
120
126 void SelectColorArray(const vtkStdString& arrayName);
128
133
134protected:
137
142
144
147 class Private;
148 Private* Storage;
150
155
157
165
166private:
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:73
a simple class to control print indentation
Definition: vtkIndent.h:113
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.
vtkUnsignedCharArray * Colors
Lookup Table for coloring points by scalar value.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkStdString ColorArrayName
Lookup Table for coloring points by scalar value.
vtkScalarsToColors * GetLookupTable()
Specify a lookup table for the mapper to use.
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
static vtkPlotParallelCoordinates * New()
Creates a parallel coordinates chart.
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.
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)
When ScalarMode is set to UsePointFieldData or UseCellFieldData, you can specify which array to use f...
void SetInputData(vtkTable *table, const vtkStdString &, const vtkStdString &) override
This is a convenience function to set the input table.
vtkScalarsToColors * LookupTable
Lookup Table for coloring points by scalar value.
vtkTypeBool ScalarVisibility
Lookup Table for coloring points by scalar value.
bool UpdateTableCache(vtkTable *table)
Update the table cache.
Abstract class for 2D plots.
Definition: vtkPlot.h:157
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:105
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:172
record modification and/or execution time
Definition: vtkTimeStamp.h:52
dynamic, self-adjusting array of unsigned char
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332