logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

QwtPlotDict - A dictionary for plot items.

Author

       Generated automatically by Doxygen for Qwt User's Guide from the source code.

Version 6.1.4                                    Wed Jan 2 2019                                   QwtPlotDict(3)

Constructor & Destructor Documentation

QwtPlotDict::QwtPlotDict()[explicit]
       Constructor

       Auto deletion is enabled.

       Seealso:setAutoDelete(), QwtPlotItem::attach()QwtPlotDict::~QwtPlotDict()[virtual]
       Destructor

       If autoDelete() is on, all attached items will be deleted

       Seealso:setAutoDelete(), autoDelete(), QwtPlotItem::attach()

Detailed Description

       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 can be used to get access to all
       QwtPlotItem items - or all items of a specific type - that are currently on the plot.

       Seealso:QwtPlotItem::attach(), QwtPlotItem::detach(), QwtPlotItem::z()

Member Function Documentation

boolQwtPlotDict::autoDelete()constReturns:
           true if auto deletion is enabled

       Seealso:setAutoDelete(), insertItem()voidQwtPlotDict::detachItems(intrtti=QwtPlotItem::Rtti_PlotItem,boolautoDelete=true)
       Detach items from the dictionary

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

   voidQwtPlotDict::insertItem(QwtPlotItem*item)[protected]
       Insert a plot item

       Parameters:item PlotItem

       Seealso:removeItem()constQwtPlotItemList&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.

       Returns:
           List of all attached plot items.

   QwtPlotItemListQwtPlotDict::itemList(intrtti)constReturns:
           List of all attached plot items of a specific type.

       Parameters:rtti See QwtPlotItem::RttiValuesSeealso:QwtPlotItem::rtti()voidQwtPlotDict::removeItem(QwtPlotItem*item)[protected]
       Remove a plot item

       Parameters:item PlotItem

       Seealso:insertItem()voidQwtPlotDict::setAutoDelete(boolautoDelete)
       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.

       Seealso:autoDelete(), insertItem()

Name

       QwtPlotDict - A dictionary for plot items.

Synopsis

       #include <qwt_plot_dict.h>

       Inherited by QwtPlot.

   PublicMemberFunctionsQwtPlotDict ()
       virtual ~QwtPlotDict ()
       void setAutoDelete (bool)
       bool autoDelete () const
       const QwtPlotItemList & itemList () const
           A QwtPlotItemList of all attached plot items.
       QwtPlotItemList itemList (int rtti) const
       void detachItems (int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)

   ProtectedMemberFunctions
       void insertItem (QwtPlotItem *)
       void removeItem (QwtPlotItem *)

See Also