VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Charts
Core
vtkPlotStacked.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPlotPoints.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
27
#ifndef __vtkPlotStacked_h
28
#define __vtkPlotStacked_h
29
30
#include "vtkChartsCoreModule.h"
// For export macro
31
#include "
vtkPlot.h
"
32
33
class
vtkChartXY
;
34
class
vtkContext2D
;
35
class
vtkTable
;
36
class
vtkPoints2D
;
37
class
vtkStdString
;
38
class
vtkImageData
;
39
class
vtkColorSeries
;
40
41
class
vtkPlotStackedPrivate;
42
43
class
VTKCHARTSCORE_EXPORT
vtkPlotStacked
:
public
vtkPlot
44
{
45
public
:
46
vtkTypeMacro(
vtkPlotStacked
,
vtkPlot
);
47
virtual
void
PrintSelf
(ostream &os,
vtkIndent
indent);
48
50
static
vtkPlotStacked
*
New
();
51
53
54
virtual
void
SetColor
(
unsigned
char
r,
unsigned
char
g,
unsigned
char
b,
55
unsigned
char
a);
56
virtual
void
SetColor
(
double
r,
double
g,
double
b);
57
virtual
void
GetColor
(
double
rgb[3]);
59
63
virtual
void
Update
();
64
67
virtual
bool
Paint
(
vtkContext2D
*painter);
68
70
75
virtual
bool
PaintLegend
(
vtkContext2D
*painter,
const
vtkRectf
& rect,
76
int
legendIndex);
78
80
virtual
void
GetBounds
(
double
bounds[4]);
81
83
virtual
void
SetInputArray
(
int
index
,
const
vtkStdString
&
name
);
84
86
void
SetColorSeries(
vtkColorSeries
*colorSeries);
87
89
vtkColorSeries
*GetColorSeries();
90
92
virtual
vtkStringArray
*
GetLabels
();
93
94
//BTX
96
99
virtual
vtkIdType
GetNearestPoint
(
const
vtkVector2f
&
point
,
100
const
vtkVector2f
& tolerance,
101
vtkVector2f
*
location
);
103
105
virtual
bool
SelectPoints
(
const
vtkVector2f
& min,
const
vtkVector2f
&
max
);
106
107
//BTX
108
protected
:
109
vtkPlotStacked
();
110
~
vtkPlotStacked
();
111
113
bool
UpdateTableCache(
vtkTable
*table);
114
115
// Descript:
116
// For stacked plots the Extent data must be greater than (or equal to) the
117
// base data. Insure that this is true
118
void
FixExtent();
119
123
void
CalculateLogSeries();
124
127
vtkIdTypeArray
*
BaseBadPoints
;
128
132
vtkIdTypeArray
*
ExtentBadPoints
;
133
135
vtkTimeStamp
BuildTime
;
136
137
bool
LogX,
LogY
;
138
140
vtkSmartPointer<vtkColorSeries>
ColorSeries
;
141
142
private
:
143
vtkPlotStacked
(
const
vtkPlotStacked
&);
// Not implemented.
144
void
operator=(
const
vtkPlotStacked
&);
// Not implemented.
145
146
vtkPlotStackedPrivate *Private;
147
148
//ETX
149
};
150
151
#endif //__vtkPlotStacked_h
Generated on Thu May 24 2012 22:22:08 for VTK by
1.8.1