QwtPolarItemDict(3) Qwt User's Guide QwtPolarItemDict(3)

QwtPolarItemDict - A dictionary for polar plot items.

#include <qwt_polar_itemdict.h>

Inherited by QwtPolarPlot.


QwtPolarItemDict ()
~QwtPolarItemDict ()
void setAutoDelete (bool)
bool autoDelete () const
const QwtPolarItemList & itemList () const
A QwtPolarItemList of all attached plot items. void detachItems (int rtti=QwtPolarItem::Rtti_PolarItem, bool autoDelete=true)


void insertItem (QwtPolarItem *)
void removeItem (QwtPolarItem *)

A dictionary for polar plot items.

QwtPolarItemDict organizes polar plot items in increasing z-order. If autoDelete() is enabled, all attached items will be deleted in the destructor of the dictionary.

See also

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

Definition at line 28 of file qwt_polar_itemdict.h.

Constructor

Auto deletion is enabled.

See also

setAutoDelete, attachItem

Definition at line 71 of file qwt_polar_itemdict.cpp.

Destructor

If autoDelete is on, all attached items will be deleted

See also

setAutoDelete, autoDelete, attachItem

Definition at line 83 of file qwt_polar_itemdict.cpp.

Returns

true if auto deletion is enabled

See also

setAutoDelete, attachItem

Definition at line 106 of file qwt_polar_itemdict.cpp.

Detach items from the dictionary

Parameters

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.

Insert a plot item

Parameters

item PlotItem

See also

removeItem()

Definition at line 117 of file qwt_polar_itemdict.cpp.

A QwtPolarItemList of all attached plot items.

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.

Definition at line 168 of file qwt_polar_itemdict.cpp.

Remove a plot item

Parameters

item PlotItem

See also

insertItem()

Definition at line 128 of file qwt_polar_itemdict.cpp.

En/Disable Auto deletion

If Auto deletion is on all attached plot items will be deleted in the destructor of QwtPolarItemDict. The default value is on.

See also

autoDelete, attachItem

Definition at line 97 of file qwt_polar_itemdict.cpp.

Generated automatically by Doxygen for Qwt User's Guide from the source code.

Sun Jul 18 2021 Version 6.2.0