Debian Codegraph @

contrib/qtsolutions/qwtcurve/qwt_plot_gapped_curve.h

raw symbols SCIP
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 /// This class is a plot curve that can have gaps at points
13 /// with specific Y value.
14 /// This specific "gap" value can be passed to constructors,
15 /// it's zero by default.
16 class QwtPlotGappedCurve: public QwtPlotCurve
17 {
18 public:
19 /// gapValue is an Y value which denotes missed data
20 QwtPlotGappedCurve(double gapValue = 0);
21
22 /// gapValue is an Y value which denotes missed data
23 QwtPlotGappedCurve(const QwtText &title, double gapValue = 0);
24
25 /// gapValue is an Y value which denotes missed data
26 QwtPlotGappedCurve(const QString &title, double gapValue = 0);
27
28 /// Override draw method to create gaps for missed Y values
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 /// Value that denotes missed Y data at point
36 double gapValue_;
37 double naValue_;
38 };
39
40 ////////////////////////////////////////////////////////////////////////////////
41
42 #endif