QwtPolarPlot(3)
π QwtPolarPlot(3) β Library Functions Manual β¨
ok so bestie, we're in the QwtPolarPlot(3) page today β that's the Library Functions Manual energy, and yes this widget is a whole main character. grab a strawberry drink π and let's go.
πΈ NAME πΈ
QwtPolarPlot β a plotting widget that displays a polar coordinate system. that's it. that's the vibe. π―
β¨ SYNOPSIS β¨
#include <qwt_polar_plot.h>
it Inherits QFrame, and QwtPolarItemDict. two parents, no cap, it's giving blended family π
π Public Types π
enum LegendPositionβ{ LeftLegend, RightLegend, BottomLegend, TopLegend, ExternalLegend }(yes queen, all five, we get to them below)
π«Ά Public Slots π«Ά
virtual void replot ()β Redraw the plot. the glow-up, on demand π₯void autoRefresh ()β Replots the plot ifQwtPlot::autoReplot()is true.void setAzimuthOrigin (double)β Change the origin of the azimuth scale.
π Signals π
void itemAttached (QwtPolarItem *plotItem, bool on)void legendDataChanged (const QVariant &itemInfo, const QList<QwtLegendData> &data)void layoutChanged ()
π Public Member Functions π
QwtPolarPlot (QWidget *parent=NULL)QwtPolarPlot (const QwtText &title, QWidget *parent=NULL)virtual ~QwtPolarPlot ()β Destructor. say bye bestie πvoid setTitle (const QString &)void setTitle (const QwtText &)QwtText title () constQwtTextLabel * titleLabel ()const QwtTextLabel * titleLabel () constvoid setAutoReplot (bool tf=true)β Set or reset the autoReplot option.bool autoReplot () constvoid setAutoScale (int scaleId)β Enable autoscaling.bool hasAutoScale (int scaleId) constvoid setScaleMaxMinor (int scaleId, int maxMinor)int scaleMaxMinor (int scaleId) constint scaleMaxMajor (int scaleId) constvoid setScaleMaxMajor (int scaleId, int maxMajor)QwtScaleEngine * scaleEngine (int scaleId)const QwtScaleEngine * scaleEngine (int scaleId) constvoid setScaleEngine (int scaleId, QwtScaleEngine *)void setScale (int scaleId, double min, double max, double step=0)β Disable autoscaling and specify a fixed scale for a selected scale.void setScaleDiv (int scaleId, const QwtScaleDiv &)β Disable autoscaling and specify a fixed scale for a selected scale.const QwtScaleDiv * scaleDiv (int scaleId) constβ Return the scale division of a specified scale.QwtScaleDiv * scaleDiv (int scaleId)β Return the scale division of a specified scale.QwtScaleMap scaleMap (int scaleId, double radius) constQwtScaleMap scaleMap (int scaleId) constvoid updateScale (int scaleId)double azimuthOrigin () constvoid zoom (const QwtPointPolar &, double factor)β Translate and in/decrease the zoom factor.void unzoom ()QwtPointPolar zoomPos () constdouble zoomFactor () constQwtPolarCanvas * canvas ()const QwtPolarCanvas * canvas () constvoid setPlotBackground (const QBrush &c)β Set the background of the plot area.const QBrush & plotBackground () constvirtual void drawCanvas (QPainter *, const QRectF &) constvoid insertLegend (QwtAbstractLegend *, LegendPosition=RightLegend, double ratio=-1.0)β Insert a legend.QwtAbstractLegend * legend ()const QwtAbstractLegend * legend () constvoid updateLegend ()void updateLegend (const QwtPolarItem *)QwtPolarLayout * plotLayout ()const QwtPolarLayout * plotLayout () constQwtInterval visibleInterval () constQRectF plotRect () constQRectF plotRect (const QRectF &) constβ Calculate the bounding rect of the plot area.int plotMarginHint () constvirtual QVariant itemToInfo (QwtPolarItem *) constβ Build an information, that can be used to identify a plot item on the legend.virtual QwtPolarItem * infoToItem (const QVariant &) constβ Identify the plot item according to an item info object, that has bee generated fromitemToInfo().
π¦ Public Member Functions inherited from QwtPolarItemDict π¦
QwtPolarItemDict ()~QwtPolarItemDict ()void setAutoDelete (bool)bool autoDelete () constconst QwtPolarItemList & itemList () constβ AQwtPolarItemListof all attached plot items.void detachItems (int rtti=QwtPolarItem::Rtti_PolarItem, bool autoDelete=true)
π Protected Member Functions π
virtual bool event (QEvent *) overrideβ Qt event handler.virtual void resizeEvent (QResizeEvent *) overrideβ Resize and update internal layout.virtual void updateLayout ()β Rebuild the layout.virtual void drawItems (QPainter *painter, const QwtScaleMap &radialMap, const QwtScaleMap &azimuthMap, const QPointF &pole, double radius, const QRectF &canvasRect) const
π§ Protected Member Functions inherited from QwtPolarItemDict π§
void insertItem (QwtPolarItem *)void removeItem (QwtPolarItem *)
π Detailed Description π
A plotting widget, displaying a polar coordinate system. literally the whole point, iykyk π
An unlimited number of plot items can be displayed on its canvas. π₯ Plot items might be curves (QwtPolarCurve), markers (QwtPolarMarker), the grid (QwtPolarGrid), or anything else derived from QwtPolarItem. go off, custom subclasses, we love you.
The coordinate system is defined by a radial and a azimuth scale. The scales at the axes can be explicitly set (QwtScaleDiv), or are calculated from the plot items, using algorithms (QwtScaleEngine) which can be configured separately for each axis. Autoscaling is supported for the radial scale. π―
In opposite to QwtPlot the scales might be different from the view, that is displayed on the canvas. The view can be changed by zooming β f.e. by using QwtPolarPanner or QwtPolarMaginfier. π yes the scales and the view are two different girls and they do not have to match.
π Definition at line 46 of file qwt_polar_plot.h.
π Member Enumeration Documentation π
β¨ enum QwtPolarPlot::LegendPosition β¨
Position of the legend, relative to the canvas. that's the entire job description π«‘
See also: insertLegend()
Enumerator (all five, bestie, no skipping):
LeftLegendβ The legend will be left from the canvas. π₯RightLegendβ The legend will be right from the canvas. πBottomLegendβ The legend will be below the canvas. πTopLegendβ The legend will be between canvas and title. sandwiched, iconic π₯ͺExternalLegendβ External means that only the content of the legend will be handled byQwtPlot, but not its geometry. This might be interesting if an application wants to have a legend in an external window ( or on the canvas ). πͺ
π Note: The legend is not painted by QwtPolarRenderer. screaming, crying, throwing up β keep that in mind.
π Definition at line 59 of file qwt_polar_plot.h.
πΈ Constructor & Destructor Documentation πΈ
π QwtPolarPlot::QwtPolarPlot (QWidget * parent = NULL) [explicit]
Constructor. baby's first polar plot π
Parameters
- parent β Parent widget
π Definition at line 88 of file qwt_polar_plot.cpp.
π QwtPolarPlot::QwtPolarPlot (const QwtText & title, QWidget * parent = NULL)
Constructor. the version that lets you name it πΌβ¨
Parameters
- title β Title text
- parent β Parent widget
π Definition at line 99 of file qwt_polar_plot.cpp.
π QwtPolarPlot::~QwtPolarPlot () [virtual]
Destructor. it's over bestie, go home ππ«Ά
π Definition at line 106 of file qwt_polar_plot.cpp.
β Member Function Documentation β
π¦ void QwtPolarPlot::autoRefresh () [slot]
Replots the plot if QwtPlot::autoReplot() is true. lowkey just a vibe check on the autoReplot flag.
π Definition at line 847 of file qwt_polar_plot.cpp.
π¦ bool QwtPolarPlot::autoReplot () const
Returns
trueif the autoReplot option is set.
π Definition at line 348 of file qwt_polar_plot.cpp.
π¦ double QwtPolarPlot::azimuthOrigin () const
The azimuth origin is the angle where the azimuth scale shows the value 0.0. it's the "you are here" of the circle π§
Returns
- Origin of the azimuth scale
See also: setAzimuthOrigin()
π Definition at line 632 of file qwt_polar_plot.cpp.
π¦ QwtPolarCanvas * QwtPolarPlot::canvas ()
Returns
- the plot's canvas
π Definition at line 914 of file qwt_polar_plot.cpp.
π¦ const QwtPolarCanvas * QwtPolarPlot::canvas () const
Returns
- the plot's canvas
π Definition at line 920 of file qwt_polar_plot.cpp.
π¦ void QwtPolarPlot::drawCanvas (QPainter * painter, const QRectF & canvasRect) const [virtual]
Redraw the canvas. the actual painting moment β¨ποΈ
Parameters
- painter β Painter used for drawing
- canvasRect β Contents rect of the canvas
π Definition at line 930 of file qwt_polar_plot.cpp.
π¦ void QwtPolarPlot::drawItems (QPainter * painter, const QwtScaleMap & azimuthMap, const QwtScaleMap & radialMap, const QPointF & pole, double radius, const QRectF & canvasRect) const [protected], [virtual]
Redraw the canvas items. all the little guys get their moment π«
Parameters
- painter β Painter used for drawing
- 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
π Definition at line 975 of file qwt_polar_plot.cpp.
π¦ bool QwtPolarPlot::event (QEvent * e) [override], [protected], [virtual]
Qt event handler. Handles QEvent::LayoutRequest and QEvent::PolishRequest. it's the bouncer at the club, checking IDs πͺͺ
Parameters
- e β Qt Event
Returns
True, when the event was processed
π Definition at line 762 of file qwt_polar_plot.cpp.
π¦ bool QwtPolarPlot::hasAutoScale (int scaleId) const
Returns
trueif autoscaling is enabled
Parameters
- scaleId β Scale index
See also: setAutoScale()
π Definition at line 386 of file qwt_polar_plot.cpp.
π¦ QwtPolarItem * QwtPolarPlot::infoToItem (const QVariant & itemInfo) const [virtual]
Identify the plot item according to an item info object, that has bee generated from itemToInfo(). (bee π β that's the typo, we're keeping it, it's canon now.) The default implementation simply tries to unwrap a QwtPlotItem pointer:
if ( itemInfo.canConvert<QwtPlotItem *>() )
return qvariant_cast<QwtPlotItem *>( itemInfo );
Parameters
- itemInfo β Plot item
Returns
- A plot item, when successful, otherwise a
NULLpointer.
See also: itemToInfo()
π Definition at line 1357 of file qwt_polar_plot.cpp.
π¦ void QwtPolarPlot::insertLegend (QwtAbstractLegend * legend, QwtPolarPlot::LegendPosition pos = RightLegend, double ratio = -1.0)
Insert a legend. π·οΈ If the position legend is QwtPolarPlot::LeftLegend or QwtPolarPlot::RightLegend the legend will be organized in one column from top to down. Otherwise the legend items will be placed in a table with a best fit number of columns from left to right. slay, layout queen π
If pos != QwtPolarPlot::ExternalLegend the plot widget will become parent of the legend. It will be deleted when the plot is deleted, or another legend is set with insertLegend(). β οΈ so like, don't get attached, ownership is real here.
Parameters
- legend β Legend
- pos β The legend's position. For top/left position the number of columns will be limited to
1, otherwise it will be set to unlimited. - ratio β Ratio between legend and the bounding rect of title, canvas and axes. The legend will be shrunk if it would need more space than the given ratio. The ratio is limited to
]0.0 .. 1.0]. In case of<= 0.0it will be reset to the default ratio. The default vertical/horizontal ratio is0.33/0.5.
See also: legend(), QwtPolarLayout::legendPosition(), QwtPolarLayout::setLegendPosition()
π Definition at line 191 of file qwt_polar_plot.cpp.
ok that's where part 1 wraps β but we're not done, bestie, more parts follow so don't close the tab π«Άπ
void QwtPolarPlot::itemAttached (QwtPolarItem * plotItem, bool on) [signal]
Itβs a signal that says an item just got attached or detached. Group-chat announcement energy β¨
Parameters:
plotItemβ Plot itemonβ Attached/Detached
QVariant QwtPolarPlot::itemToInfo (QwtPolarItem * plotItem) const [virtual]
Builds an info blob that can be used to identify a plot item on the legend. The default implementation simply wraps the plot item into a QVariant object. When you overload itemToInfo(), usually infoToItem() needs to be reimplemented too β theyβre a matching set, bestie π«Ά
QVariant itemInfo;
qVariantSetValue( itemInfo, plotItem );
Parameters:
plotItemβ Plot item
See also: infoToItem()
Definition at line 1337 of file qwt_polar_plot.cpp.
void QwtPolarPlot::layoutChanged () [signal]
A signal that gets emitted whenever the layout of the plot has been recalculated. Basically the plotβs βbestie, I changed my fitβ moment π
QwtAbstractLegend * QwtPolarPlot::legend ()
Returns the plotβs legend. The non-const one, so you can poke at it π₯
See also: insertLegend()
Definition at line 286 of file qwt_polar_plot.cpp.
const QwtAbstractLegend * QwtPolarPlot::legend () const
Returns the plotβs legend. The const twin β same legend, read-only vibe β¨
See also: insertLegend()
Definition at line 295 of file qwt_polar_plot.cpp.
void QwtPolarPlot::legendDataChanged (const QVariant & itemInfo, const QList< QwtLegendData > & data) [signal]
A signal with the attributes for how to update the legend entries for a plot item. Itβs giving βlegend glow-up incomingβ π
Parameters:
itemInfoβ Info about a plot, build fromitemToInfo()dataβ Attributes of the entries ( usually <= 1 ) for the plot item.
See also: itemToInfo(), infoToItem(), QwtAbstractLegend::updateLegend()
const QBrush & QwtPolarPlot::plotBackground () const
Returns the plot background brush. The circleβs whole aesthetic, lowkey π¦
See also: plotBackground(), plotArea()
Definition at line 322 of file qwt_polar_plot.cpp.
QwtPolarLayout * QwtPolarPlot::plotLayout ()
Returns the layout responsible for the geometry of the plot components. The main-character layout object π
Definition at line 1274 of file qwt_polar_plot.cpp.
const QwtPolarLayout * QwtPolarPlot::plotLayout () const
Returns the layout responsible for the geometry of the plot components. Same layout, const-coded π
Definition at line 1282 of file qwt_polar_plot.cpp.
int QwtPolarPlot::plotMarginHint () const
Returns the maximum of all item margin hints. Itβs the plotβs personal-space check πΈ
See also: QwtPolarItem::marginHint()
Definition at line 1095 of file qwt_polar_plot.cpp.
QRectF QwtPolarPlot::plotRect () const
The plot area depends on the size of the canvas and the zoom parameters.
Returns: Bounding rect of the plot area
Definition at line 1120 of file qwt_polar_plot.cpp.
QRectF QwtPolarPlot::plotRect (const QRectF & canvasRect) const
Calculates the bounding rect of the plot area. The plot area depends on the zoom parameters.
Parameters:
canvasRectβ Rectangle of the canvas
Returns: Rectangle for displaying 100% of the plot
Definition at line 1133 of file qwt_polar_plot.cpp.
void QwtPolarPlot::replot () [virtual], [slot]
Redraws the plot. If the autoReplot option is not set (which is the default), or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible. No cap, sometimes youβve gotta ask for the redraw yourself π
See also: setAutoReplot()
β οΈ Warning: Calls canvas()->repaint, take care of infinite recursions β do not let this turn into a plot-repaint ouroboros π
Definition at line 899 of file qwt_polar_plot.cpp.
void QwtPolarPlot::resizeEvent (QResizeEvent * e) [override], [protected], [virtual]
Resize and update internal layout. The plotβs little βnew size, who disβ routine π
Definition at line 784 of file qwt_polar_plot.cpp.
QwtScaleDiv * QwtPolarPlot::scaleDiv (int scaleId)
Returns the scale division of a specified scale. scaleDiv(scaleId)->lBound() and scaleDiv(scaleId)->hBound() are the current limits of the scale. Itβs the scaleβs receipt, basically π§Ύβ¨
Parameters:
scaleIdβ Scale index
Returns: Scale division
See also: QwtScaleDiv, setScaleDiv(), setScale()
Definition at line 598 of file qwt_polar_plot.cpp.
const QwtScaleDiv * QwtPolarPlot::scaleDiv (int scaleId) const
Returns the scale division of a specified scale. scaleDiv(scaleId)->lBound() and scaleDiv(scaleId)->hBound() are the current limits of the scale. Const version, same tea π
Parameters:
scaleIdβ Scale index
Returns: Scale division
See also: QwtScaleDiv, setScaleDiv(), setScale()
Definition at line 579 of file qwt_polar_plot.cpp.
QwtScaleEngine * QwtPolarPlot::scaleEngine (int scaleId)
Returns the scale engine for a specific scale. The little machine behind the scale math π₯
Parameters:
scaleIdβ Scale index
See also: setScaleEngine()
Definition at line 499 of file qwt_polar_plot.cpp.
const QwtScaleEngine * QwtPolarPlot::scaleEngine (int scaleId) const
Returns the scale engine for a specific scale. Const-coded, same engine energy π
Parameters:
scaleIdβ Scale index
See also: setScaleEngine()
Definition at line 513 of file qwt_polar_plot.cpp.
QwtScaleMap QwtPolarPlot::scaleMap (int scaleId) const
Builds a scale map. The azimuth map translates between the scale values and angles from [0.0, 2 * PI[. The radial map translates scale values into the distance from the pole. The radial map is calculated from the current geometry of the canvas. Itβs literally the plotβs coordinate translator π¦
Parameters:
scaleIdβ Scale index
Returns: Map for the scale on the canvas. With this map pixel coordinates can translated to plot coordinates and vice versa.
See also: QwtScaleMap, transform(), invTransform()
Definition at line 710 of file qwt_polar_plot.cpp.
QwtScaleMap QwtPolarPlot::scaleMap (int scaleId, double radius) const
Builds a scale map. The azimuth map translates between the scale values and angles from [0.0, 2 * PI[. The radial map translates scale values into the distance from the pole.
Parameters:
scaleIdβ Scale indexradiusβ Radius of the plot are in pixels
Returns: Map for the scale on the canvas. With this map pixel coordinates can translated to plot coordinates and vice versa.
See also: QwtScaleMap, transform(), invTransform()
Definition at line 730 of file qwt_polar_plot.cpp.
int QwtPolarPlot::scaleMaxMajor (int scaleId) const
Returns the maximum number of major ticks for a specified axis. Major ticks said βcap the dramaβ π
Parameters:
scaleIdβ Scale index
See also: setScaleMaxMajor()
Definition at line 460 of file qwt_polar_plot.cpp.
int QwtPolarPlot::scaleMaxMinor (int scaleId) const
Returns the maximum number of minor ticks for a specified axis. The tiny tick energy, still iconic π
Parameters:
scaleIdβ Scale index
See also: setScaleMaxMinor()
Definition at line 423 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setAutoReplot (bool enable = true)
Set or reset the autoReplot option. If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions. Since this may be time-consuming, it is recommended to leave this option switched off and call replot() explicitly if necessary.
The autoReplot option is set to false by default, which means that the user has to call replot() in order to make changes visible.
Parameters:
enableβ true or false. Defaults to true.
See also: replot()
Definition at line 342 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setAutoScale (int scaleId)
Enable autoscaling. This member function is used to switch back to autoscaling mode after a fixed scale has been set. Autoscaling calculates a useful scale division from the bounding interval of all plot items with the QwtPolarItem::AutoScale attribute.
Autoscaling is only supported for the radial scale and enabled as default. Important caveat, bestie β donβt try to make the azimuth do this π
Parameters:
scaleIdβ Scale index
See also: hasAutoScale(), setScale(), setScaleDiv(), QwtPolarItem::boundingInterval()
Definition at line 368 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setAzimuthOrigin (double origin) [slot]
Change the origin of the azimuth scale. The azimuth origin is the angle where the azimuth scale shows the value 0.0. The default origin is 0.0. Rotate the vibe, not the facts πβ¨
Parameters:
originβ New origin
See also: azimuthOrigin()
Definition at line 615 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setPlotBackground (const QBrush & brush)
Set the background of the plot area. The plot area is the circle around the pole. It's radius is defined by the radial scale. Aesthetic upgrade for the circle π π
Parameters:
brushβ Background Brush
See also: plotBackground(), plotArea()
Definition at line 309 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setScale (int scaleId, double min, double max, double stepSize = 0)
Disable autoscaling and specify a fixed scale for a selected scale. Locked in, no autoscale drift πΈ
Parameters:
scaleIdβ Scale indexmin,maxβ minimum and maximum of the scalestepSizeβ Major step size. Ifstep == 0, the step size is calculated automatically using themaxMajorsetting.
See also: setScaleMaxMajor(), setAutoScale()
Definition at line 530 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setScaleDiv (int scaleId, const QwtScaleDiv & scaleDiv)
Disable autoscaling and specify a fixed scale for a selected scale. Youβre handing it the whole scale division, very βI brought the receiptsβ π§Ύβ¨
Parameters:
scaleIdβ Scale indexscaleDivβ Scale division
See also: setScale(), setAutoScale()
Definition at line 554 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setScaleEngine (int scaleId, QwtScaleEngine * scaleEngine)
Change the scale engine for an axis. Swap the math brain behind the scale π₯π§
Parameters:
scaleIdβ Scale indexscaleEngineβ Scale engine
See also: axisScaleEngine()
Definition at line 476 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setScaleMaxMajor (int scaleId, int maxMajor)
Set the maximum number of major scale intervals for a specified scale. Cap the major steps, bestie π
Parameters:
scaleIdβ Scale indexmaxMajorβ maximum number of major steps
See also: scaleMaxMajor()
Definition at line 438 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setScaleMaxMinor (int scaleId, int maxMinor)
Set the maximum number of major scale intervals for a specified scale. Yes, the page literally says βmajorβ here even though the parameter is maxMinor β keeping it exactly as written, no editing the lore π
Parameters:
scaleIdβ Scale indexmaxMinorβ maximum number of minor steps
See also: scaleMaxMajor()
Definition at line 401 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setTitle (const QString & title)
Change the plotβs title. Put some respect on the title text π
Parameters:
titleβ New title
Definition at line 118 of file qwt_polar_plot.cpp.
void QwtPolarPlot::setTitle (const QwtText & title)
Change the plotβs title. Same title glow-up, but with a QwtText this time β¨
Parameters:
titleβ New title
Definition at line 134 of file qwt_polar_plot.cpp.
QwtText QwtPolarPlot::title () const
Returns the plotβs title. The main-character text, front and center π
Definition at line 147 of file qwt_polar_plot.cpp.
QwtTextLabel * QwtPolarPlot::titleLabel ()
Returns the plotβs title. Yes, via the QwtTextLabel β the label is the moment π«Ά
Definition at line 153 of file qwt_polar_plot.cpp.
const QwtTextLabel * QwtPolarPlot::titleLabel () const
Returns the plot's title label, bestie β the actual QwtTextLabel that's serving title realness on the plot π
.
Under the hood: Definition at line 159 of file qwt_polar_plot.cpp.
void QwtPolarPlot::unzoom ()
Unzooms the plot. That's it, that's the whole snack. See zoom() for the matching zoom-in move.
See also: zoom()
Definition at line 668 of file qwt_polar_plot.cpp.
void QwtPolarPlot::updateLayout () [protected], [virtual]
This one rebuilds the layout β¨. It's tagged [protected] and [virtual] β so it's not your public bestie, it's for the class internals and subclasses, iykyk.
Definition at line 854 of file qwt_polar_plot.cpp.
void QwtPolarPlot::updateLegend ()
Emits legendDataChanged() for all plot item. Yes, every plot item gets the legend memo β lowkey a glow-up for the legend UI.
See also: QwtPlotItem::legendData(), legendDataChanged()
Definition at line 252 of file qwt_polar_plot.cpp.
void QwtPolarPlot::updateLegend (const QwtPolarItem * plotItem)
Emits legendDataChanged() for a single plot item β the one you pass in, specifically π.
Parameters:
plotItemβ plot item
See also: QwtPlotItem::legendData(), legendDataChanged()
Definition at line 268 of file qwt_polar_plot.cpp.
void QwtPolarPlot::updateScale (int scaleId)
Rebuilds the scale β¨.
Parameters:
scaleIdβ scale index
Definition at line 1040 of file qwt_polar_plot.cpp.
QwtInterval QwtPolarPlot::visibleInterval () const
Returns the bounding interval of the radial scale that is visible on the canvas β like a little window into the radial vibe π«.
Definition at line 1170 of file qwt_polar_plot.cpp.
void QwtPolarPlot::zoom (const QwtPointPolar & zoomPos, double zoomFactor)
Translates and in/decreases the zoom factor. In zoom mode, the zoom position sits in the center of the canvas. The radius of the circle depends on the size of the plot canvas, and that radius is divided by the zoom factor. So a factor < 1.0 zoom in β yes, smaller factor means zoomier zoom, no cap π₯.
Setting an invalid zoom position disables zooming. That's the off switch, bestie β don't sleep on it.
Parameters:
zoomPosβ center of the translationzoomFactorβ zoom factor
See also: unzoom(), zoomPos(), zoomFactor()
Definition at line 651 of file qwt_polar_plot.cpp.
double QwtPolarPlot::zoomFactor () const
Returns the zoom factor β the current zoominess level.
See also: zoom(), zoomPos()
Definition at line 691 of file qwt_polar_plot.cpp.
QwtPointPolar QwtPolarPlot::zoomPos () const
Returns the zoom position β where the zoom is centered, iconically.
See also: zoom(), zoomFactor()
Definition at line 682 of file qwt_polar_plot.cpp.
β¨ Author β¨
Generated automatically by Doxygen for Qwt User's Guide from the source code. So yes, the docs are giving autogenerated main-character energy π€π.
And that's the end of the page, bestie π«Ά. Source/version vibes: Qwt User's Guide; page: QwtPolarPlot(3); date: the footer didn't drop one in this snippet, so I'm not inventing it β it's auto-generated from source code, periodt. π
β¨
π¦ 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