38 if (
isNaN(x))
return true;
40 if (
isNaN(y))
return true;
52 const QwtScaleMap &xMap,
const QwtScaleMap &yMap,
53 const QRectF &canvasRect,
int from,
int to)
const
59 int first, last = from;
72 QwtPlotCurve::drawSeries(painter, xMap, yMap, canvasRect, first, last - 1);
81 if (dataSize() <= 0) {
82 return QRectF(1.0, 1.0, 2.0, 2.0);
86 while (first < dataSize() &&
ignorePoint(
x(first),
y(first))) {
90 if (first == dataSize()) {
91 return QRectF(1.0, 1.0, 2.0, 2.0);
94 double minX, maxX, minY, maxY;
95 minX = maxX =
x(first);
96 minY = maxY =
y(first);
97 for (
size_t i = first + 1; i < dataSize(); ++i) {
98 const double xv =
x(i);
99 const double yv =
y(i);
113 return QRectF(minX, minY, maxX - minX, maxY - minY);
118 QPointF s = sample(n);
125 QPointF s = sample(n);
static bool isNaN(double x)
virtual QRectF boundingRect() const
virtual void drawSeries(QPainter *p, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const
bool ignorePoint(double x, double y) const