00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025 #ifndef DETAILPLOT_H
00026 #define DETAILPLOT_H
00027
00028 #include <qwt_plot.h>
00029
00030 class QwtPlotCurve;
00031 class QwtPlotMarker;
00032
00040 class DetailPlot: public QwtPlot
00041 {
00042 Q_OBJECT
00043 public:
00050 DetailPlot(int linesize, QPointF lineAxis, QWidget *parent = 0);
00051
00058 void setData(const double *x, const double *y,
00059 const QString &dateTimeLabel);
00064 void setSampleBounds(QPoint p);
00069 void setLineAxisBounds(QPointF p);
00074 QSize sizeHint() const { return QSize(1200 + 4, 192 + 4); }
00075
00076 private:
00077 int samplesprCruve;
00078 bool d_valid;
00079
00080 QPoint d_samplebounds;
00081 QPointF d_lineAxisbounds;
00082
00083 QwtPlotCurve *d_curve;
00084 QwtPlotMarker *d_marker;
00085 };
00086 inline void DetailPlot::setSampleBounds(QPoint p)
00087 { d_samplebounds = p; }
00088 inline void DetailPlot::setLineAxisBounds(QPointF p)
00089 { d_lineAxisbounds = p; }
00090 #endif // DETAILPLOT_H