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
76
protected
:
77
vtkPlotHistogram2D
();
78
~
vtkPlotHistogram2D
();
79
81
void
GenerateHistogram();
82
83
vtkSmartPointer<vtkImageData>
Input
;
84
vtkSmartPointer<vtkImageData>
Output
;
85
vtkSmartPointer<vtkScalarsToColors>
TransferFunction
;
86
vtkRectf
Position
;
87
88
private
:
89
vtkPlotHistogram2D
(
const
vtkPlotHistogram2D
&);
// Not implemented.
90
void
operator=(
const
vtkPlotHistogram2D
&);
// Not implemented.
91
92
//ETX
93
};
94
95
#endif //__vtk2DHistogramItem_h
Generated on Fri Aug 2 2013 12:19:46 for VTK by
1.8.4