Isis 3.0 Object Programmers' Reference
Home
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
PlotCurve.h
Go to the documentation of this file.
1
#ifndef PlotCurve_h
2
#define PlotCurve_h
3
26
#include <qwt_plot.h>
27
#include <qwt_plot_curve.h>
28
#include <qwt_plot_marker.h>
29
#include <qwt_symbol.h>
30
#include <qwt_plot_marker.h>
31
32
namespace
Isis {
44
class
PlotCurve
:
public
QwtPlotCurve
{
45
46
public
:
54
enum
Units
{
59
Unknown
,
63
Band
,
67
CubeDN
,
71
Elevation
,
75
Percentage
,
79
PixelNumber
,
83
Meters
,
87
Kilometers
,
92
Wavelength
93
};
94
95
PlotCurve
(
Units
xUnits
,
Units
yUnits
);
96
~
PlotCurve
();
97
98
void
attachMarkers
();
99
100
QColor
color
()
const
;
101
QwtSymbol
markerSymbol
()
const
;
102
Units
xUnits
()
const
;
103
Units
yUnits
()
const
;
104
105
void
setColor
(
const
QColor &
color
);
106
void
setData
(QwtSeriesData<QPointF> *data);
107
void
setPen
(
const
QPen &pen);
108
void
setMarkerSymbol
(QwtSymbol symbol);
109
void
setMarkerVisible
(
bool
visible);
110
111
protected
:
112
QByteArray
fromByteArray
(
const
QByteArray &classData);
113
QByteArray toByteArray()
const
;
114
115
private
:
116
PlotCurve
(
const
PlotCurve
&other);
117
PlotCurve
&operator=(
const
PlotCurve
&other);
118
119
void
clearMarkers();
120
void
recreateMarkers();
121
122
private
:
123
QColor m_color;
124
QwtSymbol
m_markerSymbol
;
125
QList<QwtPlotMarker *>
m_valuePointMarkers;
126
Units
m_xUnits;
127
Units
m_yUnits;
128
};
129
};
130
#endif