QwtPolarCurve(3)
π QwtPolarCurve(3) π
okay bestie, welcome to the Library Functions Manual page for QwtPolarCurve(3) β yes, the whole manual name is folded in right here so you don't miss it. this is literally the blueprint for an item that represents a series of points, and we're going through every type, every function, every enum, every definition line. no skipping, periodt. π«Ά
β¨ NAME β¨
QwtPolarCurve β an item, that represents a series of points. π
πΈ SYNOPSIS πΈ
#include <qwt_polar_curve.h>
Inherits QwtPolarItem.
π Public Types π
enum CurveStyleβ{ NoCurve, Lines, UserCurve = 100 }enum LegendAttributeβ{ LegendShowLine = 0x01, LegendShowSymbol = 0x02 }. attributes how to represent the curve on the legend. π¨typedef QFlags< LegendAttribute > LegendAttributes
π« Public Types inherited from QwtPolarItem π«
enum RttiValuesβ{ Rtti_PolarItem = 0, Rtti_PolarGrid, Rtti_PolarMarker, Rtti_PolarCurve, Rtti_PolarSpectrogram, Rtti_PolarUserItem = 1000 }. runtime type information.enum ItemAttributeβ{ Legend = 0x01, AutoScale = 0x02 }. plot Item Attributes.enum RenderHintβ{ RenderAntialiased = 0x01 }. render hints.typedef QFlags< ItemAttribute > ItemAttributestypedef QFlags< RenderHint > RenderHints
π Public Member Functions π
QwtPolarCurve ()β Constructor.QwtPolarCurve (const QwtText &title)QwtPolarCurve (const QString &title)virtual ~QwtPolarCurve ()β Destructor.virtual int rtti () const overridevoid setLegendAttribute (LegendAttribute, bool on=true)bool testLegendAttribute (LegendAttribute) constβ test if a legend attribute is enabled.void setData (QwtSeriesData< QwtPointPolar > *data)const QwtSeriesData< QwtPointPolar > * data () constsize_t dataSize () constQwtPointPolar sample (int i) constvoid setPen (const QPen &)β assign a pen.const QPen & pen () constvoid setStyle (CurveStyle style)CurveStyle style () constvoid setSymbol (QwtSymbol *)β assign a symbol.const QwtSymbol * symbol () constvoid setCurveFitter (QwtCurveFitter *)β insert a curve fitter.QwtCurveFitter * curveFitter () constvirtual void draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const overridevirtual void draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) constβ draw an interval of the curve.virtual QwtInterval boundingInterval (int scaleId) const overridevirtual QwtGraphic legendIcon (int index, const QSizeF &) const override
π¦ Public Member Functions inherited from QwtPolarItem π¦
QwtPolarItem (const QwtText &title=QwtText())virtual ~QwtPolarItem ()β destroy theQwtPolarItem.void attach (QwtPolarPlot *plot)β attach the item to a plot.void detach ()β this method detaches aQwtPolarItemfrom theQwtPolarPlotit has been associated with.QwtPolarPlot * plot () constvoid setTitle (const QString &title)void setTitle (const QwtText &title)const QwtText & title () constvoid setItemAttribute (ItemAttribute, bool on=true)bool testItemAttribute (ItemAttribute) constvoid setRenderHint (RenderHint, bool on=true)bool testRenderHint (RenderHint) constvoid setRenderThreadCount (uint numThreads)uint renderThreadCount () constdouble z () constvoid setZ (double z)β set the z value.void show ()β show the item.void hide ()β hide the item.virtual void setVisible (bool)bool isVisible () constvirtual void itemChanged ()virtual void legendChanged ()virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtInterval &)β update the item to changes of the axes scale division.virtual int marginHint () constvoid setLegendIconSize (const QSize &)QSize legendIconSize () constvirtual QList< QwtLegendData > legendData () constβ return all information, that is needed to represent the item on the legend.
π Protected Member Functions π
void init ()β initialize data members.virtual void drawCurve (QPainter *, int style, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) constvirtual void drawSymbols (QPainter *, const QwtSymbol &, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) constvoid drawLines (QPainter *, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const
π₯ Detailed Description π₯
An item, that represents a series of points. π«
A curve is the representation of a series of points in polar coordinates. The points are connected to the curve using the abstract QwtData interface. no cap, that's the whole vibe.
See also: QwtPolarPlot, QwtSymbol, QwtScaleMap
Definition at line 30 of file qwt_polar_curve.h.
π Member Typedef Documentation π
typedef QFlags<LegendAttribute > QwtPolarCurve::LegendAttributes
An ORed combination of LegendAttribute values. π
Definition at line 75 of file qwt_polar_curve.h.
π§ Member Enumeration Documentation π§
enum QwtPolarCurve::CurveStyle
Curve styles. π
See also: setStyle(), style()
Enumerator
NoCurveβ don't draw a curve. Note: this doesn't affect the symbols. πLinesβ connect the points with straight lines. The lines might be interpolated depending on the'Fitted'attribute. Curve fitting can be configured usingsetCurveFitter(). πUserCurveβ values > 100 are reserved for user specific curve styles. π
Definition at line 37 of file qwt_polar_curve.h.
enum QwtPolarCurve::LegendAttribute
Attributes how to represent the curve on the legend. If none of the flags is activated QwtPlotCurve tries to find a color representing the curve and paints a rectangle with it. In the default setting all attributes are off. π¨
See also: setLegendAttribute(), testLegendAttribute()
Enumerator
LegendShowLineβ if thecurveStyle()is notNoCurvea line is painted with thecurvePen(). β¨LegendShowSymbolβ if the curve has a valid symbol it is painted. π¦
Definition at line 63 of file qwt_polar_curve.h.
π Constructor & Destructor Documentation π
QwtPolarCurve::QwtPolarCurve () [explicit]
Constructor. π«Ά
Definition at line 66 of file qwt_polar_curve.cpp.
QwtPolarCurve::QwtPolarCurve (const QwtText & title) [explicit]
Constructor. πΈ
Parameters: title title of the curve.
Definition at line 76 of file qwt_polar_curve.cpp.
QwtPolarCurve::QwtPolarCurve (const QString & title) [explicit]
Constructor. π
Parameters: title title of the curve.
Definition at line 86 of file qwt_polar_curve.cpp.
QwtPolarCurve::~QwtPolarCurve () [virtual]
Destructor. π
Definition at line 93 of file qwt_polar_curve.cpp.
π MEMBER FUNCTION DOCUMENTATION π
Okay bestie, this is the full member-function lineup. Same signatures, same defaults, same return values, same βDefinition at line β¦β energy β just with the group-chat sparkle turned all the way up. β¨
πΈ QwtInterval QwtPolarCurve::boundingInterval (int scaleId) const [override], [virtual]
This is the interval thatβs necessary to display the item. The page says this interval βcan be useful for operations like clipping or autoscalingβ β lowkey iconic utility behavior. π
scaleIdβ Scale index.- Returns: bounding interval.
See also: QwtData::boundingRect().
Reimplemented from QwtPolarItem.
Definition at line 585 of file qwt_polar_curve.cpp.
π¦ QwtCurveFitter * QwtPolarCurve::curveFitter () const
- Returns: The curve fitter.
See also: setCurveFitter().
Definition at line 261 of file qwt_polar_curve.cpp.
π const QwtSeriesData< QwtPointPolar > * QwtPolarCurve::data () const [inline]
- Returns: the the curve data.
Yes, the double βtheβ is literally in the source β we keep the facts, not the grammar glow-up. π
Definition at line 144 of file qwt_polar_curve.h.
π size_t QwtPolarCurve::dataSize () const
- Returns: Number of points.
See also: setData().
Definition at line 499 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::draw (QPainter * painter, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, double radius, const QRectF & canvasRect) const [override], [virtual]
Draw the curve. This is the big painter-coordinates moment. ποΈ
painterβ Painter.azimuthMapβ Maps azimuth values to values related to0.0,M_2PI.radialMapβ Maps radius values into painter coordinates.poleβ Position of the pole in painter coordinates.radiusβ Radius of the complete plot area in painter coordinates.canvasRectβ Contents rect of the canvas in painter coordinates.
Implements QwtPolarItem.
Definition at line 276 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::draw (QPainter * painter, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, int from, int to) const [virtual]
Draw an interval of the curve. Same painter world, but now with point indexes. β¨
painterβ Painter.azimuthMapβ Maps azimuth values to values related to0.0,M_2PI.radialMapβ Maps radius values into painter coordinates.poleβ Position of the pole in painter coordinates.fromβ index of the first point to be painted.toβ index of the last point to be painted. Ifto < 0the curve will be painted to its last point.
See also: drawCurve(), drawSymbols().
Definition at line 299 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::drawCurve (QPainter * painter, int style, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, int from, int to) const [protected], [virtual]
Draw the line part β and only the line part, no symbols β of a curve interval. Simple, clean, line-forward. π«Ά
painterβ Painter.styleβ Curve style, seeQwtPolarCurve::CurveStyle.azimuthMapβ Maps azimuth values to values related to0.0,M_2PI.radialMapβ Maps radius values into painter coordinates.poleβ Position of the pole in painter coordinates.fromβ index of the first point to be painted.toβ index of the last point to be painted.
See also: draw(), drawLines().
Definition at line 341 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::drawLines (QPainter * painter, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, int from, int to) const [protected]
Draw lines. Thatβs the whole description, and honestly? It ate. π΄
painterβ Painter.azimuthMapβ Maps azimuth values to values related to0.0,M_2PI.radialMapβ Maps radius values into painter coordinates.poleβ Position of the pole in painter coordinates.fromβ index of the first point to be painted.toβ index of the last point to be painted.
See also: draw(), drawLines(), setCurveFitter().
Definition at line 367 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::drawSymbols (QPainter * painter, const QwtSymbol & symbol, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, int from, int to) const [protected], [virtual]
Draw symbols. The little point decorations get their moment. π«
painterβ Painter.symbolβ Curve symbol.azimuthMapβ Maps azimuth values to values related to0.0,M_2PI.radialMapβ Maps radius values into painter coordinates.poleβ Position of the pole in painter coordinates.fromβ index of the first point to be painted.toβ index of the last point to be painted.
See also: setSymbol(), draw(), drawCurve().
Definition at line 459 of file qwt_polar_curve.cpp.
π§ void QwtPolarCurve::init () [protected]
Initialize data members. Short, sweet, protected, and doing setup behind the scenes. π¬
Definition at line 100 of file qwt_polar_curve.cpp.
π QwtGraphic QwtPolarCurve::legendIcon (int index, const QSizeF & size) const [override], [virtual]
- Returns: Icon representing the curve on the legend.
indexβ Index of the legend entry (ignored as there is only one).sizeβ Icon size.
See also: QwtPolarItem::setLegendIconSize(), QwtPolarItem::legendData().
Reimplemented from QwtPolarItem.
Definition at line 513 of file qwt_polar_curve.cpp.
π
const QPen & QwtPolarCurve::pen () const
- Returns: Pen used to draw the lines.
See also: setPen().
Definition at line 212 of file qwt_polar_curve.cpp.
π₯ int QwtPolarCurve::rtti () const [override], [virtual]
- Returns:
QwtPolarCurve::Rtti_PolarCurve.
Reimplemented from QwtPolarItem.
Definition at line 113 of file qwt_polar_curve.cpp.
π¦ QwtPointPolar QwtPolarCurve::sample (int i) const [inline]
iβ index.- Returns: point at position
i.
Definition at line 153 of file qwt_polar_curve.h.
β¨ void QwtPolarCurve::setCurveFitter (QwtCurveFitter * curveFitter)
Insert a curve fitter.
curveFitterβ Curve fitter.
A curve fitter interpolates the curve points. F.e QwtPolarFitter adds equidistant points so that the connection gets rounded instead of having straight lines. If curveFitter is NULL fitting is disabled.
See also: curveFitter().
Definition at line 246 of file qwt_polar_curve.cpp.
πΈ void QwtPolarCurve::setData (QwtSeriesData< QwtPointPolar > * data)
Initialize data with a pointer to QwtSeriesData<QwtPointPolar>.
The x-values of the data object represent the azimuth, the y-value represents the radius. Thatβs the mapping, bestie β azimuth on x, radius on y. π§
dataβ Data.
Definition at line 225 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::setLegendAttribute (LegendAttribute attribute, bool on = true)
Specify an attribute how to draw the legend identifier.
attributeβ Attribute.onβ On/Off /saLegendAttribute,testLegendAttribute().
Definition at line 125 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::setPen (const QPen & pen)
Assign a pen.
penβ New pen.
See also: pen().
Definition at line 199 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::setStyle (CurveStyle style)
Set the curveβs drawing style.
styleβ Curve style.
See also: CurveStyle, style().
Definition at line 152 of file qwt_polar_curve.cpp.
π void QwtPolarCurve::setSymbol (QwtSymbol * symbol)
Assign a symbol.
symbolβ Symbol.
See also: symbol().
Definition at line 175 of file qwt_polar_curve.cpp.
π QwtPolarCurve::CurveStyle QwtPolarCurve::style () const
- Returns: Current style.
See also: CurveStyle, setStyle().
Definition at line 165 of file qwt_polar_curve.cpp.
π§ const QwtSymbol * QwtPolarCurve::symbol () const
- Returns: The current symbol.
See also: setSymbol().
Definition at line 189 of file qwt_polar_curve.cpp.
π bool QwtPolarCurve::testLegendAttribute (LegendAttribute attribute) const
Test if a legend attribute is enabled.
attributeβ Legend attribute.- Returns: True if attribute is enabled.
See also: LegendAttribute, setLegendAttribute().
Definition at line 141 of file qwt_polar_curve.cpp.
π AUTHOR π
Generated automatically by Doxygen for Qwt Userβs Guide from the source code.
And thatβs the whole member-function roster, bestie β no skips, no cap. π«Ά Signed off from the Qwt Userβs Guide, page QwtPolarCurve(3), plus the footer date doing its little cameo. Source/version + date footer shoutout, and byeee! π¦π
π¦ where this page comes from
- alpine 3.24: qwt-doc 6.3.0-r0 Β· custom
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms