<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=UTF-8"> <title>Qwt User's Guide: QwtPlotDict Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head><body> <!-- Generated by Doxygen 1.5.8 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> <li><a href="files.html"><span>Files</span></a></li> </ul> </div> <div class="tabs"> <ul> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> </div> <div class="contents"> <h1>QwtPlotDict Class Reference</h1><!-- doxytag: class="QwtPlotDict" -->A dictionary for plot items. <a href="#_details">More...</a> <p> <code>#include <<a class="el" href="qwt__plot__dict_8h-source.html">qwt_plot_dict.h</a>></code> <p> <div class="dynheader"> Inheritance diagram for QwtPlotDict:</div> <div class="dynsection"> <p><center><img src="class_qwt_plot_dict__inherit__graph.png" border="0" usemap="#_qwt_plot_dict__inherit__map" alt="Inheritance graph"></center> <map name="_qwt_plot_dict__inherit__map"> <area shape="rect" href="class_qwt_plot.html" title="A 2-D plotting widget." alt="" coords="17,83,87,107"></map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div> <p> <a href="class_qwt_plot_dict-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0"> <tr><td></td></tr> <tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#0ee364450834ac63f4cbd5baab82d15f">QwtPlotDict</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#9199acfe3e8dcb095065bff3f90f518b">~QwtPlotDict</a> ()</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#3291431f0a9cca5b2affc5adf17bbdfb">setAutoDelete</a> (bool)</td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#10dfae8b454fa4258b0372366013507a">autoDelete</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">const QwtPlotItemList & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#9cbb1c5c22de93594b7e2524af108f55">itemList</a> () const </td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#cb2e402e05c693433ed7e84696fbdfc0">detachItems</a> (int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)</td></tr> <tr><td colspan="2"><br><h2>Friends</h2></td></tr> <tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="055bada44394b2c38d0d907087a14fa3"></a><!-- doxytag: member="QwtPlotDict::QwtPlotItem" ref="055bada44394b2c38d0d907087a14fa3" args="" --> class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#055bada44394b2c38d0d907087a14fa3">QwtPlotItem</a></td></tr> </table> <hr><a name="_details"></a><h2>Detailed Description</h2> A dictionary for plot items. <p> <a class="el" href="class_qwt_plot_dict.html" title="A dictionary for plot items.">QwtPlotDict</a> organizes plot items in increasing z-order. If <a class="el" href="class_qwt_plot_dict.html#10dfae8b454fa4258b0372366013507a">autoDelete()</a> is enabled, all attached items will be deleted in the destructor of the dictionary.<p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_item.html#eb2f676533ccae3436bf578824e2165e" title="Attach the item to a plot.">QwtPlotItem::attach()</a>, <a class="el" href="class_qwt_plot_item.html#b2bbee6dbe36a5f1d0ce853ac66716a6" title="This method detaches a QwtPlotItem from any QwtPlot it has been associated with.">QwtPlotItem::detach()</a>, <a class="el" href="class_qwt_plot_item.html#4c58d814336643190b9f2918f80c30df">QwtPlotItem::z()</a> </dd></dl> <hr><h2>Constructor & Destructor Documentation</h2> <a class="anchor" name="0ee364450834ac63f4cbd5baab82d15f"></a><!-- doxytag: member="QwtPlotDict::QwtPlotDict" ref="0ee364450834ac63f4cbd5baab82d15f" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPlotDict::QwtPlotDict </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p> Constructor<p> Auto deletion is enabled. <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_dict.html#3291431f0a9cca5b2affc5adf17bbdfb">setAutoDelete()</a>, attachItem() </dd></dl> </div> </div><p> <a class="anchor" name="9199acfe3e8dcb095065bff3f90f518b"></a><!-- doxytag: member="QwtPlotDict::~QwtPlotDict" ref="9199acfe3e8dcb095065bff3f90f518b" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">QwtPlotDict::~QwtPlotDict </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> Destructor<p> If autoDelete is on, all attached items will be deleted <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_dict.html#3291431f0a9cca5b2affc5adf17bbdfb">setAutoDelete()</a>, <a class="el" href="class_qwt_plot_dict.html#10dfae8b454fa4258b0372366013507a">autoDelete()</a>, attachItem() </dd></dl> </div> </div><p> <hr><h2>Member Function Documentation</h2> <a class="anchor" name="10dfae8b454fa4258b0372366013507a"></a><!-- doxytag: member="QwtPlotDict::autoDelete" ref="10dfae8b454fa4258b0372366013507a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool QwtPlotDict::autoDelete </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> <dl class="return" compact><dt><b>Returns:</b></dt><dd>true if auto deletion is enabled </dd></dl> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_dict.html#3291431f0a9cca5b2affc5adf17bbdfb">setAutoDelete()</a>, attachItem() </dd></dl> </div> </div><p> <a class="anchor" name="cb2e402e05c693433ed7e84696fbdfc0"></a><!-- doxytag: member="QwtPlotDict::detachItems" ref="cb2e402e05c693433ed7e84696fbdfc0" args="(int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPlotDict::detachItems </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"> <em>rtti</em> = <code>QwtPlotItem::Rtti_PlotItem</code>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"> <em>autoDelete</em> = <code>true</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p> Detach items from the dictionary<p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>rtti</em> </td><td>In case of QwtPlotItem::Rtti_PlotItem detach all items otherwise only those items of the type rtti. </td></tr> <tr><td valign="top"></td><td valign="top"><em>autoDelete</em> </td><td>If true, delete all detached items </td></tr> </table> </dl> </div> </div><p> <a class="anchor" name="9cbb1c5c22de93594b7e2524af108f55"></a><!-- doxytag: member="QwtPlotDict::itemList" ref="9cbb1c5c22de93594b7e2524af108f55" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const QwtPlotItemList & QwtPlotDict::itemList </td> <td>(</td> <td class="paramname"> </td> <td> ) </td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p> A QwtPlotItemList of all attached plot items. <p> 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. <dl class="return" compact><dt><b>Returns:</b></dt><dd>List of all attached plot items. </dd></dl> </div> </div><p> <a class="anchor" name="3291431f0a9cca5b2affc5adf17bbdfb"></a><!-- doxytag: member="QwtPlotDict::setAutoDelete" ref="3291431f0a9cca5b2affc5adf17bbdfb" args="(bool)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void QwtPlotDict::setAutoDelete </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"> <em>autoDelete</em> </td> <td> ) </td> <td></td> </tr> </table> </div> <div class="memdoc"> <p> En/Disable Auto deletion<p> If Auto deletion is on all attached plot items will be deleted in the destructor of <a class="el" href="class_qwt_plot_dict.html" title="A dictionary for plot items.">QwtPlotDict</a>. The default value is on.<p> <dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_dict.html#10dfae8b454fa4258b0372366013507a">autoDelete()</a>, attachItem() </dd></dl> </div> </div><p> </div> <hr size="1"><address style="text-align: right;"><small>Generated on Sun Mar 22 16:41:24 2009 for Qwt User's Guide by <a href="http://www.doxygen.org/index.html"> <img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.8 </small></address> </body> </html>