|
QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
|
A dictionary for polar plot items 更多...
#include <qwt_polar_itemdict.h>
类 | |
| class | PrivateData |
Public 成员函数 | |
| QwtPolarItemDict () | |
| Constructor | |
| ~QwtPolarItemDict () | |
| Destructor | |
| void | setAutoDelete (bool) |
| Set auto delete | |
| bool | autoDelete () const |
| Get auto delete | |
| const QwtPolarItemList & | itemList () const |
| Get the item list | |
| void | detachItems (int rtti=QwtPolarItem::Rtti_PolarItem, bool autoDelete=true) |
| Detach items | |
Protected 成员函数 | |
| void | insertItem (QwtPolarItem *) |
| Insert an item | |
| void | removeItem (QwtPolarItem *) |
| Remove an item | |
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.
|
explicit |
| QwtPolarItemDict::~QwtPolarItemDict | ( | ) |
Destructor
If autoDelete is on, all attached items will be deleted.
| bool QwtPolarItemDict::autoDelete | ( | ) | const |
Get auto delete
Check if auto deletion is enabled
| void QwtPolarItemDict::detachItems | ( | int | rtti = QwtPolarItem::Rtti_PolarItem, |
| bool | autoDelete = true |
||
| ) |
Detach items
Detach items from the dictionary
| rtti | In case of QwtPolarItem::Rtti_PolarItem detach all items, otherwise only those items of the type rtti. |
| autoDelete | If true, delete all detached items |
|
protected |
| const QwtPolarItemList & QwtPolarItemDict::itemList | ( | ) | const |
Get the item list
Get a QwtPolarItemList of all attached plot items
|
protected |
| void QwtPolarItemDict::setAutoDelete | ( | bool | autoDelete | ) |
Set auto delete
Enable/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.
| autoDelete | Auto delete flag |