VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
vtkPlotHistogram2D.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtk2DHistogramItem.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 __vtk2DHistogramItem_h
24
#define __vtk2DHistogramItem_h
25
26
#include "
vtkPlot.h
"
27
#include "
vtkSmartPointer.h
"
// Needed for SP ivars
28
#include "
vtkRect.h
"
// Needed for vtkRectf
29
30
class
vtkImageData
;
31
class
vtkScalarsToColors
;
32
33
class
VTK_CHARTS_EXPORT
vtkPlotHistogram2D
:
public
vtkPlot
34
{
35
public
:
36
vtkTypeMacro(
vtkPlotHistogram2D
,
vtkPlot
);
37
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
38
40
static
vtkPlotHistogram2D
*
New
();
41
45
virtual
void
Update
();
46
48
virtual
bool
Paint
(
vtkContext2D
*painter);
49
51
54
virtual
void
SetInput
(
vtkImageData
*
data
,
vtkIdType
z = 0);
55
virtual
void
SetInput
(
vtkTable
*) { }
56
virtual
void
SetInput
(
vtkTable
*,
const
vtkStdString
&,
const
vtkStdString
&) { }
58
60
vtkImageData
* GetInputImageData();
61
64
void
SetTransferFunction(
vtkScalarsToColors
*transfer);
65
68
vtkScalarsToColors
* GetTransferFunction();
69
70
virtual
void
GetBounds
(
double
bounds[4]);
71
72
virtual
void
SetPosition(
const
vtkRectf
& pos);
73
virtual
vtkRectf
GetPosition();
74
75
//BTX
77
90
virtual
vtkStdString
GetTooltipLabel
(
const
vtkVector2f
&plotPos,
91
vtkIdType
seriesIndex,
92
vtkIdType
segmentIndex);
94
96
102
virtual
vtkIdType
GetNearestPoint
(
const
vtkVector2f
&
point
,
103
const
vtkVector2f
& tolerance,
104
vtkVector2f
*
location
);
106
107
protected
:
108
vtkPlotHistogram2D
();
109
~
vtkPlotHistogram2D
();
110
112
void
GenerateHistogram();
113
114
vtkSmartPointer<vtkImageData>
Input
;
115
vtkSmartPointer<vtkImageData>
Output
;
116
vtkSmartPointer<vtkScalarsToColors>
TransferFunction
;
117
vtkRectf
Position
;
118
119
private
:
120
vtkPlotHistogram2D
(
const
vtkPlotHistogram2D
&);
// Not implemented.
121
void
operator=(
const
vtkPlotHistogram2D
&);
// Not implemented.
122
123
//ETX
124
};
125
126
#endif //__vtk2DHistogramItem_h
Generated on Tue Jan 8 2013 05:45:22 for VTK by
1.8.1.2