VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
boeckb
code
depot
group-kitware
vtk
build-release
Utilities
Doxygen
dox
Charts
Core
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 "
vtkChartsCoreModule.h
"
// For export macro
27
#include "
vtkPlot.h
"
28
#include "
vtkSmartPointer.h
"
// Needed for SP ivars
29
#include "
vtkRect.h
"
// Needed for vtkRectf
30
31
class
vtkImageData
;
32
class
vtkScalarsToColors
;
33
34
class
VTKCHARTSCORE_EXPORT
vtkPlotHistogram2D
:
public
vtkPlot
35
{
36
public
:
37
vtkTypeMacro(
vtkPlotHistogram2D
,
vtkPlot
);
38
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
39
41
static
vtkPlotHistogram2D
*
New
();
42
46
virtual
void
Update
();
47
49
virtual
bool
Paint
(
vtkContext2D
*painter);
50
52
55
virtual
void
SetInputData
(
vtkImageData
*
data
,
vtkIdType
z = 0);
56
virtual
void
SetInputData
(
vtkTable
*) { }
57
virtual
void
SetInputData
(
vtkTable
*,
const
vtkStdString
&,
const
vtkStdString
&) { }
59
61
vtkImageData
* GetInputImageData();
62
65
void
SetTransferFunction(
vtkScalarsToColors
*transfer);
66
69
vtkScalarsToColors
* GetTransferFunction();
70
71
virtual
void
GetBounds
(
double
bounds[4]);
72
73
virtual
void
SetPosition(
const
vtkRectf
& pos);
74
virtual
vtkRectf
GetPosition();
75
76
//BTX
78
91
virtual
vtkStdString
GetTooltipLabel
(
const
vtkVector2d
&plotPos,
92
vtkIdType
seriesIndex,
93
vtkIdType
segmentIndex);
95
97
103
virtual
vtkIdType
GetNearestPoint
(
const
vtkVector2f
&
point
,
104
const
vtkVector2f
& tolerance,
105
vtkVector2f
*
location
);
107
108
protected
:
109
vtkPlotHistogram2D
();
110
~
vtkPlotHistogram2D
();
111
113
void
GenerateHistogram();
114
115
vtkSmartPointer<vtkImageData>
Input
;
116
vtkSmartPointer<vtkImageData>
Output
;
117
vtkSmartPointer<vtkScalarsToColors>
TransferFunction
;
118
vtkRectf
Position
;
119
120
private
:
121
vtkPlotHistogram2D
(
const
vtkPlotHistogram2D
&);
// Not implemented.
122
void
operator=(
const
vtkPlotHistogram2D
&);
// Not implemented.
123
124
//ETX
125
};
126
127
#endif //vtk2DHistogramItem_h
vtkX3D::data
Definition:
vtkX3D.h:315
vtkStdString
Wrapper around std::string to keep symbols short.
Definition:
vtkStdString.h:46
vtkX3D::location
Definition:
vtkX3D.h:406
vtkVector2d
Definition:
vtkVector.h:286
vtkAbstractContextItem::Paint
virtual bool Paint(vtkContext2D *painter)
vtkPlotHistogram2D::SetInputData
virtual void SetInputData(vtkTable *)
Definition:
vtkPlotHistogram2D.h:56
vtkPlot::GetBounds
virtual void GetBounds(double bounds[4])
Definition:
vtkPlot.h:276
vtkSmartPointer< vtkImageData >
vtkIdType
int vtkIdType
Definition:
vtkType.h:275
vtkRect.h
vtkPlotHistogram2D
Definition:
vtkPlotHistogram2D.h:34
vtkScalarsToColors
Superclass for mapping scalar values to colors.
Definition:
vtkScalarsToColors.h:62
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:56
vtkRectf
Definition:
vtkRect.h:96
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:38
vtkImageData
topologically and geometrically regular array of data
Definition:
vtkImageData.h:44
vtkPlotHistogram2D::TransferFunction
vtkSmartPointer< vtkScalarsToColors > TransferFunction
Definition:
vtkPlotHistogram2D.h:117
vtkPlot
Abstract class for 2D plots.
Definition:
vtkPlot.h:51
vtkVector2f
Definition:
vtkVector.h:276
vtkPlot::GetNearestPoint
virtual vtkIdType GetNearestPoint(const vtkVector2f &point, const vtkVector2f &tolerance, vtkVector2f *location)
vtkSmartPointer.h
vtkTable
A table, which contains similar-typed columns of data.
Definition:
vtkTable.h:67
vtkPlot::SetInputData
virtual void SetInputData(vtkTable *table)
vtkPlot::PrintSelf
virtual void PrintSelf(ostream &os, vtkIndent indent)
vtkPlot.h
vtkPlotHistogram2D::SetInputData
virtual void SetInputData(vtkTable *, const vtkStdString &, const vtkStdString &)
Definition:
vtkPlotHistogram2D.h:57
vtkX3D::point
Definition:
vtkX3D.h:236
vtkPlotHistogram2D::Position
vtkRectf Position
Definition:
vtkPlotHistogram2D.h:118
vtkPlotHistogram2D::Input
vtkSmartPointer< vtkImageData > Input
Definition:
vtkPlotHistogram2D.h:115
vtkObject::New
static vtkObject * New()
vtkPlotHistogram2D::Output
vtkSmartPointer< vtkImageData > Output
Definition:
vtkPlotHistogram2D.h:116
vtkAbstractContextItem::Update
virtual void Update()
VTKCHARTSCORE_EXPORT
#define VTKCHARTSCORE_EXPORT
Definition:
vtkChartsCoreModule.h:15
vtkPlot::GetTooltipLabel
virtual vtkStdString GetTooltipLabel(const vtkVector2d &plotPos, vtkIdType seriesIndex, vtkIdType segmentIndex)
vtkChartsCoreModule.h
Generated by
1.8.9.1