VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkPlotBag.h 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 00035 #ifndef __vtkPlotBag_h 00036 #define __vtkPlotBag_h 00037 00038 #include "vtkChartsCoreModule.h" // For export macro 00039 #include "vtkPlotPoints.h" 00040 00041 class VTKCHARTSCORE_EXPORT vtkPlotBag : public vtkPlotPoints 00042 { 00043 public: 00044 vtkTypeMacro(vtkPlotBag, vtkPlotPoints); 00045 virtual void PrintSelf(ostream &os, vtkIndent indent); 00046 00048 static vtkPlotBag *New(); 00049 00053 virtual void Update(); 00054 00057 virtual bool Paint(vtkContext2D *painter); 00058 00060 00065 virtual bool PaintLegend(vtkContext2D *painter, const vtkRectf& rect, 00066 int legendIndex); 00068 00072 virtual vtkStringArray *GetLabels(); 00073 00075 00077 virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, 00078 vtkIdType seriesIndex, 00079 vtkIdType segmentIndex); 00081 00083 00088 virtual void SetInputData(vtkTable *table); 00089 virtual void SetInputData(vtkTable *table, const vtkStdString &yColumn, 00090 const vtkStdString &densityColumn); 00091 virtual void SetInputData(vtkTable *table, const vtkStdString &xColumn, 00092 const vtkStdString &yColumn, 00093 const vtkStdString &densityColumn); 00095 00096 virtual void SetInputData(vtkTable *table, vtkIdType xColumn, 00097 vtkIdType yColumn, 00098 vtkIdType densityColumn); 00099 00100 protected: 00101 vtkPlotBag(); 00102 ~vtkPlotBag(); 00103 00104 void UpdateTableCache(vtkDataArray*); 00105 00106 vtkPoints2D* MedianPoints; 00107 vtkPoints2D* Q3Points; 00108 00109 private: 00110 vtkPlotBag(const vtkPlotBag &); // Not implemented. 00111 void operator=(const vtkPlotBag &); // Not implemented. 00112 }; 00113 00114 #endif //__vtkPlotBag_h