VTK  9.1.0
vtkChartParallelCoordinates.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkChartParallelCoordinates.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 
43 #ifndef vtkChartParallelCoordinates_h
44 #define vtkChartParallelCoordinates_h
45 
46 #include "vtkChart.h"
47 #include "vtkChartsCoreModule.h" // For export macro
48 #include "vtkNew.h" // For vtkNew
49 
50 class vtkIdTypeArray;
51 class vtkStdString;
52 class vtkStringArray;
54 
55 class VTKCHARTSCORE_EXPORT vtkChartParallelCoordinates : public vtkChart
56 {
57 public:
59  void PrintSelf(ostream& os, vtkIndent indent) override;
60 
65 
71  void Update() override;
72 
76  bool Paint(vtkContext2D* painter) override;
77 
81  void SetColumnVisibility(const vtkStdString& name, bool visible);
82 
87  void SetColumnVisibilityAll(bool visible);
88 
93 
98 
102  virtual void SetVisibleColumns(vtkStringArray* visColumns);
103 
108 
113 
117  vtkAxis* GetAxis(int axisIndex) override;
118 
123 
128  void RecalculateBounds() override;
129 
134  virtual void SetPlot(vtkPlotParallelCoordinates* plot);
135 
139  bool Hit(const vtkContextMouseEvent& mouse) override;
140 
144  bool MouseEnterEvent(const vtkContextMouseEvent& mouse) override;
145 
149  bool MouseMoveEvent(const vtkContextMouseEvent& mouse) override;
150 
154  bool MouseLeaveEvent(const vtkContextMouseEvent& mouse) override;
155 
159  bool MouseButtonPressEvent(const vtkContextMouseEvent& mouse) override;
160 
164  bool MouseButtonReleaseEvent(const vtkContextMouseEvent& mouse) override;
165 
169  bool MouseWheelEvent(const vtkContextMouseEvent& mouse, int delta) override;
170 
171 protected:
174 
176 
179  class Private;
180  Private* Storage;
182 
184 
189 
194 
199 
201  bool ResetAxeSelection(int axe);
205  void SwapAxes(int a1, int a2);
206 
207 private:
209  void operator=(const vtkChartParallelCoordinates&) = delete;
210 };
211 
212 #endif // vtkChartParallelCoordinates_h
vtkChart
Factory class for drawing 2D charts.
Definition: vtkChart.h:45
vtkContextMouseEvent
data structure to represent mouse events.
Definition: vtkContextMouseEvent.h:54
vtkChartParallelCoordinates::MouseButtonPressEvent
bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) override
Mouse button down event.
vtkChartParallelCoordinates::MouseLeaveEvent
bool MouseLeaveEvent(const vtkContextMouseEvent &mouse) override
Mouse leave event.
vtkIdType
int vtkIdType
Definition: vtkType.h:332
vtkChartParallelCoordinates::SetColumnVisibilityAll
void SetColumnVisibilityAll(bool visible)
Set the visibility of all columns (true will make them all visible, false will remove all visible col...
vtkChartParallelCoordinates::Update
void Update() override
Perform any updates to the item that may be necessary before rendering.
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:52
vtkChart.h
vtkChartParallelCoordinates::GetPlot
vtkPlot * GetPlot(vtkIdType index) override
Get the plot at the specified index, returns null if the index is invalid.
vtkChartParallelCoordinates::GetColumnVisibility
bool GetColumnVisibility(const vtkStdString &name)
Get the visibility of the specified column.
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:73
vtkPlot
Abstract class for 2D plots.
Definition: vtkPlot.h:157
vtkChartParallelCoordinates::VisibleColumns
vtkNew< vtkStringArray > VisibleColumns
Strongly owned internal data for the column visibility.
Definition: vtkChartParallelCoordinates.h:193
vtkChartParallelCoordinates::UpdateGeometry
void UpdateGeometry()
vtkChartParallelCoordinates::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkChartParallelCoordinates::ResetAxesSelection
void ResetAxesSelection()
vtkChartParallelCoordinates::MouseWheelEvent
bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta) override
Mouse wheel event, positive delta indicates forward movement of the wheel.
vtkChartParallelCoordinates::SetPlot
virtual void SetPlot(vtkPlotParallelCoordinates *plot)
Set plot to use for the chart.
vtkChartParallelCoordinates::SetColumnVisibility
void SetColumnVisibility(const vtkStdString &name, bool visible)
Set the visibility of the specified column.
vtkChartParallelCoordinates::MouseButtonReleaseEvent
bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) override
Mouse button release event.
vtkChartParallelCoordinates::Hit
bool Hit(const vtkContextMouseEvent &mouse) override
Return true if the supplied x, y coordinate is inside the item.
vtkChartParallelCoordinates::~vtkChartParallelCoordinates
~vtkChartParallelCoordinates() override
vtkChartParallelCoordinates::CalculatePlotTransform
void CalculatePlotTransform()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:113
vtkChartParallelCoordinates::RecalculateBounds
void RecalculateBounds() override
Request that the chart recalculates the range of its axes.
vtkChartParallelCoordinates::GetNumberOfPlots
vtkIdType GetNumberOfPlots() override
Get the number of plots the chart contains.
vtkChartParallelCoordinates::GetNumberOfAxes
vtkIdType GetNumberOfAxes() override
Get the number of axes in the current chart.
vtkNew< vtkStringArray >
vtkChartParallelCoordinates::ResetAxeSelection
bool ResetAxeSelection(int axe)
vtkX3D::name
@ name
Definition: vtkX3D.h:225
vtkChartParallelCoordinates::GeometryValid
bool GeometryValid
Definition: vtkChartParallelCoordinates.h:183
vtkChartParallelCoordinates::vtkChartParallelCoordinates
vtkChartParallelCoordinates()
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:145
vtkChartParallelCoordinates::Selection
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
Definition: vtkChartParallelCoordinates.h:188
vtkChartParallelCoordinates::BuildTime
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
Definition: vtkChartParallelCoordinates.h:198
vtkNew.h
vtkChartParallelCoordinates::New
static vtkChartParallelCoordinates * New()
Creates a parallel coordinates chart.
vtkChartParallelCoordinates::GetAxis
vtkAxis * GetAxis(int axisIndex) override
Get the axis specified by axisIndex.
vtkAxis
takes care of drawing 2D axes
Definition: vtkAxis.h:178
vtkChartParallelCoordinates::Storage
Private * Storage
Definition: vtkChartParallelCoordinates.h:179
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:146
vtkChartParallelCoordinates
Factory class for drawing 2D charts.
Definition: vtkChartParallelCoordinates.h:56
vtkPlotParallelCoordinates
Class for drawing a parallel coordinate plot given columns from a vtkTable.
Definition: vtkPlotParallelCoordinates.h:40
vtkChartParallelCoordinates::MouseMoveEvent
bool MouseMoveEvent(const vtkContextMouseEvent &mouse) override
Mouse move event.
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:105
vtkChartParallelCoordinates::ResetSelection
void ResetSelection()
vtkX3D::index
@ index
Definition: vtkX3D.h:252
vtkChartParallelCoordinates::GetVisibleColumns
virtual vtkStringArray * GetVisibleColumns()
Get a list of the columns, and the order in which they are displayed.
vtkChartParallelCoordinates::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the chart, called whenever the chart needs to be drawn.
vtkChartParallelCoordinates::SwapAxes
void SwapAxes(int a1, int a2)
vtkChartParallelCoordinates::SetVisibleColumns
virtual void SetVisibleColumns(vtkStringArray *visColumns)
Set the list of visible columns, and the order in which they will be displayed.
vtkChartParallelCoordinates::MouseEnterEvent
bool MouseEnterEvent(const vtkContextMouseEvent &mouse) override
Mouse enter event.