1
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
3
<title>Qwt User's Guide: QwtPlotDict Class Reference</title>
4
<link href="doxygen.css" rel="stylesheet" type="text/css">
5
<link href="tabs.css" rel="stylesheet" type="text/css">
7
<!-- Generated by Doxygen 1.5.0 -->
10
<li><a href="index.html"><span>Main Page</span></a></li>
11
<li id="current"><a href="classes.html"><span>Classes</span></a></li>
12
<li><a href="files.html"><span>Files</span></a></li>
13
<li><a href="pages.html"><span>Related Pages</span></a></li>
17
<li><a href="classes.html"><span>Alphabetical List</span></a></li>
18
<li><a href="annotated.html"><span>Class List</span></a></li>
19
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
20
<li><a href="functions.html"><span>Class Members</span></a></li>
22
<h1>QwtPlotDict Class Reference</h1><!-- doxytag: class="QwtPlotDict" -->Inheritance diagram for QwtPlotDict:<p><center><img src="class_qwt_plot_dict__inherit__graph.png" border="0" usemap="#_qwt_plot_dict__inherit__map" alt="Inheritance graph"></center>
23
<map name="_qwt_plot_dict__inherit__map">
24
<area href="class_qwt_plot.html" shape="rect" coords="17,83,87,107" alt="">
26
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="class_qwt_plot_dict-members.html">List of all members.</a><hr><a name="_details"></a><h2>Detailed Description</h2>
27
A dictionary for plot items.
29
<a class="el" href="class_qwt_plot_dict.html">QwtPlotDict</a> organizes plot items in increasing z-order. If <a class="el" href="class_qwt_plot_dict.html#8f36ce63ad81b939313b0347500d2d31">autoDelete()</a> is enabled, all attached items will be deleted in the destructor of the dictionary.<p>
30
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_item.html#eb2f676533ccae3436bf578824e2165e">QwtPlotItem::attach()</a>, <a class="el" href="class_qwt_plot_item.html#b2bbee6dbe36a5f1d0ce853ac66716a6">QwtPlotItem::detach()</a>, <a class="el" href="class_qwt_plot_item.html#717c27fba94fd761a2d4ec06e9dbfa21">QwtPlotItem::z()</a> </dd></dl>
35
Definition at line <a class="el" href="qwt__plot__dict_8h-source.html#l00042">42</a> of file <a class="el" href="qwt__plot__dict_8h-source.html">qwt_plot_dict.h</a>.<table border="0" cellpadding="0" cellspacing="0">
37
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
38
<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>
40
<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>
42
<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>
44
<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#8f36ce63ad81b939313b0347500d2d31">autoDelete</a> () const</td></tr>
46
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="qwt__plot__dict_8h.html#375ca32f3e8a24c8eeb076a637ecd1d8">QwtPlotItemList</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#49d60b01e53a33423987aa80559449f9">itemList</a> () const</td></tr>
48
<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>
50
<tr><td colspan="2"><br><h2>Friends</h2></td></tr>
51
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="055bada44394b2c38d0d907087a14fa3"></a><!-- doxytag: member="QwtPlotDict::QwtPlotItem" ref="055bada44394b2c38d0d907087a14fa3" args="" -->
52
class </td><td class="memItemRight" valign="bottom"><a class="el" href="class_qwt_plot_dict.html#055bada44394b2c38d0d907087a14fa3">QwtPlotItem</a></td></tr>
55
<hr><h2>Constructor & Destructor Documentation</h2>
56
<a class="anchor" name="0ee364450834ac63f4cbd5baab82d15f"></a><!-- doxytag: member="QwtPlotDict::QwtPlotDict" ref="0ee364450834ac63f4cbd5baab82d15f" args="()" -->
58
<div class="memproto">
59
<table class="memname">
61
<td class="memname">QwtPlotDict::QwtPlotDict </td>
63
<td class="paramname"> </td>
64
<td> ) </td>
65
<td width="100%"><code> [explicit]</code></td>
73
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>
76
Definition at line <a class="el" href="qwt__plot__dict_8cpp-source.html#l00094">94</a> of file <a class="el" href="qwt__plot__dict_8cpp-source.html">qwt_plot_dict.cpp</a>.
79
<a class="anchor" name="9199acfe3e8dcb095065bff3f90f518b"></a><!-- doxytag: member="QwtPlotDict::~QwtPlotDict" ref="9199acfe3e8dcb095065bff3f90f518b" args="()" -->
81
<div class="memproto">
82
<table class="memname">
84
<td class="memname">QwtPlotDict::~QwtPlotDict </td>
86
<td class="paramname"> </td>
87
<td> ) </td>
88
<td width="100%"></td>
96
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#8f36ce63ad81b939313b0347500d2d31">autoDelete</a>, attachItem </dd></dl>
99
Definition at line <a class="el" href="qwt__plot__dict_8cpp-source.html#l00106">106</a> of file <a class="el" href="qwt__plot__dict_8cpp-source.html">qwt_plot_dict.cpp</a>.
101
References <a class="el" href="qwt__plot__dict_8cpp-source.html#l00161">detachItems()</a>.
104
<hr><h2>Member Function Documentation</h2>
105
<a class="anchor" name="3291431f0a9cca5b2affc5adf17bbdfb"></a><!-- doxytag: member="QwtPlotDict::setAutoDelete" ref="3291431f0a9cca5b2affc5adf17bbdfb" args="(bool)" -->
106
<div class="memitem">
107
<div class="memproto">
108
<table class="memname">
110
<td class="memname">void QwtPlotDict::setAutoDelete </td>
112
<td class="paramtype">bool </td>
113
<td class="paramname"> <em>autoDelete</em> </td>
114
<td> ) </td>
115
<td width="100%"></td>
122
En/Disable Auto deletion<p>
123
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">QwtPlotDict</a>. The default value is on.<p>
124
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="class_qwt_plot_dict.html#8f36ce63ad81b939313b0347500d2d31">autoDelete</a>, attachItem </dd></dl>
127
Definition at line <a class="el" href="qwt__plot__dict_8cpp-source.html#l00120">120</a> of file <a class="el" href="qwt__plot__dict_8cpp-source.html">qwt_plot_dict.cpp</a>.
130
<a class="anchor" name="8f36ce63ad81b939313b0347500d2d31"></a><!-- doxytag: member="QwtPlotDict::autoDelete" ref="8f36ce63ad81b939313b0347500d2d31" args="() const" -->
131
<div class="memitem">
132
<div class="memproto">
133
<table class="memname">
135
<td class="memname">bool QwtPlotDict::autoDelete </td>
137
<td class="paramname"> </td>
138
<td> ) </td>
139
<td width="100%"> const</td>
146
<dl class="return" compact><dt><b>Returns:</b></dt><dd>true if auto deletion is enabled </dd></dl>
147
<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>
150
Definition at line <a class="el" href="qwt__plot__dict_8cpp-source.html#l00129">129</a> of file <a class="el" href="qwt__plot__dict_8cpp-source.html">qwt_plot_dict.cpp</a>.
152
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00084">QwtPlot::~QwtPlot()</a>.
155
<a class="anchor" name="49d60b01e53a33423987aa80559449f9"></a><!-- doxytag: member="QwtPlotDict::itemList" ref="49d60b01e53a33423987aa80559449f9" args="() const" -->
156
<div class="memitem">
157
<div class="memproto">
158
<table class="memname">
160
<td class="memname">const <a class="el" href="qwt__plot__dict_8h.html#375ca32f3e8a24c8eeb076a637ecd1d8">QwtPlotItemList</a> & QwtPlotDict::itemList </td>
162
<td class="paramname"> </td>
163
<td> ) </td>
164
<td width="100%"> const</td>
171
A QwtPlotItemList of all attached plot items.
173
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>
176
Definition at line <a class="el" href="qwt__plot__dict_8cpp-source.html#l00186">186</a> of file <a class="el" href="qwt__plot__dict_8cpp-source.html">qwt_plot_dict.cpp</a>.
178
Referenced by <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00157">QwtPlotPrintFilter::apply()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00572">QwtPlot::drawItems()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00822">QwtPlot::insertLegend()</a>, <a class="el" href="qwt__plot__printfilter_8cpp-source.html#l00366">QwtPlotPrintFilter::reset()</a>, and <a class="el" href="qwt__plot__axis_8cpp-source.html#l00579">QwtPlot::updateAxes()</a>.
181
<a class="anchor" name="cb2e402e05c693433ed7e84696fbdfc0"></a><!-- doxytag: member="QwtPlotDict::detachItems" ref="cb2e402e05c693433ed7e84696fbdfc0" args="(int rtti=QwtPlotItem::Rtti_PlotItem, bool autoDelete=true)" -->
182
<div class="memitem">
183
<div class="memproto">
184
<table class="memname">
186
<td class="memname">void QwtPlotDict::detachItems </td>
188
<td class="paramtype">int </td>
189
<td class="paramname"> <em>rtti</em> = <code>QwtPlotItem::Rtti_PlotItem</code>, </td>
192
<td class="paramkey"></td>
194
<td class="paramtype">bool </td>
195
<td class="paramname"> <em>autoDelete</em> = <code>true</code></td><td> </td>
200
<td></td><td></td><td width="100%"></td>
207
Detach items from the dictionary<p>
208
<dl compact><dt><b>Parameters:</b></dt><dd>
209
<table border="0" cellspacing="2" cellpadding="0">
210
<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>
211
<tr><td valign="top"></td><td valign="top"><em>autoDelete</em> </td><td>If true, delete all detached items </td></tr>
216
Definition at line <a class="el" href="qwt__plot__dict_8cpp-source.html#l00161">161</a> of file <a class="el" href="qwt__plot__dict_8cpp-source.html">qwt_plot_dict.cpp</a>.
218
Referenced by <a class="el" href="qwt__plot_8cpp-source.html#l00789">QwtPlot::clear()</a>, <a class="el" href="qwt__plot_8cpp-source.html#l00084">QwtPlot::~QwtPlot()</a>, and <a class="el" href="qwt__plot__dict_8cpp-source.html#l00106">~QwtPlotDict()</a>.
221
<hr size="1"><address style="align: right;"><small>Generated on Thu May 1 15:45:03 2008 for Qwt User's Guide by
222
<a href="http://www.doxygen.org/index.html">
223
<img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.0 </small></address>