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 a QwtInterval.
  • 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 a QString title.
  • QwtPlotItem (const QwtText &title) β€” constructor with a QwtText title.
  • virtual ~QwtPlotItem () β€” Destroy the QwtPlotItem.
  • void attach (QwtPlot *plot) β€” Attach the item to a plot.
  • void detach () β€” This method detaches a QwtPlotItem from any QwtPlot it 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 but QwtText.
  • 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: false
  • QwtPlotItem::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