QWT API (中文) 7.3.0
Qt绘图库 - 中文API文档
载入中...
搜索中...
未找到
| Public 成员函数 | Protected 成员函数 | 所有成员列表
QwtPolarItemDict类 参考

A dictionary for polar plot items 更多...

#include <qwt_polar_itemdict.h>

类 QwtPolarItemDict 继承关系图:
QwtPolarPlot

class  PrivateData
 

Public 成员函数

 QwtPolarItemDict ()
 Constructor
 
 ~QwtPolarItemDict ()
 Destructor
 
void setAutoDelete (bool)
 Set auto delete
 
bool autoDelete () const
 Get auto delete
 
const QwtPolarItemListitemList () 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.

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

构造及析构函数说明

◆ QwtPolarItemDict()

QwtPolarItemDict::QwtPolarItemDict ( )
explicit

Constructor

Auto deletion is enabled.

参见
setAutoDelete, attachItem

◆ ~QwtPolarItemDict()

QwtPolarItemDict::~QwtPolarItemDict ( )

Destructor

If autoDelete is on, all attached items will be deleted.

参见
setAutoDelete, autoDelete, attachItem

成员函数说明

◆ autoDelete()

bool QwtPolarItemDict::autoDelete ( ) const

Get auto delete

Check if auto deletion is enabled

返回
true if auto deletion is enabled
参见
setAutoDelete, attachItem

◆ detachItems()

void QwtPolarItemDict::detachItems ( int  rtti = QwtPolarItem::Rtti_PolarItem,
bool  autoDelete = true 
)

Detach items

Detach items from the dictionary

参数
rttiIn case of QwtPolarItem::Rtti_PolarItem detach all items, otherwise only those items of the type rtti.
autoDeleteIf true, delete all detached items

◆ insertItem()

void QwtPolarItemDict::insertItem ( QwtPolarItem item)
protected

Insert an item

Insert a plot item

参数
itemPlotItem
参见
removeItem()

◆ itemList()

const QwtPolarItemList & QwtPolarItemDict::itemList ( ) const

Get the item list

Get a QwtPolarItemList of all attached plot items

返回
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.

◆ removeItem()

void QwtPolarItemDict::removeItem ( QwtPolarItem item)
protected

Remove an item

Remove a plot item

参数
itemPlotItem
参见
insertItem()

◆ setAutoDelete()

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.

参数
autoDeleteAuto delete flag
参见
autoDelete, attachItem

该类的文档由以下文件生成: