QwtPlotDict(3)
π QwtPlotDict(3) π
okay so bestie, welcome to the Library Functions Manual β¨ this is the page for QwtPlotDict, and honestly? it's giving backstage-pass energy for your plot items π
πΈ NAME πΈ
QwtPlotDict β literally a dictionary for plot items. that's it, that's the vibe π
β¨ SYNOPSIS β¨
#include <qwt_plot_dict.h>
Inherited by QwtPlot. π
π«Ά Public Member Functions
QwtPlotDict()virtual ~QwtPlotDict()void setAutoDelete(bool)bool autoDelete() constconst QwtPlotItemList & itemList() constβ returns aQwtPlotItemListof all the attached plot items π¦QwtPlotItemList itemList(int rtti) constvoid detachItems(int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)
π Protected Member Functions
void insertItem(QwtPlotItem *)void removeItem(QwtPlotItem *)
π Detailed Description π
A dictionary for plot items. no cap, that's the whole thesis.
QwtPlotDict organizes plot items in increasing z-order. and if autoDelete() is enabled, all attached items get deleted in the destructor of the dictionary π (yes, they will literally be gone β that's the point, but bestie, know it going in).
QwtPlotDict can be used to get access to all QwtPlotItem items β or all items of a specific type β that are currently on the plot. so like, your main character energy for querying who's actually on stage π€
See also:QwtPlotItem::attach(),QwtPlotItem::detach(),QwtPlotItem::z()
Definition at line 32 of file qwt_plot_dict.h.
π Constructor & Destructor Documentation π
QwtPlotDict::QwtPlotDict() [explicit]
Constructor β¨
Auto deletion is enabled. (so the default is already unhinged-but-tidy, love that for us)
See also:setAutoDelete(),QwtPlotItem::attach()
Definition at line 69 of file qwt_plot_dict.cpp.
QwtPlotDict::~QwtPlotDict() [virtual]
Destructor π
If autoDelete() is on, all attached items will be deleted. periodt.
See also:setAutoDelete(),autoDelete(),QwtPlotItem::attach()
Definition at line 81 of file qwt_plot_dict.cpp.
π¦ Member Function Documentation π¦
bool QwtPlotDict::autoDelete() const
Returns: true if auto deletion is enabled β
See also:setAutoDelete(),insertItem()
Definition at line 104 of file qwt_plot_dict.cpp.
void QwtPlotDict::detachItems(int rtti = QwtPlotItem::Rtti_PlotItem, bool autoDelete = true)
Detach items from the dictionary π§
Parameters:
rttiβ in case ofQwtPlotItem::Rtti_PlotItemit detaches all items; otherwise only those items of the typerttiare detached.autoDeleteβ iftrue, delete all detached items π (yes, they're really gone β not just off the list)
Definition at line 138 of file qwt_plot_dict.cpp.
void QwtPlotDict::insertItem(QwtPlotItem * item) [protected]
Insert a plot item πΈ
Parameters:
itemβ PlotItem
See also: removeItem()
Definition at line 115 of file qwt_plot_dict.cpp.
const QwtPlotItemList & QwtPlotDict::itemList() const
A QwtPlotItemList of all attached plot items.
β οΈ Use caution when iterating these lists, as removing/detaching an item will invalidate the iterator. Instead you can place pointers to objects to be removed in a removal list, and traverse that list later. bestie this is the classic "don't delete while you loop" trap and it WILL bite you π
Returns: List of all attached plot items.
Definition at line 166 of file qwt_plot_dict.cpp.
QwtPlotItemList QwtPlotDict::itemList(int rtti) const
Returns: List of all attached plot items of a specific type π
Parameters:
rttiβ seeQwtPlotItem::RttiValues
See also: QwtPlotItem::rtti()
Definition at line 176 of file qwt_plot_dict.cpp.
void QwtPlotDict::removeItem(QwtPlotItem * item) [protected]
Remove a plot item π«Ά
Parameters:
itemβ PlotItem
See also: insertItem()
Definition at line 126 of file qwt_plot_dict.cpp.
void QwtPlotDict::setAutoDelete(bool autoDelete)
En/Disable Auto deletion βοΈ
If auto deletion is on, all attached plot items will be deleted in the destructor of QwtPlotDict. The default value is on.
See also:autoDelete(),insertItem()
Definition at line 95 of file qwt_plot_dict.cpp.
π Author π
Generated automatically by Doxygen for Qwt User's Guide from the source code. iykyk, the robot did the typing, we just did the glitter π
alright bestie, that's the whole page, you ate it up π β this was QwtPlotDict(3) from the Qwt User's Guide (source/version: Qwt User's Guide, and the date slot on the footer is literally blank, no thoughts, head empty π), see you in the next manpage πβ¨
π¦ 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