A dictionary for plot items
更多...
#include <qwt_plot_dict.h>
A dictionary for plot items
QwtPlotDict organizes plot items in increasing z-order. If autoDelete() is enabled, all attached items will be deleted in the destructor of the dictionary. QwtPlotDict can be used to get access to all QwtPlotItem items - or all items of a specific type - that are currently on the plot.
- 参见
- QwtPlotItem::attach(), QwtPlotItem::detach(), QwtPlotItem::z()
◆ QwtPlotDict()
| QwtPlotDict::QwtPlotDict |
( |
| ) |
|
|
explicit |
◆ autoDelete()
| bool QwtPlotDict::autoDelete |
( |
| ) |
const |
◆ detachItems()
Detach items from the dictionary
- 参数
-
| [in] | rtti | In case of QwtPlotItem::Rtti_PlotItem detach all items, otherwise only those items of the type rtti. |
| [in] | autoDelete | If true, delete all detached items |
◆ insertItem()
Insert an item into the dictionary
Insert a plot item
- 参数
-
- 参见
- removeItem()
◆ itemList() [1/2]
Get the list 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.
- 返回
- List of all attached plot items
◆ itemList() [2/2]
Get the list of all attached plot items of a specific type
- 参数
-
- 返回
- List of all attached plot items of a specific type
- 参见
- QwtPlotItem::rtti()
◆ removeItem()
Remove an item from the dictionary
Remove a plot item
- 参数
-
- 参见
- insertItem()
◆ setAutoDelete()
| void QwtPlotDict::setAutoDelete |
( |
bool |
autoDelete | ) |
|
Enable/disable auto deletion
If Auto deletion is on all attached plot items will be deleted in the destructor of QwtPlotDict. The default value is on.
- 参数
-
| [in] | autoDelete | True to enable auto deletion |
- 参见
- autoDelete(), insertItem()
该类的文档由以下文件生成:
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_dict.h
- /home/runner/work/QWT/QWT/src/plot/qwt_plot_dict.cpp