qwt_plot_dict.h
Go to the documentation of this file.
1 /* -*- mode: C++ ; c-file-style: "stroustrup" -*- *****************************
2  * Qwt Widget Library
3  * Copyright (C) 1997 Josef Wilgen
4  * Copyright (C) 2002 Uwe Rathmann
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the Qwt License, Version 1.0
8  *****************************************************************************/
9 
11 #ifndef QWT_PLOT_DICT
12 #define QWT_PLOT_DICT
13 
14 #include "qwt_global.h"
15 #include "qwt_plot_item.h"
16 #include <qlist.h>
17 
20 typedef QList<QwtPlotItem *> QwtPlotItemList;
21 typedef QList<QwtPlotItem *>::ConstIterator QwtPlotItemIterator;
22 
35 {
36 public:
37  explicit QwtPlotDict();
38  virtual ~QwtPlotDict();
39 
40  void setAutoDelete( bool );
41  bool autoDelete() const;
42 
43  const QwtPlotItemList& itemList() const;
44  QwtPlotItemList itemList( int rtti ) const;
45 
46  void detachItems( int rtti = QwtPlotItem::Rtti_PlotItem,
47  bool autoDelete = true );
48 
49 protected:
50  void insertItem( QwtPlotItem * );
51  void removeItem( QwtPlotItem * );
52 
53 private:
54  class PrivateData;
56 };
57 
58 #endif
#define QWT_EXPORT
Definition: qwt_global.h:38
QList< QwtPlotItem * > QwtPlotItemList
See QT 4.x assistant documentation for QList.
Definition: qwt_plot_dict.h:20
PrivateData * d_data
Definition: qwt_plot_dict.h:54
QList< QwtPlotItem * >::ConstIterator QwtPlotItemIterator
Definition: qwt_plot_dict.h:21
A dictionary for plot items.
Definition: qwt_plot_dict.h:34
Base class for items on the plot canvas.
Definition: qwt_plot_item.h:64
Unspecific value, that can be used, when it doesn&#39;t matter.
Definition: qwt_plot_item.h:76


plotjuggler
Author(s): Davide Faconti
autogenerated on Sat Jul 6 2019 03:44:17