10 #ifndef QWT_PLOT_CURVE_H 11 #define QWT_PLOT_CURVE_H 149 LegendNoAttribute = 0x00,
155 LegendShowLine = 0x01,
160 LegendShowSymbol = 0x02,
166 LegendShowBrush = 0x04
200 MinimizeMemory = 0x04,
233 FilterPointsAggressive = 0x10,
239 explicit QwtPlotCurve(
const QString &title = QString() );
244 virtual int rtti()
const;
252 #ifndef QWT_NO_COMPAT 253 void setRawSamples(
const double *xData,
const double *yData,
int size );
254 void setSamples(
const double *xData,
const double *yData,
int size );
255 void setSamples(
const QVector<double> &xData,
const QVector<double> &yData );
257 void setSamples(
const QVector<QPointF> & );
260 virtual int closestPoint(
const QPoint &pos,
double *dist = NULL )
const;
262 double minXValue()
const;
263 double maxXValue()
const;
264 double minYValue()
const;
265 double maxYValue()
const;
270 void setPen(
const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
271 void setPen(
const QPen & );
272 const QPen &pen()
const;
274 void setBrush(
const QBrush & );
275 const QBrush &brush()
const;
277 void setBaseline(
double );
278 double baseline()
const;
291 const QRectF &canvasRect,
int from,
int to )
const;
299 virtual void drawCurve( QPainter *p,
int style,
301 const QRectF &canvasRect,
int from,
int to )
const;
303 virtual void drawSymbols( QPainter *p,
const QwtSymbol &,
305 const QRectF &canvasRect,
int from,
int to )
const;
307 virtual void drawLines( QPainter *p,
309 const QRectF &canvasRect,
int from,
int to )
const;
311 virtual void drawSticks( QPainter *p,
313 const QRectF &canvasRect,
int from,
int to )
const;
315 virtual void drawDots( QPainter *p,
317 const QRectF &canvasRect,
int from,
int to )
const;
319 virtual void drawSteps( QPainter *p,
321 const QRectF &canvasRect,
int from,
int to )
const;
323 virtual void fillCurve( QPainter *,
325 const QRectF &canvasRect, QPolygonF & )
const;
327 void closePolyline( QPainter *,
A plot item, that represents a series of points.
QFlags< CurveAttribute > CurveAttributes
Curve attributes.
A class for drawing symbols.
Class storing a QwtSeriesData object.
virtual void drawSeries(QPainter *painter, const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, int from, int to) const =0
A class representing a text.
A paint device for scalable graphics.
virtual QwtGraphic legendIcon(int index, const QSizeF &) const
virtual QRectF boundingRect() const
double minYValue() const
boundingRect().top()
double maxYValue() const
boundingRect().bottom()
QFlags< LegendAttribute > LegendAttributes
Legend attributes.
QFlags< PaintAttribute > PaintAttributes
Paint attributes.
Base class for plot items representing a series of samples.
double maxXValue() const
boundingRect().right()
Abstract base class for a curve fitter.
double minXValue() const
boundingRect().left()