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 
26 #ifndef __vtkChartParallelCoordinates_h
27 #define __vtkChartParallelCoordinates_h
28 
29 #include "vtkChart.h"
30 
31 class vtkIdTypeArray;
32 class vtkStdString;
33 class vtkStringArray;
35 
37 {
38 public:
40  virtual void PrintSelf(ostream &os, vtkIndent indent);
41 
44 
48  virtual void Update();
49 
52  virtual bool Paint(vtkContext2D *painter);
53 
55  void SetColumnVisibility(const vtkStdString& name, bool visible);
56 
59  void SetColumnVisibilityAll(bool visible);
60 
62  bool GetColumnVisibility(const vtkStdString& name);
63 
65 
66  vtkGetObjectMacro(VisibleColumns, vtkStringArray);
68 
71  virtual vtkPlot* GetPlot(vtkIdType index);
72 
74  virtual vtkIdType GetNumberOfPlots();
75 
77  virtual vtkAxis* GetAxis(int axisIndex);
78 
80  virtual vtkIdType GetNumberOfAxes();
81 
85  virtual void RecalculateBounds();
86 
89  virtual void SetPlot(vtkPlotParallelCoordinates *plot);
90 
91 //BTX
93  virtual bool Hit(const vtkContextMouseEvent &mouse);
94 
96  virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse);
97 
99  virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse);
100 
102  virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse);
103 
105  virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse);
106 
108  virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse);
109 
111 
113  virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta);
114 //ETX
116 
117 //BTX
118 protected:
121 
123 
124  class Private;
125  Private *Storage;
127 
129 
132 
135 
138 
139  void ResetSelection();
140  void UpdateGeometry();
141  void CalculatePlotTransform();
142  void SwapAxes(int a1, int a2);
143 
144 private:
145  vtkChartParallelCoordinates(const vtkChartParallelCoordinates &); // Not implemented.
146  void operator=(const vtkChartParallelCoordinates &); // Not implemented.
147 //ETX
148 };
149 
150 #endif //__vtkChartParallelCoordinates_h