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  virtual void PrintSelf(ostream &os, vtkIndent indent);
43 
48 
54  virtual void Update();
55 
59  virtual bool Paint(vtkContext2D *painter);
60 
64  void SetColumnVisibility(const vtkStdString& name, bool visible);
65 
70  void SetColumnVisibilityAll(bool visible);
71 
76 
78 
81  vtkGetObjectMacro(VisibleColumns, vtkStringArray);
83 
88 
93 
97  virtual vtkAxis* GetAxis(int axisIndex);
98 
103 
108  virtual void RecalculateBounds();
109 
114  virtual void SetPlot(vtkPlotParallelCoordinates *plot);
115 
119  virtual bool Hit(const vtkContextMouseEvent &mouse);
120 
124  virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse);
125 
129  virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse);
130 
134  virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse);
135 
139  virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse);
140 
144  virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse);
145 
149  virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta);
150 
151 protected:
154 
156 
159  class Private;
160  Private *Storage;
162 
164 
169 
174 
179 
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
vtkChart
Factory class for drawing 2D charts.
Definition: vtkChart.h:51
vtkChartParallelCoordinates::RecalculateBounds
virtual void RecalculateBounds()
Request that the chart recalculates the range of its axes.
vtkChartParallelCoordinates::GetNumberOfPlots
virtual vtkIdType GetNumberOfPlots()
Get the number of plots the chart contains.
vtkContextMouseEvent
data structure to represent mouse events.
Definition: vtkContextMouseEvent.h:41
vtkChartParallelCoordinates::~vtkChartParallelCoordinates
~vtkChartParallelCoordinates()
vtkIdType
int vtkIdType
Definition: vtkType.h:287
vtkChartParallelCoordinates::MouseWheelEvent
virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta)
Mouse wheel event, positive delta indicates forward movement of the wheel.
vtkChartParallelCoordinates::SetColumnVisibilityAll
void SetColumnVisibilityAll(bool visible)
Set the visibility of all columns (true will make them all visible, false will remove all visible col...
vtkTimeStamp
record modification and/or execution time
Definition: vtkTimeStamp.h:36
vtkChart.h
vtkChartParallelCoordinates::GetNumberOfAxes
virtual vtkIdType GetNumberOfAxes()
Get the number of axes in the current chart.
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:58
vtkChartParallelCoordinates::Update
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
vtkPlot
Abstract class for 2D plots.
Definition: vtkPlot.h:53
vtkChartParallelCoordinates::GetPlot
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
vtkChartParallelCoordinates::UpdateGeometry
void UpdateGeometry()
vtkChartParallelCoordinates::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkChartParallelCoordinates::MouseLeaveEvent
virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse)
Mouse leave event.
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::MouseButtonPressEvent
virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse)
Mouse button down event.
vtkChartParallelCoordinates::Paint
virtual bool Paint(vtkContext2D *painter)
Paint event for the chart, called whenever the chart needs to be drawn.
vtkChartParallelCoordinates::CalculatePlotTransform
void CalculatePlotTransform()
vtkIndent
a simple class to control print indentation
Definition: vtkIndent.h:40
vtkChartParallelCoordinates::Hit
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
vtkX3D::name
@ name
Definition: vtkX3D.h:219
vtkChartParallelCoordinates::GeometryValid
bool GeometryValid
Definition: vtkChartParallelCoordinates.h:163
vtkChartParallelCoordinates::vtkChartParallelCoordinates
vtkChartParallelCoordinates()
vtkIdTypeArray
dynamic, self-adjusting array of vtkIdType
Definition: vtkIdTypeArray.h:42
vtkChartParallelCoordinates::Selection
vtkIdTypeArray * Selection
Selected indices for the table the plot is rendering.
Definition: vtkChartParallelCoordinates.h:168
vtkChartParallelCoordinates::BuildTime
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
Definition: vtkChartParallelCoordinates.h:178
vtkChartParallelCoordinates::MouseMoveEvent
virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse)
Mouse move event.
vtkChartParallelCoordinates::New
static vtkChartParallelCoordinates * New()
Creates a parallel coordinates chart.
vtkAxis
takes care of drawing 2D axes
Definition: vtkAxis.h:72
vtkChartParallelCoordinates::Storage
Private * Storage
Definition: vtkChartParallelCoordinates.h:159
vtkChartParallelCoordinates::MouseEnterEvent
virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse)
Mouse enter event.
vtkStringArray
a vtkAbstractArray subclass for strings
Definition: vtkStringArray.h:43
vtkChartParallelCoordinates
Factory class for drawing 2D charts.
Definition: vtkChartParallelCoordinates.h:39
vtkPlotParallelCoordinates
Class for drawing a parallel coordinate plot given columns from a vtkTable.
Definition: vtkPlotParallelCoordinates.h:40
vtkChartParallelCoordinates::MouseButtonReleaseEvent
virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse)
Mouse button release event.
vtkStdString
Wrapper around std::string to keep symbols short.
Definition: vtkStdString.h:49
vtkChartParallelCoordinates::ResetSelection
void ResetSelection()
vtkChartParallelCoordinates::VisibleColumns
vtkStringArray * VisibleColumns
A list of the visible columns in the chart.
Definition: vtkChartParallelCoordinates.h:173
vtkX3D::index
@ index
Definition: vtkX3D.h:246
vtkChartParallelCoordinates::GetAxis
virtual vtkAxis * GetAxis(int axisIndex)
Get the axis specified by axisIndex.
vtkChartParallelCoordinates::SwapAxes
void SwapAxes(int a1, int a2)