VTK  9.2.6
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
35class vtkStdString;
36class vtkTable;
38
39class VTKCHARTSCORE_EXPORT vtkPlotParallelCoordinates : public vtkPlot
40{
41public:
43 void PrintSelf(ostream& os, vtkIndent indent) override;
44
49
53 bool Paint(vtkContext2D* painter) override;
54
61 bool PaintLegend(vtkContext2D* painter, const vtkRectf& rect, int legendIndex) override;
62
66 void GetBounds(double bounds[4]) override;
67
72 bool SetSelectionRange(int axis, float low, float high);
73
78 bool SetSelectionRange(int axis, std::vector<float> axisSelection);
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
140 bool UpdateCache() override;
141
142protected:
145
147
150 class Private;
151 Private* Storage;
153
155
163
164private:
166 void operator=(const vtkPlotParallelCoordinates&) = delete;
167};
168
169#endif // vtkPlotParallelCoordinates_h
Factory class for drawing 2D charts.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
a simple class to control print indentation
Definition: vtkIndent.h:40
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.
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 UpdateCache() override
Update the internal cache.
bool ResetSelectionRange()
Reset the selection criteria for the chart.
~vtkPlotParallelCoordinates() override
static vtkPlotParallelCoordinates * New()
Creates a parallel coordinates chart.
bool SetSelectionRange(int axis, std::vector< float > axisSelection)
Set the selection criteria on the given axis in normalized space [0.0 ; 1.0] axisSelection should be ...
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 SetSelectionRange(int axis, float low, float high)
Set the selection criteria on the given axis in normalized space (0.0 - 1.0) for a specific range.
Abstract class for 2D plots.
Definition: vtkPlot.h:54
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:39
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:74
dynamic, self-adjusting array of unsigned char
int vtkTypeBool
Definition: vtkABI.h:69
int vtkIdType
Definition: vtkType.h:332