10#include "qwt_plot_dict.h"
13class QwtPlotDict::PrivateData
17 class ItemList :
public QList< QwtPlotItem* >
26 std::upper_bound( begin(), end(), item, LessZThan() );
36 std::lower_bound( begin(), end(), item, LessZThan() );
38 for ( ; it != end(); ++it )
54 return item1->
z() < item2->
z();
71 m_data =
new QwtPlotDict::PrivateData;
72 m_data->autoDelete =
true;
106 return m_data->autoDelete;
117 m_data->itemList.insertItem( item );
128 m_data->itemList.removeItem( item );
140 PrivateData::ItemList list = m_data->itemList;
141 QwtPlotItemIterator it = list.constBegin();
142 while ( it != list.constEnd() )
168 return m_data->itemList;
179 return m_data->itemList;
183 PrivateData::ItemList list = m_data->itemList;
184 for ( QwtPlotItemIterator it = list.constBegin(); it != list.constEnd(); ++it )
187 if ( item->
rtti() == rtti )
void insertItem(QwtPlotItem *)
const QwtPlotItemList & itemList() const
A QwtPlotItemList of all attached plot items.
void removeItem(QwtPlotItem *)
void detachItems(int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)
Base class for items on the plot canvas.
@ Rtti_PlotItem
Unspecific value, that can be used, when it doesn't matter.
void attach(QwtPlot *plot)
Attach the item to a plot.