QwtPlotDict.3
3.83 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
.TH "QwtPlotDict" 3 "Sat Jan 26 2013" "Version 6.1-rc3" "Qwt User's Guide" \" -*- nroff -*-
.ad l
.nh
.SH NAME
QwtPlotDict \-
.PP
A dictionary for plot items\&.
.SH SYNOPSIS
.br
.PP
.PP
\fC#include <qwt_plot_dict\&.h>\fP
.PP
Inherited by \fBQwtPlot\fP\&.
.SS "Public Member Functions"
.in +1c
.ti -1c
.RI "\fBQwtPlotDict\fP ()"
.br
.ti -1c
.RI "virtual \fB~QwtPlotDict\fP ()"
.br
.ti -1c
.RI "void \fBsetAutoDelete\fP (bool)"
.br
.ti -1c
.RI "bool \fBautoDelete\fP () const "
.br
.ti -1c
.RI "const QwtPlotItemList & \fBitemList\fP () const "
.br
.RI "\fIA QwtPlotItemList of all attached plot items\&. \fP"
.ti -1c
.RI "QwtPlotItemList \fBitemList\fP (int rtti) const "
.br
.ti -1c
.RI "void \fBdetachItems\fP (int rtti=\fBQwtPlotItem::Rtti_PlotItem\fP, bool \fBautoDelete\fP=true)"
.br
.in -1c
.SS "Protected Member Functions"
.in +1c
.ti -1c
.RI "void \fBinsertItem\fP (\fBQwtPlotItem\fP *)"
.br
.ti -1c
.RI "void \fBremoveItem\fP (\fBQwtPlotItem\fP *)"
.br
.in -1c
.SH "Detailed Description"
.PP
A dictionary for plot items\&.
\fBQwtPlotDict\fP organizes plot items in increasing z-order\&. If \fBautoDelete()\fP is enabled, all attached items will be deleted in the destructor of the dictionary\&. \fBQwtPlotDict\fP can be used to get access to all \fBQwtPlotItem\fP items - or all items of a specific type - that are currently on the plot\&.
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlotItem::attach()\fP, \fBQwtPlotItem::detach()\fP, \fBQwtPlotItem::z()\fP
.RE
.PP
.SH "Constructor & Destructor Documentation"
.PP
.SS "QwtPlotDict::QwtPlotDict ()\fC [explicit]\fP"
Constructor
.PP
Auto deletion is enabled\&.
.PP
\fBSee Also:\fP
.RS 4
\fBsetAutoDelete()\fP, \fBQwtPlotItem::attach()\fP
.RE
.PP
.SS "QwtPlotDict::~QwtPlotDict ()\fC [virtual]\fP"
Destructor
.PP
If \fBautoDelete()\fP is on, all attached items will be deleted
.PP
\fBSee Also:\fP
.RS 4
\fBsetAutoDelete()\fP, \fBautoDelete()\fP, \fBQwtPlotItem::attach()\fP
.RE
.PP
.SH "Member Function Documentation"
.PP
.SS "bool QwtPlotDict::autoDelete () const"
\fBReturns:\fP
.RS 4
true if auto deletion is enabled
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBsetAutoDelete()\fP, \fBinsertItem()\fP
.RE
.PP
.SS "void QwtPlotDict::detachItems (intrtti = \fC\fBQwtPlotItem::Rtti_PlotItem\fP\fP, boolautoDelete = \fCtrue\fP)"
Detach items from the dictionary
.PP
\fBParameters:\fP
.RS 4
\fIrtti\fP In case of \fBQwtPlotItem::Rtti_PlotItem\fP detach all items otherwise only those items of the type rtti\&.
.br
\fIautoDelete\fP If true, delete all detached items
.RE
.PP
.SS "void QwtPlotDict::insertItem (\fBQwtPlotItem\fP *item)\fC [protected]\fP"
Insert a plot item
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP PlotItem
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBremoveItem()\fP
.RE
.PP
.SS "const QwtPlotItemList & QwtPlotDict::itemList () const"
.PP
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\&.
.PP
\fBReturns:\fP
.RS 4
List of all attached plot items\&.
.RE
.PP
.SS "QwtPlotItemList QwtPlotDict::itemList (intrtti) const"
\fBReturns:\fP
.RS 4
List of all attached plot items of a specific type\&.
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBQwtPlotItem::rtti()\fP
.RE
.PP
.SS "void QwtPlotDict::removeItem (\fBQwtPlotItem\fP *item)\fC [protected]\fP"
Remove a plot item
.PP
\fBParameters:\fP
.RS 4
\fIitem\fP PlotItem
.RE
.PP
\fBSee Also:\fP
.RS 4
\fBinsertItem()\fP
.RE
.PP
.SS "void QwtPlotDict::setAutoDelete (boolautoDelete)"
En/Disable Auto deletion
.PP
If Auto deletion is on all attached plot items will be deleted in the destructor of \fBQwtPlotDict\fP\&. The default value is on\&.
.PP
\fBSee Also:\fP
.RS 4
\fBautoDelete()\fP, \fBinsertItem()\fP
.RE
.PP
.SH "Author"
.PP
Generated automatically by Doxygen for Qwt User's Guide from the source code\&.