Eneboo - Documentación para desarrolladores
|
A dictionary for plot items. Más...
#include <qwt_plot_dict.h>
Clases | |
class | PrivateData |
Métodos públicos | |
QwtPlotDict () | |
~QwtPlotDict () | |
void | setAutoDelete (bool) |
bool | autoDelete () const |
const QwtPlotItemList & | itemList () const |
A QwtPlotItemList of all attached plot items. | |
void | detachItems (int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true) |
Amigas | |
class | QwtPlotItem |
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::QwtPlotDict | ( | ) | [explicit] |
QwtPlotDict::~QwtPlotDict | ( | ) |
Destructor
If autoDelete is on, all attached items will be deleted
bool QwtPlotDict::autoDelete | ( | ) | const |
Detach items from the dictionary
rtti | In case of QwtPlotItem::Rtti_PlotItem detach all items otherwise only those items of the type rtti. |
autoDelete | If true, delete all detached items |
const QwtPlotItemList & QwtPlotDict::itemList | ( | ) | const |
A QwtPlotItemList 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.
void QwtPlotDict::setAutoDelete | ( | bool | autoDelete | ) |
En/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.
friend class QwtPlotItem [friend] |