VTK
vtkChartHistogram2D.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkChart2DHistogram.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 
23 #ifndef vtkChart2DHistogram_h
24 #define vtkChart2DHistogram_h
25 
26 #include "vtkChartsCoreModule.h" // For export macro
27 #include "vtkChartXY.h"
28 #include "vtkSmartPointer.h" // For SP ivars
29 
30 class vtkColorLegend;
31 class vtkPlotHistogram2D;
32 class vtkImageData;
33 class vtkScalarsToColors;
34 
36 {
37 public:
39  virtual void PrintSelf(ostream &os, vtkIndent indent);
40 
42  static vtkChartHistogram2D* New();
43 
47  virtual void Update();
48 
49  virtual void SetInputData(vtkImageData *data, vtkIdType z = 0);
50  virtual void SetTransferFunction(vtkScalarsToColors *function);
51 
53  virtual bool Hit(const vtkContextMouseEvent &mouse);
54 
57  virtual vtkPlot* GetPlot(vtkIdType index);
58 
59 protected:
62 
64 
67 
68  class Private;
69  Private* Storage;
70 
71  virtual bool UpdateLayout(vtkContext2D *painter);
72 
73 private:
74  vtkChartHistogram2D(const vtkChartHistogram2D &); // Not implemented.
75  void operator=(const vtkChartHistogram2D &); // Not implemented.
76 };
77 
78 #endif //vtkChart2DHistogram_h
vtkSmartPointer< vtkPlotHistogram2D > Histogram
virtual void PrintSelf(ostream &os, vtkIndent indent)
static vtkChartXY * New()
virtual void Update()
record modification and/or execution time
Definition: vtkTimeStamp.h:34
Legend item to display vtkScalarsToColors.
int vtkIdType
Definition: vtkType.h:275
Superclass for mapping scalar values to colors.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
virtual bool UpdateLayout(vtkContext2D *painter)
data structure to represent mouse events.
a simple class to control print indentation
Definition: vtkIndent.h:38
topologically and geometrically regular array of data
Definition: vtkImageData.h:44
Abstract class for 2D plots.
Definition: vtkPlot.h:51
Factory class for drawing XY charts.
Definition: vtkChartXY.h:48
virtual bool Hit(const vtkContextMouseEvent &mouse)
virtual vtkPlot * GetPlot(vtkIdType index)
#define VTKCHARTSCORE_EXPORT