VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Source
VTK
release
8.2
build
Utilities
Doxygen
dox
Charts
Core
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
31
class
vtkColorLegend
;
32
class
vtkPlotHistogram2D
;
33
class
vtkImageData
;
34
class
vtkScalarsToColors
;
35
36
class
VTKCHARTSCORE_EXPORT
vtkChartHistogram2D
:
public
vtkChartXY
37
{
38
public
:
39
vtkTypeMacro(
vtkChartHistogram2D
,
vtkChartXY
);
40
void
PrintSelf
(ostream &os,
vtkIndent
indent)
override
;
41
45
static
vtkChartHistogram2D
*
New
();
46
52
void
Update
()
override
;
53
54
virtual
void
SetInputData(
vtkImageData
*
data
,
vtkIdType
z = 0);
55
virtual
void
SetTransferFunction(
vtkScalarsToColors
*
function
);
56
60
bool
Hit
(
const
vtkContextMouseEvent
&mouse)
override
;
61
65
vtkPlot
*
GetPlot
(
vtkIdType
index
)
override
;
66
67
protected
:
68
vtkChartHistogram2D
();
69
~
vtkChartHistogram2D
()
override
;
70
71
vtkSmartPointer<vtkPlotHistogram2D>
Histogram
;
72
76
vtkTimeStamp
BuildTime
;
77
78
class
Private;
79
Private*
Storage
;
80
81
bool
UpdateLayout
(
vtkContext2D
*painter)
override
;
82
83
private
:
84
vtkChartHistogram2D
(
const
vtkChartHistogram2D
&) =
delete
;
85
void
operator=(
const
vtkChartHistogram2D
&) =
delete
;
86
};
87
88
#endif //vtkChartHistogram2D_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkChartHistogram2D::Histogram
vtkSmartPointer< vtkPlotHistogram2D > Histogram
Definition:
vtkChartHistogram2D.h:71
vtkChartXY.h
vtkChartXY::New
static vtkChartXY * New()
Creates a 2D Chart object.
vtkTimeStamp
record modification and/or execution time
Definition:
vtkTimeStamp.h:35
vtkChartHistogram2D
Definition:
vtkChartHistogram2D.h:36
vtkColorLegend
Legend item to display vtkScalarsToColors.
Definition:
vtkColorLegend.h:38
vtkSmartPointer< vtkPlotHistogram2D >
vtkIdType
int vtkIdType
Definition:
vtkType.h:347
vtkPlotHistogram2D
Definition:
vtkPlotHistogram2D.h:35
vtkChartXY::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition:
vtkScalarsToColors.h:66
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:58
vtkChartXY::UpdateLayout
virtual bool UpdateLayout(vtkContext2D *painter)
Update the layout of the chart, this may require the vtkContext2D in order to get font metrics etc...
vtkContextMouseEvent
data structure to represent mouse events.
Definition:
vtkContextMouseEvent.h:40
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:45
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:52
vtkChartXY::Hit
bool Hit(const vtkContextMouseEvent &mouse) override
Return true if the supplied x, y coordinate is inside the item.
vtkChartXY
Factory class for drawing XY charts.
Definition:
vtkChartXY.h:49
vtkSmartPointer.h
vtkChartXY::GetPlot
vtkPlot * GetPlot(vtkIdType index) override
Get the plot at the specified index, returns null if the index is invalid.
vtkChartXY::Update
void Update() override
Perform any updates to the item that may be necessary before rendering.
vtkX3D::index
Definition:
vtkX3D.h:246
vtkChartHistogram2D::Storage
Private * Storage
Definition:
vtkChartHistogram2D.h:78
vtkChartHistogram2D::BuildTime
vtkTimeStamp BuildTime
The point cache is marked dirty until it has been initialized.
Definition:
vtkChartHistogram2D.h:76
Generated by
1.8.11