00732 int from, int to) const
00733 {
00734 int x0 = xMap.transform(d_data->reference);
00735 int y0 = yMap.transform(d_data->reference);
00736
00737 for (int i = from; i <= to; i++)
00738 {
00739 const QwtDoublePoint sample = d_series->sample(i);
00740 const int xi = xMap.transform(sample.x());
00741 const int yi = yMap.transform(sample.y());
00742
00743 if (orientation() == Qt::Horizontal)
00744
QwtPainter::drawLine(painter, x0, yi, xi, yi
);
00745 else
00746
QwtPainter::drawLine(painter, xi, y0, xi, yi
);
00747 }
00748 }
00730 void QwtPlotCurve::drawSticks(QPainter *painter,
00731 const QwtScaleMap &xMap, const QwtScaleMap &yMap,
00732 int from, int to) const
00733 {
00734 int x0 = xMap.transform(d_data->reference);
00735 int y0 = yMap.transform(d_data->reference);
00736
00737 for (int i = from; i <= to; i++)
00738 {
00739 const QwtDoublePoint sample = d_series->sample(i);
00740 const int xi = xMap.transform(sample.x());
00741 const int yi = yMap.transform(sample.y());
00742
00743 if (orientation() == Qt::Horizontal)
00744 QwtPainter::drawLine(painter, x0, yi, xi, yi);
00745 else
00746 QwtPainter::drawLine(painter, xi, y0, xi, yi);
00747 }
00748 }
To copy to clipboard, switch view to plain text mode
Bookmarks