| 1 |
#ifndef QWT_PLOT_GAPPED_CURVE_H |
| 2 |
#define QWT_PLOT_GAPPED_CURVE_H |
| 3 |
|
| 4 |
#include <QString> |
| 5 |
|
| 6 |
#include "qwt_plot_curve.h" |
| 7 |
#include "qwt_text.h" |
| 8 |
#include "qwt_plot_curve.h" |
| 9 |
#include "qwt_scale_map.h" |
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
class QwtPlotGappedCurve: public QwtPlotCurve |
| 17 |
{ |
| 18 |
public: |
| 19 |
|
| 20 |
QwtPlotGappedCurve(double gapValue = 0); |
| 21 |
|
| 22 |
|
| 23 |
QwtPlotGappedCurve(const QwtText &title, double gapValue = 0); |
| 24 |
|
| 25 |
|
| 26 |
QwtPlotGappedCurve(const QString &title, double gapValue = 0); |
| 27 |
|
| 28 |
|
| 29 |
virtual void drawSeries(QPainter *painter, const QwtScaleMap &xMap, |
| 30 |
const QwtScaleMap &yMap, const QRectF &canvRect, int from, int to) const; |
| 31 |
|
| 32 |
void setNAValue(double x) { naValue_=x; } |
| 33 |
|
| 34 |
private: |
| 35 |
|
| 36 |
double gapValue_; |
| 37 |
double naValue_; |
| 38 |
}; |
| 39 |
|
| 40 |
|
| 41 |
|
| 42 |
#endif |