VTK
|
00001 /*========================================================================= 00002 00003 Program: Visualization Toolkit 00004 Module: vtkChart2DHistogram.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 00023 #ifndef __vtkChart2DHistogram_h 00024 #define __vtkChart2DHistogram_h 00025 00026 #include "vtkChartsCoreModule.h" // For export macro 00027 #include "vtkChartXY.h" 00028 #include "vtkSmartPointer.h" // For SP ivars 00029 00030 class vtkColorLegend; 00031 class vtkPlotHistogram2D; 00032 class vtkImageData; 00033 class vtkScalarsToColors; 00034 00035 class VTKCHARTSCORE_EXPORT vtkChartHistogram2D : public vtkChartXY 00036 { 00037 public: 00038 vtkTypeMacro(vtkChartHistogram2D, vtkChartXY); 00039 virtual void PrintSelf(ostream &os, vtkIndent indent); 00040 00042 static vtkChartHistogram2D* New(); 00043 00047 virtual void Update(); 00048 00049 virtual void SetInputData(vtkImageData *data, vtkIdType z = 0); 00050 virtual void SetTransferFunction(vtkScalarsToColors *function); 00051 00053 virtual bool Hit(const vtkContextMouseEvent &mouse); 00054 00057 virtual vtkPlot* GetPlot(vtkIdType index); 00058 00059 protected: 00060 vtkChartHistogram2D(); 00061 ~vtkChartHistogram2D(); 00062 00063 vtkSmartPointer<vtkPlotHistogram2D> Histogram; 00064 00066 vtkTimeStamp BuildTime; 00067 00068 class Private; 00069 Private* Storage; 00070 00071 virtual bool UpdateLayout(vtkContext2D *painter); 00072 00073 private: 00074 vtkChartHistogram2D(const vtkChartHistogram2D &); // Not implemented. 00075 void operator=(const vtkChartHistogram2D &); // Not implemented. 00076 }; 00077 00078 #endif //__vtkChart2DHistogram_h