A dictionary for polar plot items. More...
#include <qwt_polar_itemdict.h>
Classes | |
class | PrivateData |
Public Member Functions | |
bool | autoDelete () const |
void | detachItems (int rtti=QwtPolarItem::Rtti_PolarItem, bool autoDelete=true) |
const QwtPolarItemList & | itemList () const |
A QwtPolarItemList of all attached plot items. More... | |
QwtPolarItemDict () | |
void | setAutoDelete (bool) |
~QwtPolarItemDict () | |
Protected Member Functions | |
void | insertItem (QwtPolarItem *) |
void | removeItem (QwtPolarItem *) |
Private Attributes | |
PrivateData * | m_data |
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.
Definition at line 28 of file qwt_polar_itemdict.h.
|
explicit |
Constructor
Auto deletion is enabled.
Definition at line 71 of file qwt_polar_itemdict.cpp.
QwtPolarItemDict::~QwtPolarItemDict | ( | ) |
Destructor
If autoDelete is on, all attached items will be deleted
Definition at line 83 of file qwt_polar_itemdict.cpp.
bool QwtPolarItemDict::autoDelete | ( | ) | const |
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
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.
|
protected |
Insert a plot item
item | PlotItem |
Definition at line 117 of file qwt_polar_itemdict.cpp.
const QwtPolarItemList & QwtPolarItemDict::itemList | ( | ) | const |
A QwtPolarItemList of all attached plot items.
Definition at line 168 of file qwt_polar_itemdict.cpp.
|
protected |
Remove a plot item
item | PlotItem |
Definition at line 128 of file qwt_polar_itemdict.cpp.
void QwtPolarItemDict::setAutoDelete | ( | bool | autoDelete | ) |
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.
Definition at line 97 of file qwt_polar_itemdict.cpp.
|
private |
Definition at line 47 of file qwt_polar_itemdict.h.