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
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 virtual void PrintSelf(ostream &os, vtkIndent indent);
44
49
55 virtual void Update();
56
60 virtual bool Paint(vtkContext2D *painter);
61
68 virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect,
69 int legendIndex);
70
74 virtual void GetBounds(double bounds[4]);
75
79 bool SetSelectionRange(int Axis, float low, float high);
80
85
87
90 virtual void SetInputData(vtkTable *table);
91 virtual void SetInputData(vtkTable *table, const vtkStdString&,
92 const vtkStdString&)
93 {
94 this->SetInputData(table);
95 }
97
99
105
111
113
116 vtkSetMacro(ScalarVisibility,int);
117 vtkGetMacro(ScalarVisibility,int);
118 vtkBooleanMacro(ScalarVisibility,int);
120
122
128 void SelectColorArray(const vtkStdString &arrayName);
130
135
136protected:
139
144
146
149 class Private;
150 Private* Storage;
152
157
159
167
168private:
169 vtkPlotParallelCoordinates(const vtkPlotParallelCoordinates &) VTK_DELETE_FUNCTION;
170 void operator=(const vtkPlotParallelCoordinates &) VTK_DELETE_FUNCTION;
171
172};
173
174#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.
virtual void GetBounds(double bounds[4])
Get the bounds for this mapper as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
virtual bool Paint(vtkContext2D *painter)
Paint event for the XY plot, called whenever the chart needs to be drawn.
vtkScalarsToColors * GetLookupTable()
vtkStdString GetColorArrayName()
Get the array name to color by.
virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf &rect, int legendIndex)
Paint legend event for the XY plot, called whenever the legend needs the plot items symbol/mark/line ...
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.
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
virtual void SetInputData(vtkTable *table)
This is a convenience function to set the input table.
static vtkPlotParallelCoordinates * New()
Creates a parallel coordinates chart.
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
virtual void SetInputData(vtkTable *table, const vtkStdString &, const vtkStdString &)
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)
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:53
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:49
A table, which contains similar-typed columns of data.
Definition: vtkTable.h:69
record modification and/or execution time
Definition: vtkTimeStamp.h:36
dynamic, self-adjusting array of unsigned char
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
int vtkIdType
Definition: vtkType.h:287