QwtPolarItemDict(3)

πŸ“¦
version 6.3.0 Β· 2 versions
, in alpine 3.24

Okay bestie, buckle up! 🎒 This is the Library Functions Manual page for QwtPolarItemDict(3), and it's literally all about keeping your polar plot items in check. No cap, it's a vibe. πŸ’…


✨ NAME ✨

QwtPolarItemDict β€” a dictionary for polar plot items. That's it. It's giving organized icon energy. πŸ‘‘


🌈 SYNOPSIS 🌈

#include <qwt_polar_itemdict.h>

Inherited by QwtPolarPlot.

πŸ’– Public Member Functions πŸ’–

  • QwtPolarItemDict () ✨
  • ~QwtPolarItemDict () πŸ’€
  • void setAutoDelete (bool) πŸŽ€
  • bool autoDelete () const πŸ¦‹
  • const QwtPolarItemList & itemList () const 🌸
  • void detachItems (int rtti=QwtPolarItem::Rtti_PolarItem, bool autoDelete=true) πŸ”₯

πŸ¦‹ Protected Member Functions πŸ¦‹

  • void insertItem (QwtPolarItem *) πŸ’…
  • void removeItem (QwtPolarItem *) ⭐

🌟 DETAILED DESCRIPTION 🌟

Okay so <pink>QwtPolarItemDict</pink> is literally a dictionary for polar plot items. It organizes them in increasing <purple>z-order</purple> (like, stacking order, iykyk). If <lavender>autoDelete()</lavender> is enabled, all attached items will be deleted in the destructor of the dictionary. So it's self-cleaning, bestie! 🧼✨

See also: QwtPolarItem::attach(), QwtPolarItem::detach(), QwtPolarItem::z()

Definition at line 28 of file qwt_polar_itemdict.h.

πŸ‘‘ CONSTRUCTOR & DESTRUCTOR DOCUMENTATION πŸ‘‘

πŸ’– QwtPolarItemDict::QwtPolarItemDict () [explicit] πŸ’–

This is the constructor, bestie! It sets up your dictionary and turns on auto deletion by default. So you don't have to worry about cleanupβ€”it's giving responsible queen. πŸ‘‘

See also: setAutoDelete, attachItem

Definition at line 71 of file qwt_polar_itemdict.cpp.

πŸ’€ QwtPolarItemDict::~QwtPolarItemDict () πŸ’€

The destructor! πŸ’€ If autoDelete is on, all attached items will be deleted. So it's like a farewell party where everything gets cleaned up. No cap.

See also: setAutoDelete, autoDelete, attachItem

Definition at line 83 of file qwt_polar_itemdict.cpp.

πŸ’… MEMBER FUNCTION DOCUMENTATION πŸ’…

🌸 bool QwtPolarItemDict::autoDelete () const 🌸

This returns true if auto deletion is enabled. So you can check if your dictionary is in self-clean mode. Obsessed. πŸ’–

Returns: true if auto deletion is enabled

See also: setAutoDelete, attachItem

Definition at line 106 of file qwt_polar_itemdict.cpp.

πŸ”₯ void QwtPolarItemDict::detachItems (int rtti = QwtPolarItem::Rtti_PolarItem, bool autoDelete = true) πŸ”₯

Detach items from the dictionary. Here's the tea:

  • rtti β€” In case of QwtPolarItem::Rtti_PlotItem detach all items otherwise only those items of the type rtti.
  • autoDelete β€” If true, delete all detached items.
Definition at line 140 of file qwt_polar_itemdict.cpp.

πŸŽ€ void QwtPolarItemDict::insertItem (QwtPolarItem * item) [protected] πŸŽ€

This protected function inserts a plot item. You pass in a QwtPolarItem * and it gets added. Slay. πŸ’…

Parameters:

  • item β€” PlotItem

See also: removeItem()

Definition at line 117 of file qwt_polar_itemdict.cpp.

πŸ¦‹ const QwtPolarItemList & QwtPolarItemDict::itemList () const πŸ¦‹

A QwtPolarItemList of all attached plot items. It's giving full inventory. πŸ“‹

Returns: List of all attached plot items.

⚠️ Note: 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. So don't be messy, bestie. πŸ™ˆ
Definition at line 168 of file qwt_polar_itemdict.cpp.

⭐ void QwtPolarItemDict::removeItem (QwtPolarItem * item) [protected] ⭐

Protected function to remove a plot item. It's the opposite of insertItem(). Bye Felicia! πŸ‘‹

Parameters:

  • item β€” PlotItem

See also: insertItem()

Definition at line 128 of file qwt_polar_itemdict.cpp.

πŸ’œ void QwtPolarItemDict::setAutoDelete (bool autoDelete) πŸ’œ

Turn auto deletion on or off. If Auto deletion is on all attached plot items will be deleted in the destructor of QwtPolarItemDict. The default value is on, so it's lowkey the default vibe.

See also: autoDelete, attachItem

Definition at line 97 of file qwt_polar_itemdict.cpp.

πŸ‘‘ AUTHOR πŸ‘‘

Generated automatically by Doxygen for Qwt User's Guide from the source code. So it's not me, it's Doxygen. But I made it cute. πŸ’…


And that's the tea! 🍡 This page was brought to you by the Qwt User's Guide and QwtPolarItemDict(3). Slay, periodt. πŸ’–βœ¨

πŸ“¦ where this page comes from