QwtPolarMarker(3)
π QwtPolarMarker(3) π
Okay bestie, welcome to the Library Functions Manual glow-up for QwtPolarMarker(3) β every detail is here, nobody got left on read. β¨
πΈ NAME πΈ
QwtPolarMarker β a class for drawing markers. Periodt. π
β¨ SYNOPSIS β¨
#include <qwt_polar_marker.h>
Inherits QwtPolarItem.
π Public Member Functions π
QwtPolarMarker ()β sets alignment toQt::AlignCenter, and style toNoLine.virtual ~QwtPolarMarker ()β destructor.virtual int rtti () const overrideβ the signature is right there, bestie.void setPosition (const QwtPointPolar &)β changes the position of the marker.QwtPointPolar position () constvoid setSymbol (const QwtSymbol *s)β assigns a symbol.const QwtSymbol * symbol () constvoid setLabel (const QwtText &)β sets the label.QwtText label () constvoid setLabelAlignment (Qt::Alignment)β sets the alignment of the label.Qt::Alignment labelAlignment () constvirtual void draw (QPainter *painter, const QwtScaleMap &azimuthMap, const QwtScaleMap &radialMap, const QPointF &pole, double radius, const QRectF &canvasRect) const overridevirtual QwtInterval boundingInterval (int scaleId) const override
π Public Member Functions inherited from QwtPolarItem π
QwtPolarItem (const QwtText &title=QwtText())virtual ~QwtPolarItem ()β destroys theQwtPolarItem.void attach (QwtPolarPlot *plot)β attaches 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)β sets the z value.void show ()β shows the item.void hide ()β hides the item.virtual void setVisible (bool)bool isVisible () constvirtual void itemChanged ()virtual void legendChanged ()virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &, const QwtInterval &)β updates the item to changes of the axes scale division.virtual int marginHint () constvoid setLegendIconSize (const QSize &)QSize legendIconSize () constvirtual QList< QwtLegendData > legendData () constβ returns all information that is needed to represent the item on the legend.virtual QwtGraphic legendIcon (int index, const QSizeF &) const
π¦ Additional Inherited Members π¦
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
π Detailed Description π
A class for drawing markers. Groundbreaking, I know β but the lore is cute.
A marker can be a symbol, a label, or a combination of them, which can be drawn around a center point inside a bounding rectangle.
The setSymbol() member assigns a symbol to the marker. The symbol is drawn at the specified point.
With setLabel(), a label can be assigned to the marker. The setLabelAlignment() member specifies where the label is drawn. All the Align*-constants in Qt::AlignmentFlags (see Qt documentation) are valid. The alignment refers to the center point of the marker, which means, for example, that the label would be painted left above the center point if the alignment was set to AlignLeft|AlignTop.
Definition at line 36 of file qwt_polar_marker.h.
π Constructor & Destructor Documentation π
QwtPolarMarker::QwtPolarMarker () [explicit]
Sets alignment to Qt::AlignCenter, and style to NoLine.
Definition at line 42 of file qwt_polar_marker.cpp.
QwtPolarMarker::~QwtPolarMarker () [virtual]
Destructor.
Definition at line 52 of file qwt_polar_marker.cpp.
π₯ Member Function Documentation π₯
QwtInterval QwtPolarMarker::boundingInterval (int scaleId) const [override], [virtual]
Interval that is necessary to display the item. This interval can be useful for operations like clipping or autoscaling.
Parameters:
scaleIdβ scale index.
Returns: bounding interval ( == position )
See also: position()
Reimplemented from QwtPolarItem.
Definition at line 228 of file qwt_polar_marker.cpp.
void QwtPolarMarker::draw (QPainter * painter, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, double radius, const QRectF & canvasRect) const [override], [virtual]
Draws the marker.
Parameters:
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 89 of file qwt_polar_marker.cpp.
QwtText QwtPolarMarker::label () const
Returns: the label.
See also: setLabel()
Definition at line 185 of file qwt_polar_marker.cpp.
Qt::Alignment QwtPolarMarker::labelAlignment () const
Returns: the label alignment.
See also: setLabelAlignment()
Definition at line 214 of file qwt_polar_marker.cpp.
QwtPointPolar QwtPolarMarker::position () const
Returns: position of the marker.
Definition at line 64 of file qwt_polar_marker.cpp.
int QwtPolarMarker::rtti () const [override], [virtual]
Returns: QwtPolarItem::Rtti_PlotMarker
Reimplemented from QwtPolarItem.
Definition at line 58 of file qwt_polar_marker.cpp.
void QwtPolarMarker::setLabel (const QwtText & label)
Sets the label.
Parameters:
labelβ label text.
See also: label()
Definition at line 172 of file qwt_polar_marker.cpp.
void QwtPolarMarker::setLabelAlignment (Qt::Alignment align)
Sets the alignment of the label. The alignment determines where the label is drawn relative to the marker's position.
Parameters:
alignβ alignment. A combination ofAlignTop,AlignBottom,AlignLeft,AlignRight,AlignCenter,AlgnHCenter,AlignVCenter.
See also: labelAlignment()
Definition at line 201 of file qwt_polar_marker.cpp.
void QwtPolarMarker::setPosition (const QwtPointPolar & pos)
Changes the position of the marker.
Definition at line 70 of file qwt_polar_marker.cpp.
void QwtPolarMarker::setSymbol (const QwtSymbol * symbol)
Assigns a symbol.
Parameters:
symbolβ new symbol.
See also: symbol()
Definition at line 148 of file qwt_polar_marker.cpp.
const QwtSymbol * QwtPolarMarker::symbol () const
Returns: the symbol.
See also: setSymbol(), QwtSymbol
Definition at line 162 of file qwt_polar_marker.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
And thatβs the cute sign-off, bestie: this pageβs footer/source version vibes are Qwt Userβs Guide + QwtPolarMarker(3) β the original footer didnβt print a date line, so no fake timestamp energy here. π«Άπ
π¦ 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