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
24#ifndef vtkChartHistogram2D_h
25#define vtkChartHistogram2D_h
26
27#include "vtkChartsCoreModule.h" // For export macro
28#include "vtkChartXY.h"
29#include "vtkSmartPointer.h" // For SP ivars
30
31class vtkColorLegend;
33class vtkImageData;
35
36class VTKCHARTSCORE_EXPORT vtkChartHistogram2D : public vtkChartXY
37{
38public:
40 virtual void PrintSelf(ostream &os, vtkIndent indent);
41
46
52 virtual void Update();
53
54 virtual void SetInputData(vtkImageData *data, vtkIdType z = 0);
56
60 virtual bool Hit(const vtkContextMouseEvent &mouse);
61
66
67protected:
70
72
77
78 class Private;
79 Private* Storage;
80
81 virtual bool UpdateLayout(vtkContext2D *painter);
82
83private:
84 vtkChartHistogram2D(const vtkChartHistogram2D &) VTK_DELETE_FUNCTION;
85 void operator=(const vtkChartHistogram2D &) VTK_DELETE_FUNCTION;
86};
87
88#endif //vtkChartHistogram2D_h
virtual void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual bool UpdateLayout(vtkContext2D *painter)
Update the layout of the chart, this may require the vtkContext2D in order to get font metrics etc.
vtkSmartPointer< vtkPlotHistogram2D > Histogram
virtual void Update()
Perform any updates to the item that may be necessary before rendering.
virtual vtkPlot * GetPlot(vtkIdType index)
Get the plot at the specified index, returns null if the index is invalid.
virtual void SetInputData(vtkImageData *data, vtkIdType z=0)
virtual bool Hit(const vtkContextMouseEvent &mouse)
Return true if the supplied x, y coordinate is inside the item.
virtual void SetTransferFunction(vtkScalarsToColors *function)
static vtkChartHistogram2D * New()
Creates a 2D histogram chart.
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
Factory class for drawing XY charts.
Definition: vtkChartXY.h:50
Legend item to display vtkScalarsToColors.
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:58
data structure to represent mouse events.
topologically and geometrically regular array of data
Definition: vtkImageData.h:46
a simple class to control print indentation
Definition: vtkIndent.h:40
Abstract class for 2D plots.
Definition: vtkPlot.h:53
Superclass for mapping scalar values to colors.
record modification and/or execution time
Definition: vtkTimeStamp.h:36
@ function
Definition: vtkX3D.h:249
@ index
Definition: vtkX3D.h:246
@ data
Definition: vtkX3D.h:315
int vtkIdType
Definition: vtkType.h:287