CFEL - ASG Software Suite
2.5.0
CASS
|
an alternative curve plot More...
#include <curve_plot.h>
Public Member Functions | |
PlotCurve () | |
default constructor More... | |
PlotCurve (const QString &title) | |
constructor More... | |
void | drawSeries (QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const |
draw the curve More... | |
an alternative curve plot
is an qwt plot curve but evaluates whether the point to be drawn is invalid if so it just skips these parts of the curve.
Definition at line 26 of file curve_plot.h.
PlotCurve::PlotCurve | ( | ) |
default constructor
Definition at line 19 of file curve_plot.cpp.
PlotCurve::PlotCurve | ( | const QString & | title | ) |
void PlotCurve::drawSeries | ( | QPainter * | painter, |
const QwtScaleMap & | xMap, | ||
const QwtScaleMap & | yMap, | ||
const QRectF & | canvasRect, | ||
int | from, | ||
int | to | ||
) | const |
draw the curve
uses the base class draw, but only for areas hat have valid values
painter | |
xMap | |
yMap | |
canvasRect | |
from | |
to |
find the first point that is valid
find the last point that is valid
plot that valid subrange
Definition at line 48 of file curve_plot.cpp.
References data, and validate().