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

A dictionary for plot items. More...

#include <qwt_plot_dict.h>

Inheritance diagram for QwtPlotDict:
QwtPlot

Classes

class  PrivateData
 

Public Member Functions

 QwtPlotDict ()
 Constructor.
 
virtual ~QwtPlotDict ()
 Destructor.
 
void setAutoDelete (bool)
 Enable/disable auto deletion.
 
bool autoDelete () const
 Check if auto deletion is enabled.
 
const QwtPlotItemListitemList () const
 Get the list of all attached plot items.
 
QwtPlotItemList itemList (int rtti) const
 Get the list of all attached plot items of a specific type.
 
void detachItems (int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)
 Detach items from the dictionary.
 

Protected Member Functions

void insertItem (QwtPlotItem *)
 Insert an item into the dictionary.
 
void removeItem (QwtPlotItem *)
 Remove an item from the dictionary.
 

Detailed Description

A dictionary for plot items.

Constructor & Destructor Documentation

◆ QwtPlotDict()

QwtPlotDict::QwtPlotDict ( )
explicit

Constructor.

◆ ~QwtPlotDict()

QwtPlotDict::~QwtPlotDict ( )
virtual

Destructor.

Member Function Documentation

◆ autoDelete()

bool QwtPlotDict::autoDelete ( ) const

Check if auto deletion is enabled.

◆ detachItems()

void QwtPlotDict::detachItems ( int  rtti = QwtPlotItem::Rtti_PlotItem,
bool  autoDelete = true 
)

Detach items from the dictionary.

◆ insertItem()

void QwtPlotDict::insertItem ( QwtPlotItem item)
protected

Insert an item into the dictionary.

Insert a plot item.

Parameters
itemPlotItem
See also
removeItem()

◆ itemList() [1/2]

const QwtPlotItemList & QwtPlotDict::itemList ( ) const

Get the list of all attached plot items.

◆ itemList() [2/2]

QwtPlotItemList QwtPlotDict::itemList ( int  rtti) const

Get the list of all attached plot items of a specific type.

◆ removeItem()

void QwtPlotDict::removeItem ( QwtPlotItem item)
protected

Remove an item from the dictionary.

Remove a plot item.

Parameters
itemPlotItem
See also
insertItem()

◆ setAutoDelete()

void QwtPlotDict::setAutoDelete ( bool  autoDelete)

Enable/disable auto deletion.


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