9#ifndef QWT_POLAR_CURVE_H
10#define QWT_POLAR_CURVE_H
12#include "qwt_global.h"
13#include "qwt_polar_item.h"
15#include "qwt_series_data.h"
69 LegendShowLine = 0x01,
72 LegendShowSymbol = 0x02
75 Q_DECLARE_FLAGS( LegendAttributes, LegendAttribute )
84 virtual int rtti() const QWT_OVERRIDE;
86 void setLegendAttribute( LegendAttribute,
bool on = true );
87 bool testLegendAttribute( LegendAttribute ) const;
92 size_t dataSize() const;
95 void setPen( const QPen& );
96 const QPen& pen() const;
98 void setStyle( CurveStyle style );
99 CurveStyle style() const;
107 virtual
void draw( QPainter* p,
109 const QPointF& pole,
double radius,
110 const QRectF& canvasRect ) const QWT_OVERRIDE;
112 virtual
void draw( QPainter* p,
114 const QPointF& pole,
int from,
int to ) const;
116 virtual
QwtInterval boundingInterval(
int scaleId ) const QWT_OVERRIDE;
118 virtual
QwtGraphic legendIcon(
int index, const QSizeF& ) const QWT_OVERRIDE;
124 virtual
void drawCurve( QPainter*,
int style,
126 const QPointF& pole,
int from,
int to ) const;
128 virtual
void drawSymbols( QPainter*, const
QwtSymbol&,
130 const QPointF& pole,
int from,
int to ) const;
132 void drawLines( QPainter*,
134 const QPointF& pole,
int from,
int to ) const;
155 return m_series->sample( i );
158Q_DECLARE_OPERATORS_FOR_FLAGS( QwtPolarCurve::LegendAttributes )
Abstract base class for a curve fitter.
Definition qwt_curve_fitter.h:39
A paint device for scalable graphics.
Definition qwt_graphic.h:93
A class representing an interval.
Definition qwt_interval.h:40
A point in polar coordinates.
Definition qwt_point_polar.h:46
An item, that represents a series of points.
Definition qwt_polar_curve.h:31
LegendAttribute
Attributes how to represent the curve on the legend.
Definition qwt_polar_curve.h:64
CurveStyle
Curve styles.
Definition qwt_polar_curve.h:38
@ NoCurve
Don't draw a curve. Note: This doesn't affect the symbols.
Definition qwt_polar_curve.h:40
@ Lines
Connect the points with straight lines.
Definition qwt_polar_curve.h:47
QwtPointPolar sample(int i) const
Definition qwt_polar_curve.h:153
Base class for items on a polar plot.
Definition qwt_polar_item.h:38
virtual int rtti() const
Return rtti for the specific class represented.
Definition qwt_polar_item.cpp:112
A scale map.
Definition qwt_scale_map.h:44
Abstract interface for iterating over samples.
Definition qwt_series_data.h:67
A class for drawing symbols.
Definition qwt_symbol.h:49
A class representing a text.
Definition qwt_text.h:69