10 #ifndef QWT_PLOT_CURVE_H 11 #define QWT_PLOT_CURVE_H 151 LegendNoAttribute = 0x00,
157 LegendShowLine = 0x01,
162 LegendShowSymbol = 0x02,
168 LegendShowBrush = 0x04
202 MinimizeMemory = 0x04,
235 FilterPointsAggressive = 0x10,
241 explicit QwtPlotCurve(
const QString &title = QString() );
249 bool testPaintAttribute( PaintAttribute ) const;
252 bool testLegendAttribute( LegendAttribute ) const;
254 void setLegendAttributes( LegendAttributes );
255 LegendAttributes legendAttributes() const;
257 void setRawSamples( const
double *xData, const
double *yData,
int size );
258 void setRawSamples( const
float *xData, const
float *yData,
int size );
260 void setRawSamples( const
double *yData,
int size );
261 void setRawSamples( const
float *yData,
int size );
263 void setSamples( const
double *xData, const
double *yData,
int size );
264 void setSamples( const
float *xData, const
float *yData,
int size );
266 void setSamples( const
double *yData,
int size );
267 void setSamples( const
float *yData,
int size );
269 void setSamples( const
QVector<
double> &yData );
270 void setSamples( const
QVector<
float> &yData );
272 void setSamples( const
QVector<
double> &xData, const
QVector<
double> &yData );
273 void setSamples( const
QVector<
float> &xData, const
QVector<
float> &yData );
275 void setSamples( const
QVector<QPointF> & );
278 virtual
int closestPoint( const QPoint &pos,
double *dist = NULL ) const;
280 double minXValue() const;
281 double maxXValue() const;
282 double minYValue() const;
283 double maxYValue() const;
286 bool testCurveAttribute( CurveAttribute ) const;
288 void setPen( const QColor &, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
289 void setPen( const QPen & );
290 const QPen &pen() const;
292 void setBrush( const QBrush & );
293 const QBrush &brush() const;
295 void setBaseline(
double );
296 double baseline() const;
302 const QwtSymbol *symbol() const;
305 QwtCurveFitter *curveFitter() const;
307 virtual
void drawSeries( QPainter *,
309 const QRectF &canvasRect,
int from,
int to ) const
QWT_OVERRIDE;
311 virtual
QwtGraphic legendIcon(
int index, const QSizeF & ) const QWT_OVERRIDE;
317 virtual
void drawCurve( QPainter *,
int style,
319 const QRectF &canvasRect,
int from,
int to ) const;
321 virtual
void drawSymbols( QPainter *, const QwtSymbol &,
323 const QRectF &canvasRect,
int from,
int to ) const;
325 virtual
void drawLines( QPainter *,
327 const QRectF &canvasRect,
int from,
int to ) const;
329 virtual
void drawSticks( QPainter *,
331 const QRectF &canvasRect,
int from,
int to ) const;
333 virtual
void drawDots( QPainter *,
335 const QRectF &canvasRect,
int from,
int to ) const;
337 virtual
void drawSteps( QPainter *,
339 const QRectF &canvasRect,
int from,
int to ) const;
341 virtual
void fillCurve( QPainter *,
343 const QRectF &canvasRect, QPolygonF & ) const;
345 void closePolyline( QPainter *,
346 const QwtScaleMap &, const QwtScaleMap &, QPolygonF & ) const;
A plot item, that represents a series of points.
Abstract interface for iterating over samples.
QFlags< CurveAttribute > CurveAttributes
Curve attributes.
A class for drawing symbols.
Class storing a QwtSeriesData object.
A class representing a text.
A paint device for scalable graphics.
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.
virtual QRectF boundingRect() const QWT_OVERRIDE