Qwt Polar User's Guide 0.1.0
|
A dictionary for polar plot items. More...
#include <qwt_polar_itemdict.h>
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) |
Friends | |
class | 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.
QwtPolarItemDict::QwtPolarItemDict | ( | ) | [explicit] |
QwtPolarItemDict::~QwtPolarItemDict | ( | ) |
Destructor
If autoDelete is on, all attached items will be deleted
bool QwtPolarItemDict::autoDelete | ( | ) | const |
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 |
const QwtPolarItemList & QwtPolarItemDict::itemList | ( | ) | const |
A QwtPolarItemList 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.
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.