QwtPolarCurve(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

πŸ’– 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 > ItemAttributes
  • typedef QFlags< RenderHint > RenderHints

πŸ‘‘ Public Member Functions πŸ‘‘

  • QwtPolarCurve () β€” Constructor.
  • QwtPolarCurve (const QwtText &title)
  • QwtPolarCurve (const QString &title)
  • virtual ~QwtPolarCurve () β€” Destructor.
  • virtual int rtti () const override
  • void 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 () const
  • size_t dataSize () const
  • QwtPointPolar sample (int i) const
  • void setPen (const QPen &) β€” assign a pen.
  • const QPen & pen () const
  • void setStyle (CurveStyle style)
  • CurveStyle style () const
  • void setSymbol (QwtSymbol *) β€” assign a symbol.
  • const QwtSymbol * symbol () const
  • void setCurveFitter (QwtCurveFitter *) β€” insert a curve fitter.
  • QwtCurveFitter * curveFitter () const
  • virtual void draw (QPainter *p, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const override
  • virtual 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 override
  • virtual QwtGraphic legendIcon (int index, const QSizeF &) const override

πŸ¦‹ Public Member Functions inherited from QwtPolarItem πŸ¦‹

  • QwtPolarItem (const QwtText &title=QwtText())
  • virtual ~QwtPolarItem () β€” destroy the QwtPolarItem.
  • void attach (QwtPolarPlot *plot) β€” attach the item to a plot.
  • void detach () β€” this method detaches a QwtPolarItem from the QwtPolarPlot it has been associated with.
  • QwtPolarPlot * plot () const
  • void setTitle (const QString &title)
  • void setTitle (const QwtText &title)
  • const QwtText & title () const
  • void setItemAttribute (ItemAttribute, bool on=true)
  • bool testItemAttribute (ItemAttribute) const
  • void setRenderHint (RenderHint, bool on=true)
  • bool testRenderHint (RenderHint) const
  • void setRenderThreadCount (uint numThreads)
  • uint renderThreadCount () const
  • double z () const
  • void setZ (double z) β€” set the z value.
  • void show () β€” show the item.
  • void hide () β€” hide the item.
  • virtual void setVisible (bool)
  • bool isVisible () const
  • virtual 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 () const
  • void setLegendIconSize (const QSize &)
  • QSize legendIconSize () const
  • virtual 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) const
  • virtual void drawSymbols (QPainter *, const QwtSymbol &, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, int from, int to) const
  • void 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 using setCurveFitter(). πŸ“ˆ
  • 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 the curveStyle() is not NoCurve a line is painted with the curvePen(). ✨
  • 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 to 0.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 to 0.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. If to < 0 the 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, see QwtPolarCurve::CurveStyle.
  • azimuthMap β€” Maps azimuth values to values related to 0.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 to 0.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 to 0.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 /sa LegendAttribute, 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