00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: $RCSfile: vtkChartParallelCoordinates.h,v $ 00005 00006 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 00007 All rights reserved. 00008 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 00009 00010 This software is distributed WITHOUT ANY WARRANTY; without even 00011 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 00012 PURPOSE. See the above copyright notice for more information. 00013 00014 =========================================================================*/ 00015 00026 #ifndef __vtkChartParallelCoordinates_h 00027 #define __vtkChartParallelCoordinates_h 00028 00029 #include "vtkChart.h" 00030 00031 class vtkIdTypeArray; 00032 00033 class VTK_CHARTS_EXPORT vtkChartParallelCoordinates : public vtkChart 00034 { 00035 public: 00036 vtkTypeRevisionMacro(vtkChartParallelCoordinates, vtkChart); 00037 virtual void PrintSelf(ostream &os, vtkIndent indent); 00038 00040 static vtkChartParallelCoordinates* New(); 00041 00045 virtual void Update(); 00046 00049 virtual bool Paint(vtkContext2D *painter); 00050 00052 virtual vtkPlot* AddPlot(int type); 00053 00056 virtual bool RemovePlot(vtkIdType index); 00057 00059 virtual void ClearPlots(); 00060 00063 virtual vtkPlot* GetPlot(vtkIdType index); 00064 00066 virtual vtkIdType GetNumberOfPlots(); 00067 00071 virtual vtkAxis* GetAxis(int axisIndex); 00072 00074 virtual vtkIdType GetNumberOfAxes(); 00075 00079 virtual void RecalculateBounds(); 00080 00081 //BTX 00083 virtual bool Hit(const vtkContextMouseEvent &mouse); 00084 00086 virtual bool MouseEnterEvent(const vtkContextMouseEvent &mouse); 00087 00089 virtual bool MouseMoveEvent(const vtkContextMouseEvent &mouse); 00090 00092 virtual bool MouseLeaveEvent(const vtkContextMouseEvent &mouse); 00093 00095 virtual bool MouseButtonPressEvent(const vtkContextMouseEvent &mouse); 00096 00098 virtual bool MouseButtonReleaseEvent(const vtkContextMouseEvent &mouse); 00099 00102 virtual bool MouseWheelEvent(const vtkContextMouseEvent &mouse, int delta); 00103 //ETX 00104 00105 //BTX 00106 protected: 00107 vtkChartParallelCoordinates(); 00108 ~vtkChartParallelCoordinates(); 00109 00111 00112 class Private; 00113 Private *Storage; 00115 00116 bool GeometryValid; 00117 00119 vtkIdTypeArray *Selection; 00120 00121 void UpdateGeometry(); 00122 void CalculatePlotTransform(); 00123 00124 private: 00125 vtkChartParallelCoordinates(const vtkChartParallelCoordinates &); // Not implemented. 00126 void operator=(const vtkChartParallelCoordinates &); // Not implemented. 00127 //ETX 00128 }; 00129 00130 #endif //__vtkChartParallelCoordinates_h