QWT API (English) 7.3.0
Qt Widget Library for Technical Applications - English API Documentation
Loading...
Searching...
No Matches
Classes | Public Member Functions | Protected Member Functions | List of all members
QwtPolarItemDict Class Reference

A dictionary for polar plot items. More...

#include <qwt_polar_itemdict.h>

Inheritance diagram for QwtPolarItemDict:
QwtPolarPlot

Classes

class  PrivateData
 

Public Member Functions

 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 Member Functions

void insertItem (QwtPolarItem *)
 Insert an item.
 
void removeItem (QwtPolarItem *)
 Remove an item.
 

Detailed Description

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.

See also
QwtPolarItem::attach(), QwtPolarItem::detach(), QwtPolarItem::z()

Constructor & Destructor Documentation

◆ QwtPolarItemDict()

QwtPolarItemDict::QwtPolarItemDict ( )
explicit

Constructor.

Auto deletion is enabled.

See also
setAutoDelete, attachItem

◆ ~QwtPolarItemDict()

QwtPolarItemDict::~QwtPolarItemDict ( )

Destructor.

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

See also
setAutoDelete, autoDelete, attachItem

Member Function Documentation

◆ autoDelete()

bool QwtPolarItemDict::autoDelete ( ) const

Get auto delete.

Check if auto deletion is enabled.

Returns
true if auto deletion is enabled
See also
setAutoDelete, attachItem

◆ detachItems()

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

Detach items.

Detach items from the dictionary.

Parameters
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.

Parameters
itemPlotItem
See also
removeItem()

◆ itemList()

const QwtPolarItemList & QwtPolarItemDict::itemList ( ) const

Get the item list.

Get a QwtPolarItemList of all attached plot items.

Returns
List of all attached plot items
Note
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.

Parameters
itemPlotItem
See also
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.

Parameters
autoDeleteAuto delete flag
See also
autoDelete, attachItem

The documentation for this class was generated from the following files: