VTK
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 
27 #ifndef vtkChartParallelCoordinates_h
28 #define vtkChartParallelCoordinates_h
29 
30 #include "vtkChartsCoreModule.h" // For export macro
31 #include "vtkChart.h"
32 
33 class vtkIdTypeArray;
34 class vtkStdString;
35 class vtkStringArray;
37 
38 class VTKCHARTSCORE_EXPORT vtkChartParallelCoordinates : public vtkChart
39 {
40 public:
42  void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE;
43 
48 
54  void Update() VTK_OVERRIDE;
55 
59  bool Paint(vtkContext2D *painter) VTK_OVERRIDE;
60 
64  void SetColumnVisibility(const vtkStdString& name, bool visible);
65 
70  void SetColumnVisibilityAll(bool visible);
71 
75  bool GetColumnVisibility(const vtkStdString& name);
76 
78 
81  vtkGetObjectMacro(VisibleColumns, vtkStringArray);
83 
87  vtkPlot* GetPlot(vtkIdType index) VTK_OVERRIDE;
88 
92  vtkIdType GetNumberOfPlots() VTK_OVERRIDE;
93 
97  vtkAxis* GetAxis(int axisIndex) VTK_OVERRIDE;
98 
102  vtkIdType GetNumberOfAxes() VTK_OVERRIDE;
103 
108  void RecalculateBounds() VTK_OVERRIDE;
109 
114  virtual void SetPlot(vtkPlotParallelCoordinates *plot);
115 
119  bool Hit(const vtkContextMouseEvent &mouse) VTK_OVERRIDE;
120 
124  bool MouseEnterEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE;
125 
129  bool MouseMoveEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE;
130 
134  bool MouseLeaveEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE;
135 
139  bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE;
140 
144  bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse) VTK_OVERRIDE;
145 
149  bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta) VTK_OVERRIDE;
150 
151 protected:
153  ~vtkChartParallelCoordinates() VTK_OVERRIDE;
154 
156 
159  class Private;
160  Private *Storage;
162 
163  bool GeometryValid;
164 
168  vtkIdTypeArray *Selection;
169 
173  vtkStringArray *VisibleColumns;
174 
179 
180  void ResetSelection();
181  void UpdateGeometry();
182  void CalculatePlotTransform();
183  void SwapAxes(int a1, int a2);
184 
185 private:
186  vtkChartParallelCoordinates(const vtkChartParallelCoordinates &) VTK_DELETE_FUNCTION;
187  void operator=(const vtkChartParallelCoordinates &) VTK_DELETE_FUNCTION;
188 
189 };
190 
191 #endif //vtkChartParallelCoordinates_h
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:47
vtkTimeStamp BuildTime
record modification and/or execution time
Definition: vtkTimeStamp.h:35
a vtkAbstractArray subclass for strings
Class for drawing a parallel coordinate plot given columns from a vtkTable.
dynamic, self-adjusting array of vtkIdType
int vtkIdType
Definition: vtkType.h:345
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
Factory class for drawing 2D charts.
Definition: vtkChart.h:50
takes care of drawing 2D axes
Definition: vtkAxis.h:71
data structure to represent mouse events.
a simple class to control print indentation
Definition: vtkIndent.h:39
Abstract class for 2D plots.
Definition: vtkPlot.h:52
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
Factory class for drawing 2D charts.