QwtPlotZoneItem(3)
π QwtPlotZoneItem(3) π
okay so bestie, welcome to the Library Functions Manual entry for QwtPlotZoneItem β yes, the manual name is folded right in here because we are doing this cute style. π
πΈ NAME πΈ
QwtPlotZoneItem β A plot item, which displays a zone. literally the whole name section, slay.
β¨ SYNOPSIS β¨
#include <qwt_plot_zoneitem.h>
Inherits QwtPlotItem.
π Public Member Functions π
QwtPlotZoneItem ()β Constructor. fresh zone item energy.virtual ~QwtPlotZoneItem ()β Destructor. bye bestie.virtual int rtti () const overrideβ runtime type info override, iykyk.void setOrientation (Qt::Orientation)β Set the orientation of the zone.Qt::Orientation orientation () constβ gets the orientation, more tea below.void setInterval (double min, double max)β sets the zone interval, details in the member docs.void setInterval (const QwtInterval &)β same interval-setter energy but with aQwtInterval.QwtInterval interval () constβ returns the zone interval.void setPen (const QColor &, qreal width=0.0, Qt::PenStyle=Qt::SolidLine)β builds and assigns a pen, iconic.void setPen (const QPen &)β Assign a pen.const QPen & pen () constβ returns the pen, periodt.void setBrush (const QBrush &)β Assign a brush.const QBrush & brush () constβ returns the brush, we love.virtual void draw (QPainter *, const QwtScaleMap &, const QwtScaleMap &, const QRectF &canvasRect) const overrideβ draws the zone, main character behavior.virtual QRectF boundingRect () const overrideβ bounding rectangle override, yes.
π Public Member Functions inherited from QwtPlotItem π
QwtPlotItem ()β default constructor vibes.QwtPlotItem (const QString &title)β constructor with aQStringtitle.QwtPlotItem (const QwtText &title)β constructor with aQwtTexttitle.virtual ~QwtPlotItem ()β Destroy theQwtPlotItem.void attach (QwtPlot *plot)β Attach the item to a plot.void detach ()β This method detaches aQwtPlotItemfrom anyQwtPlotit has been associated with.QwtPlot * plot () constβ Return attached plot.void setTitle (const QString &title)β title setter, go off.void setTitle (const QwtText &title)β title setter butQwtText.const QwtText & title () constβ title getter.void setItemAttribute (ItemAttribute, bool on=true)β sets an item attribute.bool testItemAttribute (ItemAttribute) constβ tests an item attribute.void setItemInterest (ItemInterest, bool on=true)β sets an item interest.bool testItemInterest (ItemInterest) constβ tests an item interest.void setRenderHint (RenderHint, bool on=true)β sets a render hint.bool testRenderHint (RenderHint) constβ tests a render hint.void setRenderThreadCount (uint numThreads)β sets render thread count.uint renderThreadCount () constβ gets render thread count.void setLegendIconSize (const QSize &)β sets legend icon size.QSize legendIconSize () constβ gets legend icon size.double z () constβ returns z.void setZ (double z)β Set the z value.void show ()β Show the item.void hide ()β Hide the item.virtual void setVisible (bool)β visibility setter, slay.bool isVisible () constβ is it visible? find out.void setAxes (QwtAxisId xAxis, QwtAxisId yAxis)β sets both axes.void setXAxis (QwtAxisId)β sets the x axis.QwtAxisId xAxis () constβ Return xAxis.void setYAxis (QwtAxisId)β sets the y axis.QwtAxisId yAxis () constβ Return yAxis.virtual void itemChanged ()β virtual hook, iykyk.virtual void legendChanged ()β legend changed hook, periodt.virtual void getCanvasMarginHint (const QwtScaleMap &xMap, const QwtScaleMap &yMap, const QRectF &canvasRect, double &left, double &top, double &right, double &bottom) constβ Calculate a hint for the canvas margin.virtual void updateScaleDiv (const QwtScaleDiv &, const QwtScaleDiv &)β Update the item to changes of the axes scale division.virtual void updateLegend (const QwtPlotItem *, const QList< QwtLegendData > &)β Update the item to changes of the legend info.QRectF scaleRect (const QwtScaleMap &, const QwtScaleMap &) constβ Calculate the bounding scale rectangle of 2 maps.QRectF paintRect (const QwtScaleMap &, const QwtScaleMap &) constβ Calculate the bounding paint rectangle of 2 maps.virtual QList< QwtLegendData > legendData () constβ Return all information, that is needed to represent the item on the legend.virtual QwtGraphic legendIcon (int index, const QSizeF &) constβ legend icon getter, cute.
π¦ Additional Inherited Members π¦
π Public Types inherited from QwtPlotItem π
enum RttiValues { Rtti_PlotItem = 0, Rtti_PlotGrid, Rtti_PlotScale, Rtti_PlotLegend, Rtti_PlotMarker, Rtti_PlotCurve, Rtti_PlotSpectroCurve, Rtti_PlotIntervalCurve, Rtti_PlotHistogram, Rtti_PlotSpectrogram, Rtti_PlotGraphic, Rtti_PlotTradingCurve, Rtti_PlotBarChart, Rtti_PlotMultiBarChart, Rtti_PlotShape, Rtti_PlotTextLabel, Rtti_PlotZone, Rtti_PlotVectorField, Rtti_PlotUserItem = 1000 }β Runtime type information.enum ItemAttribute { Legend = 0x01, AutoScale = 0x02, Margins = 0x04 }β Plot Item Attributes.enum ItemInterest { ScaleInterest = 0x01, LegendInterest = 0x02 }β Plot Item Interests.enum RenderHint { RenderAntialiased = 0x1 }β Render hints.typedef QFlags< ItemAttribute > ItemAttributesβ flags, iconic.typedef QFlags< ItemInterest > ItemInterestsβ more flags.typedef QFlags< RenderHint > RenderHintsβ render hint flags.
π§ Protected Member Functions inherited from QwtPlotItem π§
QwtGraphic defaultIcon (const QBrush &, const QSizeF &) constβ Return a default icon from a brush.
π₯ Detailed Description π₯
A plot item, which displays a zone.
A horizontal zone highlights an interval of the y axis β a vertical zone an interval of the x axis β and is unbounded in the opposite direction. It is filled with a brush and its border lines are optionally displayed with a pen.
Note: For displaying an area that is bounded for x and y coordinates use QwtPlotShapeItem.
Definition at line 33 of file qwt_plot_zoneitem.h.
π Constructor & Destructor Documentation π
πΈ QwtPlotZoneItem::QwtPlotZoneItem () [explicit] πΈ
Constructor. Initializes the zone with no pen and a semi transparent gray brush.
Sets the following item attributes:
QwtPlotItem::AutoScale: falseQwtPlotItem::Legend: false
The z value is initialized by 5.
See also: QwtPlotItem::setItemAttribute(), QwtPlotItem::setZ()
Definition at line 50 of file qwt_plot_zoneitem.cpp.
πΈ QwtPlotZoneItem::~QwtPlotZoneItem () [virtual] πΈ
Destructor.
Definition at line 62 of file qwt_plot_zoneitem.cpp.
π¦ Member Function Documentation π¦
π QRectF QwtPlotZoneItem::boundingRect () const [override], [virtual] π
The bounding rectangle is build from the interval in one direction and something invalid for the opposite direction.
Returns: An invalid rectangle with valid boundaries in one direction
Reimplemented from QwtPlotItem.
Definition at line 297 of file qwt_plot_zoneitem.cpp.
π const QBrush & QwtPlotZoneItem::brush () const π
Returns: Brush used to fill the zone
See also: setPen(), brush()
Definition at line 138 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::draw (QPainter * painter, const QwtScaleMap & xMap, const QwtScaleMap & yMap, const QRectF & canvasRect) const [override], [virtual] π
Draw the zone
Parameters:
- painter β Painter
- xMap β x Scale Map
- yMap β y Scale Map
- canvasRect β Contents rectangle of the canvas in painter coordinates
Implements QwtPlotItem.
Definition at line 223 of file qwt_plot_zoneitem.cpp.
π QwtInterval QwtPlotZoneItem::interval () const π
Returns: Zone interval
See also: setInterval(), orientation()
Definition at line 209 of file qwt_plot_zoneitem.cpp.
π Qt::Orientation QwtPlotZoneItem::orientation () const π
Returns: Orientation of the zone
See also: setOrientation()
Definition at line 165 of file qwt_plot_zoneitem.cpp.
π const QPen & QwtPlotZoneItem::pen () const π
Returns: Pen used to draw the border lines
See also: setPen(), brush()
Definition at line 112 of file qwt_plot_zoneitem.cpp.
π int QwtPlotZoneItem::rtti () const [override], [virtual] π
Returns: QwtPlotItem::Rtti_PlotZone
Reimplemented from QwtPlotItem.
Definition at line 68 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::setBrush (const QBrush & brush) π
Assign a brush. The brush is used to fill the zone
Parameters:
- brush β Brush
See also: pen(), setBrush()
Definition at line 125 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::setInterval (const QwtInterval & interval) π
Set the interval of the zone
For a horizontal zone the interval is related to the y axis, for a vertical zone it is related to the x axis.
Parameters:
- interval β Zone interval
See also: interval(), setOrientation()
Definition at line 196 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::setInterval (double min, double max) π
Set the interval of the zone
For a horizontal zone the interval is related to the y axis, for a vertical zone it is related to the x axis.
Parameters:
- min β Minimum of the interval
- max β Maximum of the interval
See also: interval(), setOrientation()
Definition at line 181 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::setOrientation (Qt::Orientation orientation) π
Set the orientation of the zone. A horizontal zone highlights an interval of the y axis, a vertical zone of the x axis. It is unbounded in the opposite direction.
See also: orientation(), QwtPlotItem::setAxes()
Definition at line 152 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::setPen (const QColor & color, qreal width = 0.0, Qt::PenStyle style = Qt::SolidLine) π
Build and assign a pen
In Qt5 the default pen width is 1.0 ( 0.0 in Qt4 ) what makes it non cosmetic ( see QPen::isCosmetic() ). This method has been introduced to hide this incompatibility.
Parameters:
- color β Pen color
- width β Pen width
- style β Pen style
See also: pen(), brush()
Definition at line 86 of file qwt_plot_zoneitem.cpp.
π void QwtPlotZoneItem::setPen (const QPen & pen) π
Assign a pen. The pen is used to draw the border lines of the zone
Parameters:
- pen β Pen
See also: pen(), setBrush()
Definition at line 99 of file qwt_plot_zoneitem.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code.
and that's the tea, bestie ββ¨ this whole page is from the Qwt User's Guide, and yes it's QwtPlotZoneItem(3) β generated automatically by Doxygen from the source code, no cap. mwah ππ
π¦ 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