10 #ifndef QWT_PLOT_CURVE_H 11 #define QWT_PLOT_CURVE_H 150 LegendNoAttribute = 0x00,
156 LegendShowLine = 0x01,
161 LegendShowSymbol = 0x02,
167 LegendShowBrush = 0x04
200 MinimizeMemory = 0x04,
233 FilterPointsAggressive = 0x10,
238 explicit QwtPlotCurve(
const QString& title = QString() );
246 bool testPaintAttribute( PaintAttribute ) const;
249 bool testLegendAttribute( LegendAttribute ) const;
251 void setLegendAttributes( LegendAttributes );
252 LegendAttributes legendAttributes() const;
254 void setRawSamples( const
double* xData, const
double* yData,
int size );
255 void setRawSamples( const
float* xData, const
float* yData,
int size );
257 void setRawSamples( const
double* yData,
int size );
258 void setRawSamples( const
float* yData,
int size );
260 void setSamples( const
double* xData, const
double* yData,
int size );
261 void setSamples( const
float* xData, const
float* yData,
int size );
263 void setSamples( const
double* yData,
int size );
264 void setSamples( const
float* yData,
int size );
266 void setSamples( const
QVector<
double >& yData );
267 void setSamples( const
QVector<
float >& yData );
269 void setSamples( const
QVector<
double >& xData, const
QVector<
double >& yData );
270 void setSamples( const
QVector<
float >& xData, const
QVector<
float >& yData );
272 void setSamples( const
QVector< QPointF >& );
275 virtual
int closestPoint( const QPoint& pos,
double* dist = NULL ) const;
277 double minXValue() const;
278 double maxXValue() const;
279 double minYValue() const;
280 double maxYValue() const;
283 bool testCurveAttribute( CurveAttribute ) const;
285 void setPen( const QColor&, qreal width = 0.0, Qt::PenStyle = Qt::SolidLine );
286 void setPen( const QPen& );
287 const QPen& pen() const;
289 void setBrush( const QBrush& );
290 const QBrush& brush() const;
292 void setBaseline(
double );
293 double baseline() const;
299 const QwtSymbol* symbol() const;
302 QwtCurveFitter* curveFitter() const;
304 virtual
void drawSeries( QPainter*,
306 const QRectF& canvasRect,
int from,
int to ) const
QWT_OVERRIDE;
308 virtual
QwtGraphic legendIcon(
int index, const QSizeF& ) const QWT_OVERRIDE;
314 virtual
void drawCurve( QPainter*,
int style,
316 const QRectF& canvasRect,
int from,
int to ) const;
318 virtual
void drawSymbols( QPainter*, const QwtSymbol&,
320 const QRectF& canvasRect,
int from,
int to ) const;
322 virtual
void drawLines( QPainter*,
324 const QRectF& canvasRect,
int from,
int to ) const;
326 virtual
void drawSticks( QPainter*,
328 const QRectF& canvasRect,
int from,
int to ) const;
330 virtual
void drawDots( QPainter*,
332 const QRectF& canvasRect,
int from,
int to ) const;
334 virtual
void drawSteps( QPainter*,
336 const QRectF& canvasRect,
int from,
int to ) const;
338 virtual
void fillCurve( QPainter*,
340 const QRectF& canvasRect, QPolygonF& ) const;
342 void closePolyline( QPainter*,
343 const QwtScaleMap&, const QwtScaleMap&, QPolygonF& ) const;
374 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotCurve::PaintAttributes )
375 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotCurve::LegendAttributes )
376 Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPlotCurve::CurveAttributes )
A plot item, that represents a series of points.
double maxYValue() const
boundingRect().bottom()
Abstract interface for iterating over samples.
A class for drawing symbols.
Class storing a QwtSeriesData object.
double minYValue() const
boundingRect().top()
A class representing a text.
A paint device for scalable graphics.
double maxXValue() const
boundingRect().right()
span_constexpr std::size_t size(span< T, Extent > const &spn)
Base class for plot items representing a series of samples.
Abstract base class for a curve fitter.
virtual QRectF boundingRect() const QWT_OVERRIDE