~ubuntu-branches/ubuntu/oneiric/qwt/oneiric-proposed

« back to all changes in this revision

Viewing changes to qwt-5.1.2/doc/man/man3/QwtPlotItem.3

  • Committer: Bazaar Package Importer
  • Author(s): Fathi Boudra
  • Date: 2009-04-12 23:25:58 UTC
  • mfrom: (1.1.4 upstream) (2.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090412232558-3bl06x785yr8xm8u
Tags: 5.1.2-1
* New upstream release.
* Bump compat/debhelper to 7.
* Bump Standards-Version to 3.8.1. No changes needed.
* Invert Maintainers and Uploaders field.
* Fix lintian warnings:
  - dh_clean _k deprecated.
  - missing dependency on libc.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
.TH "QwtPlotItem" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
 
2
.ad l
 
3
.nh
 
4
.SH NAME
 
5
QwtPlotItem \- 
 
6
.SH SYNOPSIS
 
7
.br
 
8
.PP
 
9
Inherits \fBQwtLegendItemManager\fP.
 
10
.PP
 
11
Inherited by \fBQwtPlotCurve\fP, \fBQwtPlotGrid\fP, \fBQwtPlotMarker\fP, \fBQwtPlotRasterItem\fP, \fBQwtPlotScaleItem\fP, and \fBQwtPlotSvgItem\fP.
 
12
.PP
 
13
.SH "Detailed Description"
 
14
.PP 
 
15
Base class for items on the plot canvas. 
 
16
.PP
 
17
Definition at line 31 of file qwt_plot_item.h.
 
18
.SS "Public Types"
 
19
 
 
20
.in +1c
 
21
.ti -1c
 
22
.RI "enum \fBRttiValues\fP { \fBRtti_PlotItem\fP =  0, \fBRtti_PlotGrid\fP, \fBRtti_PlotScale\fP, \fBRtti_PlotMarker\fP, \fBRtti_PlotCurve\fP, \fBRtti_PlotHistogram\fP, \fBRtti_PlotSpectrogram\fP, \fBRtti_PlotSVG\fP, \fBRtti_PlotUserItem\fP =  1000 }"
 
23
.br
 
24
.ti -1c
 
25
.RI "enum \fBItemAttribute\fP { \fBLegend\fP =  1, \fBAutoScale\fP =  2 }"
 
26
.br
 
27
.ti -1c
 
28
.RI "enum \fBRenderHint\fP { \fBRenderAntialiased\fP =  1 }"
 
29
.br
 
30
.in -1c
 
31
.SS "Public Member Functions"
 
32
 
 
33
.in +1c
 
34
.ti -1c
 
35
.RI "\fBQwtPlotItem\fP (const \fBQwtText\fP &title=\fBQwtText\fP())"
 
36
.br
 
37
.ti -1c
 
38
.RI "virtual \fB~QwtPlotItem\fP ()"
 
39
.br
 
40
.ti -1c
 
41
.RI "void \fBattach\fP (\fBQwtPlot\fP *plot)"
 
42
.br
 
43
.ti -1c
 
44
.RI "void \fBdetach\fP ()"
 
45
.br
 
46
.ti -1c
 
47
.RI "\fBQwtPlot\fP * \fBplot\fP () const"
 
48
.br
 
49
.ti -1c
 
50
.RI "void \fBsetTitle\fP (const QString &title)"
 
51
.br
 
52
.ti -1c
 
53
.RI "void \fBsetTitle\fP (const \fBQwtText\fP &title)"
 
54
.br
 
55
.ti -1c
 
56
.RI "const \fBQwtText\fP & \fBtitle\fP () const"
 
57
.br
 
58
.ti -1c
 
59
.RI "virtual int \fBrtti\fP () const"
 
60
.br
 
61
.ti -1c
 
62
.RI "void \fBsetItemAttribute\fP (\fBItemAttribute\fP, bool on=true)"
 
63
.br
 
64
.ti -1c
 
65
.RI "bool \fBtestItemAttribute\fP (\fBItemAttribute\fP) const "
 
66
.br
 
67
.ti -1c
 
68
.RI "void \fBsetRenderHint\fP (\fBRenderHint\fP, bool on=true)"
 
69
.br
 
70
.ti -1c
 
71
.RI "bool \fBtestRenderHint\fP (\fBRenderHint\fP) const"
 
72
.br
 
73
.ti -1c
 
74
.RI "double \fBz\fP () const"
 
75
.br
 
76
.ti -1c
 
77
.RI "void \fBsetZ\fP (double z)"
 
78
.br
 
79
.ti -1c
 
80
.RI "void \fBshow\fP ()"
 
81
.br
 
82
.ti -1c
 
83
.RI "void \fBhide\fP ()"
 
84
.br
 
85
.ti -1c
 
86
.RI "virtual void \fBsetVisible\fP (bool)"
 
87
.br
 
88
.ti -1c
 
89
.RI "bool \fBisVisible\fP () const"
 
90
.br
 
91
.ti -1c
 
92
.RI "void \fBsetAxis\fP (int xAxis, int yAxis)"
 
93
.br
 
94
.ti -1c
 
95
.RI "void \fBsetXAxis\fP (int axis)"
 
96
.br
 
97
.ti -1c
 
98
.RI "int \fBxAxis\fP () const"
 
99
.br
 
100
.ti -1c
 
101
.RI "void \fBsetYAxis\fP (int axis)"
 
102
.br
 
103
.ti -1c
 
104
.RI "int \fByAxis\fP () const"
 
105
.br
 
106
.ti -1c
 
107
.RI "virtual void \fBitemChanged\fP ()"
 
108
.br
 
109
.ti -1c
 
110
.RI "virtual void \fBdraw\fP (QPainter *painter, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &canvasRect) const=0"
 
111
.br
 
112
.ti -1c
 
113
.RI "virtual \fBQwtDoubleRect\fP \fBboundingRect\fP () const"
 
114
.br
 
115
.ti -1c
 
116
.RI "virtual void \fBupdateLegend\fP (\fBQwtLegend\fP *) const "
 
117
.br
 
118
.ti -1c
 
119
.RI "virtual void \fBupdateScaleDiv\fP (const \fBQwtScaleDiv\fP &, const \fBQwtScaleDiv\fP &)"
 
120
.br
 
121
.ti -1c
 
122
.RI "virtual QWidget * \fBlegendItem\fP () const"
 
123
.br
 
124
.ti -1c
 
125
.RI "\fBQwtDoubleRect\fP \fBscaleRect\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &) const"
 
126
.br
 
127
.ti -1c
 
128
.RI "QRect \fBpaintRect\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &) const"
 
129
.br
 
130
.ti -1c
 
131
.RI "QRect \fBtransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const \fBQwtDoubleRect\fP &) const"
 
132
.br
 
133
.ti -1c
 
134
.RI "\fBQwtDoubleRect\fP \fBinvTransform\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, const QRect &) const"
 
135
.br
 
136
.in -1c
 
137
.SH "Constructor & Destructor Documentation"
 
138
.PP 
 
139
.SS "QwtPlotItem::QwtPlotItem (const \fBQwtText\fP & title = \fC\fBQwtText\fP()\fP)\fC [explicit]\fP"
 
140
.PP
 
141
Constructor. 
 
142
.PP
 
143
Definition at line 48 of file qwt_plot_item.cpp.
 
144
.PP
 
145
References title().
 
146
.SS "QwtPlotItem::~QwtPlotItem ()\fC [virtual]\fP"
 
147
.PP
 
148
Destroy the \fBQwtPlotItem\fP. 
 
149
.PP
 
150
Definition at line 55 of file qwt_plot_item.cpp.
 
151
.PP
 
152
References attach().
 
153
.SH "Member Function Documentation"
 
154
.PP 
 
155
.SS "void QwtPlotItem::attach (\fBQwtPlot\fP * plot)"
 
156
.PP
 
157
Attach the item to a plot. 
 
158
.PP
 
159
This method will attach a \fBQwtPlotItem\fP to the \fBQwtPlot\fP argument. It will first detach the \fBQwtPlotItem\fP from any plot from a previous call to attach (if necessary). If a NULL argument is passed, it will detach from any \fBQwtPlot\fP it was attached to.
 
160
.PP
 
161
\fBSee also:\fP
 
162
.RS 4
 
163
\fBQwtPlotItem::detach()\fP 
 
164
.RE
 
165
.PP
 
166
 
 
167
.PP
 
168
Definition at line 71 of file qwt_plot_item.cpp.
 
169
.PP
 
170
References itemChanged(), legendItem(), and plot().
 
171
.PP
 
172
Referenced by ~QwtPlotItem().
 
173
.SS "void QwtPlotItem::detach ()\fC [inline]\fP"
 
174
.PP
 
175
This method detaches a \fBQwtPlotItem\fP from any \fBQwtPlot\fP it has been associated with. 
 
176
.PP
 
177
\fBdetach()\fP is equivalent to calling attach( NULL ) 
 
178
.PP
 
179
\fBSee also:\fP
 
180
.RS 4
 
181
\fBattach( QwtPlot* plot )\fP 
 
182
.RE
 
183
.PP
 
184
 
 
185
.PP
 
186
Definition at line 74 of file qwt_plot_item.h.
 
187
.SS "\fBQwtPlot\fP * QwtPlotItem::plot () const"
 
188
.PP
 
189
Return attached plot. 
 
190
.PP
 
191
Definition at line 122 of file qwt_plot_item.cpp.
 
192
.PP
 
193
Referenced by attach(), QwtPlotCurve::closestPoint(), QwtPlotCurve::draw(), QwtPlotScaleItem::setScaleDivFromAxis(), and QwtPlotScaleItem::setScaleDraw().
 
194
.SS "void QwtPlotItem::setTitle (const QString & title)"
 
195
.PP
 
196
Set a new title
 
197
.PP
 
198
\fBParameters:\fP
 
199
.RS 4
 
200
\fItitle\fP Title 
 
201
.RE
 
202
.PP
 
203
\fBSee also:\fP
 
204
.RS 4
 
205
\fBtitle()\fP 
 
206
.RE
 
207
.PP
 
208
 
 
209
.PP
 
210
Definition at line 166 of file qwt_plot_item.cpp.
 
211
.SS "void QwtPlotItem::setTitle (const \fBQwtText\fP & title)"
 
212
.PP
 
213
Set a new title
 
214
.PP
 
215
\fBParameters:\fP
 
216
.RS 4
 
217
\fItitle\fP Title 
 
218
.RE
 
219
.PP
 
220
\fBSee also:\fP
 
221
.RS 4
 
222
\fBtitle()\fP 
 
223
.RE
 
224
.PP
 
225
 
 
226
.PP
 
227
Definition at line 177 of file qwt_plot_item.cpp.
 
228
.PP
 
229
References itemChanged(), and title().
 
230
.SS "const \fBQwtText\fP & QwtPlotItem::title () const"
 
231
.PP
 
232
\fBReturns:\fP
 
233
.RS 4
 
234
Title of the item 
 
235
.RE
 
236
.PP
 
237
\fBSee also:\fP
 
238
.RS 4
 
239
\fBsetTitle()\fP 
 
240
.RE
 
241
.PP
 
242
 
 
243
.PP
 
244
Definition at line 190 of file qwt_plot_item.cpp.
 
245
.PP
 
246
Referenced by QwtPlotItem(), setTitle(), and QwtPlotCurve::updateLegend().
 
247
.SS "int QwtPlotItem::rtti () const\fC [virtual]\fP"
 
248
.PP
 
249
Return rtti for the specific class represented. \fBQwtPlotItem\fP is simply a virtual interface class, and base classes will implement this method with specific rtti values so a user can differentiate them.
 
250
.PP
 
251
The rtti value is useful for environments, where the runtime type information is disabled and it is not possible to do a dynamic_cast<...>.
 
252
.PP
 
253
\fBReturns:\fP
 
254
.RS 4
 
255
rtti value 
 
256
.RE
 
257
.PP
 
258
\fBSee also:\fP
 
259
.RS 4
 
260
\fBRttiValues\fP 
 
261
.RE
 
262
.PP
 
263
 
 
264
.PP
 
265
Reimplemented in \fBQwtPlotCurve\fP, \fBQwtPlotGrid\fP, \fBQwtPlotMarker\fP, \fBQwtPlotScaleItem\fP, \fBQwtPlotSpectrogram\fP, and \fBQwtPlotSvgItem\fP.
 
266
.PP
 
267
Definition at line 116 of file qwt_plot_item.cpp.
 
268
.PP
 
269
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
 
270
.SS "void QwtPlotItem::setItemAttribute (\fBItemAttribute\fP attribute, bool on = \fCtrue\fP)"
 
271
.PP
 
272
Toggle an item attribute
 
273
.PP
 
274
\fBParameters:\fP
 
275
.RS 4
 
276
\fIattribute\fP Attribute type 
 
277
.br
 
278
\fIon\fP true/false
 
279
.RE
 
280
.PP
 
281
\fBSee also:\fP
 
282
.RS 4
 
283
\fBtestItemAttribute()\fP, \fBItemAttribute\fP 
 
284
.RE
 
285
.PP
 
286
 
 
287
.PP
 
288
Definition at line 203 of file qwt_plot_item.cpp.
 
289
.PP
 
290
References itemChanged().
 
291
.PP
 
292
Referenced by QwtPlotCurve::init(), and QwtPlotSpectrogram::QwtPlotSpectrogram().
 
293
.SS "bool QwtPlotItem::testItemAttribute (\fBItemAttribute\fP attribute) const"
 
294
.PP
 
295
Test an item attribute
 
296
.PP
 
297
\fBParameters:\fP
 
298
.RS 4
 
299
\fIItemAttribute\fP Attribute type 
 
300
.RE
 
301
.PP
 
302
\fBReturns:\fP
 
303
.RS 4
 
304
true/false 
 
305
.RE
 
306
.PP
 
307
\fBSee also:\fP
 
308
.RS 4
 
309
\fBsetItemAttribute()\fP, \fBItemAttribute\fP 
 
310
.RE
 
311
.PP
 
312
 
 
313
.PP
 
314
Definition at line 223 of file qwt_plot_item.cpp.
 
315
.PP
 
316
Referenced by updateLegend().
 
317
.SS "void QwtPlotItem::setRenderHint (\fBRenderHint\fP hint, bool on = \fCtrue\fP)"
 
318
.PP
 
319
Toggle an render hint
 
320
.PP
 
321
\fBParameters:\fP
 
322
.RS 4
 
323
\fIhint\fP Render hint 
 
324
.br
 
325
\fIon\fP true/false
 
326
.RE
 
327
.PP
 
328
\fBSee also:\fP
 
329
.RS 4
 
330
\fBtestRenderHint()\fP, \fBRenderHint\fP 
 
331
.RE
 
332
.PP
 
333
 
 
334
.PP
 
335
Definition at line 238 of file qwt_plot_item.cpp.
 
336
.PP
 
337
References itemChanged().
 
338
.SS "bool QwtPlotItem::testRenderHint (\fBRenderHint\fP hint) const"
 
339
.PP
 
340
Test a render hint
 
341
.PP
 
342
\fBParameters:\fP
 
343
.RS 4
 
344
\fIhint\fP Render hint 
 
345
.RE
 
346
.PP
 
347
\fBReturns:\fP
 
348
.RS 4
 
349
true/false 
 
350
.RE
 
351
.PP
 
352
\fBSee also:\fP
 
353
.RS 4
 
354
\fBsetRenderHint()\fP, \fBRenderHint\fP 
 
355
.RE
 
356
.PP
 
357
 
 
358
.PP
 
359
Definition at line 258 of file qwt_plot_item.cpp.
 
360
.SS "double QwtPlotItem::z () const"
 
361
.PP
 
362
Plot items are painted in increasing z-order.
 
363
.PP
 
364
\fBReturns:\fP
 
365
.RS 4
 
366
\fBsetZ()\fP, \fBQwtPlotDict::itemList()\fP 
 
367
.RE
 
368
.PP
 
369
 
 
370
.PP
 
371
Definition at line 132 of file qwt_plot_item.cpp.
 
372
.SS "void QwtPlotItem::setZ (double z)"
 
373
.PP
 
374
Set the z value. 
 
375
.PP
 
376
Plot items are painted in increasing z-order.
 
377
.PP
 
378
\fBParameters:\fP
 
379
.RS 4
 
380
\fIz\fP Z-value 
 
381
.RE
 
382
.PP
 
383
\fBSee also:\fP
 
384
.RS 4
 
385
\fBz()\fP, \fBQwtPlotDict::itemList()\fP 
 
386
.RE
 
387
.PP
 
388
 
 
389
.PP
 
390
Definition at line 145 of file qwt_plot_item.cpp.
 
391
.PP
 
392
References itemChanged().
 
393
.PP
 
394
Referenced by QwtPlotCurve::init(), QwtPlotGrid::QwtPlotGrid(), QwtPlotMarker::QwtPlotMarker(), QwtPlotScaleItem::QwtPlotScaleItem(), and QwtPlotSpectrogram::QwtPlotSpectrogram().
 
395
.SS "void QwtPlotItem::show ()"
 
396
.PP
 
397
Show the item. 
 
398
.PP
 
399
Definition at line 266 of file qwt_plot_item.cpp.
 
400
.PP
 
401
References setVisible().
 
402
.SS "void QwtPlotItem::hide ()"
 
403
.PP
 
404
Hide the item. 
 
405
.PP
 
406
Definition at line 272 of file qwt_plot_item.cpp.
 
407
.PP
 
408
References setVisible().
 
409
.SS "void QwtPlotItem::setVisible (bool on)\fC [virtual]\fP"
 
410
.PP
 
411
Show/Hide the item
 
412
.PP
 
413
\fBParameters:\fP
 
414
.RS 4
 
415
\fIon\fP Show if true, otherwise hide 
 
416
.RE
 
417
.PP
 
418
\fBSee also:\fP
 
419
.RS 4
 
420
\fBisVisible()\fP, \fBshow()\fP, \fBhide()\fP 
 
421
.RE
 
422
.PP
 
423
 
 
424
.PP
 
425
Definition at line 283 of file qwt_plot_item.cpp.
 
426
.PP
 
427
References itemChanged().
 
428
.PP
 
429
Referenced by hide(), and show().
 
430
.SS "bool QwtPlotItem::isVisible () const"
 
431
.PP
 
432
\fBReturns:\fP
 
433
.RS 4
 
434
true if visible 
 
435
.RE
 
436
.PP
 
437
\fBSee also:\fP
 
438
.RS 4
 
439
\fBsetVisible()\fP, \fBshow()\fP, \fBhide()\fP 
 
440
.RE
 
441
.PP
 
442
 
 
443
.PP
 
444
Definition at line 296 of file qwt_plot_item.cpp.
 
445
.SS "void QwtPlotItem::setAxis (int xAxis, int yAxis)"
 
446
.PP
 
447
Set X and Y axis
 
448
.PP
 
449
The item will painted according to the coordinates its Axes.
 
450
.PP
 
451
\fBParameters:\fP
 
452
.RS 4
 
453
\fIxAxis\fP X Axis 
 
454
.br
 
455
\fIyAxis\fP Y Axis
 
456
.RE
 
457
.PP
 
458
\fBSee also:\fP
 
459
.RS 4
 
460
\fBsetXAxis()\fP, \fBsetYAxis()\fP, \fBxAxis()\fP, \fByAxis()\fP 
 
461
.RE
 
462
.PP
 
463
 
 
464
.PP
 
465
Definition at line 328 of file qwt_plot_item.cpp.
 
466
.PP
 
467
References itemChanged().
 
468
.SS "void QwtPlotItem::setXAxis (int axis)"
 
469
.PP
 
470
Set the X axis
 
471
.PP
 
472
The item will painted according to the coordinates its Axes.
 
473
.PP
 
474
\fBParameters:\fP
 
475
.RS 4
 
476
\fIaxis\fP X Axis 
 
477
.RE
 
478
.PP
 
479
\fBSee also:\fP
 
480
.RS 4
 
481
\fBsetAxis()\fP, \fBsetYAxis()\fP, \fBxAxis()\fP 
 
482
.RE
 
483
.PP
 
484
 
 
485
.PP
 
486
Definition at line 347 of file qwt_plot_item.cpp.
 
487
.PP
 
488
References itemChanged().
 
489
.SS "int QwtPlotItem::xAxis () const"
 
490
.PP
 
491
Return xAxis. 
 
492
.PP
 
493
Definition at line 374 of file qwt_plot_item.cpp.
 
494
.PP
 
495
Referenced by QwtPlotCurve::closestPoint(), QwtPlotCurve::draw(), QwtPlotScaleItem::setScaleDivFromAxis(), and QwtPlotScaleItem::setScaleDraw().
 
496
.SS "void QwtPlotItem::setYAxis (int axis)"
 
497
.PP
 
498
Set the Y axis
 
499
.PP
 
500
The item will painted according to the coordinates its Axes.
 
501
.PP
 
502
\fBParameters:\fP
 
503
.RS 4
 
504
\fIaxis\fP Y Axis 
 
505
.RE
 
506
.PP
 
507
\fBSee also:\fP
 
508
.RS 4
 
509
\fBsetAxis()\fP, \fBsetXAxis()\fP, \fByAxis()\fP 
 
510
.RE
 
511
.PP
 
512
 
 
513
.PP
 
514
Definition at line 364 of file qwt_plot_item.cpp.
 
515
.PP
 
516
References itemChanged().
 
517
.SS "int QwtPlotItem::yAxis () const"
 
518
.PP
 
519
Return yAxis. 
 
520
.PP
 
521
Definition at line 380 of file qwt_plot_item.cpp.
 
522
.PP
 
523
Referenced by QwtPlotCurve::closestPoint(), QwtPlotCurve::draw(), QwtPlotScaleItem::setScaleDivFromAxis(), and QwtPlotScaleItem::setScaleDraw().
 
524
.SS "void QwtPlotItem::itemChanged ()\fC [virtual]\fP"
 
525
.PP
 
526
Update the legend and call \fBQwtPlot::autoRefresh\fP for the parent plot.
 
527
.PP
 
528
\fBSee also:\fP
 
529
.RS 4
 
530
\fBupdateLegend()\fP 
 
531
.RE
 
532
.PP
 
533
 
 
534
.PP
 
535
Definition at line 307 of file qwt_plot_item.cpp.
 
536
.PP
 
537
References updateLegend().
 
538
.PP
 
539
Referenced by attach(), QwtPlotGrid::enableX(), QwtPlotGrid::enableXMin(), QwtPlotGrid::enableY(), QwtPlotGrid::enableYMin(), QwtPlotSvgItem::loadData(), QwtPlotSvgItem::loadFile(), QwtPlotScaleItem::setAlignment(), QwtPlotRasterItem::setAlpha(), setAxis(), QwtPlotCurve::setBaseline(), QwtPlotScaleItem::setBorderDistance(), QwtPlotCurve::setBrush(), QwtPlotRasterItem::setCachePolicy(), QwtPlotSpectrogram::setColorMap(), QwtPlotSpectrogram::setConrecAttribute(), QwtPlotSpectrogram::setContourLevels(), QwtPlotCurve::setCurveAttribute(), QwtPlotCurve::setCurveFitter(), QwtPlotCurve::setCurveType(), QwtPlotSpectrogram::setData(), QwtPlotCurve::setData(), QwtPlotSpectrogram::setDefaultContourPen(), QwtPlotSpectrogram::setDisplayMode(), QwtPlotScaleItem::setFont(), setItemAttribute(), QwtPlotMarker::setLabel(), QwtPlotMarker::setLinePen(), QwtPlotMarker::setLineStyle(), QwtPlotGrid::setMajPen(), QwtPlotGrid::setMinPen(), QwtPlotScaleItem::setPalette(), QwtPlotGrid::setPen(), QwtPlotCurve::setPen(), QwtPlotScaleItem::setPosition(), QwtPlotCurve::setRawData(), setRenderHint(), QwtPlotScaleItem::setScaleDivFromAxis(), QwtPlotScaleItem::setScaleDraw(), QwtPlotCurve::setStyle(), QwtPlotMarker::setSymbol(), QwtPlotCurve::setSymbol(), setTitle(), QwtPlotMarker::setValue(), setVisible(), setXAxis(), QwtPlotGrid::setXDiv(), setYAxis(), QwtPlotGrid::setYDiv(), and setZ().
 
540
.SS "virtual void QwtPlotItem::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect & canvasRect) const\fC [pure virtual]\fP"
 
541
.PP
 
542
Draw the item. 
 
543
.PP
 
544
\fBParameters:\fP
 
545
.RS 4
 
546
\fIpainter\fP Painter 
 
547
.br
 
548
\fIxMap\fP Maps x-values into pixel coordinates. 
 
549
.br
 
550
\fIyMap\fP Maps y-values into pixel coordinates. 
 
551
.br
 
552
\fIcanvasRect\fP Contents rect of the canvas in painter coordinates 
 
553
.RE
 
554
.PP
 
555
 
 
556
.PP
 
557
Implemented in \fBQwtPlotCurve\fP, \fBQwtPlotGrid\fP, \fBQwtPlotMarker\fP, \fBQwtPlotRasterItem\fP, \fBQwtPlotScaleItem\fP, \fBQwtPlotSpectrogram\fP, and \fBQwtPlotSvgItem\fP.
 
558
.SS "\fBQwtDoubleRect\fP QwtPlotItem::boundingRect () const\fC [virtual]\fP"
 
559
.PP
 
560
\fBReturns:\fP
 
561
.RS 4
 
562
An invalid bounding rect: QwtDoubleRect(1.0, 1.0, -2.0, -2.0) 
 
563
.RE
 
564
.PP
 
565
 
 
566
.PP
 
567
Reimplemented in \fBQwtPlotCurve\fP, \fBQwtPlotMarker\fP, \fBQwtPlotSpectrogram\fP, and \fBQwtPlotSvgItem\fP.
 
568
.PP
 
569
Definition at line 388 of file qwt_plot_item.cpp.
 
570
.PP
 
571
Referenced by QwtPlotRasterItem::draw(), QwtPlotCurve::maxXValue(), QwtPlotCurve::maxYValue(), QwtPlotCurve::minXValue(), and QwtPlotCurve::minYValue().
 
572
.SS "void QwtPlotItem::updateLegend (\fBQwtLegend\fP * legend) const\fC [virtual]\fP"
 
573
.PP
 
574
Update the widget that represents the item on the legend. 
 
575
.PP
 
576
\fBupdateLegend()\fP is called from \fBitemChanged()\fP to adopt the widget representing the item on the legend to its new configuration.
 
577
.PP
 
578
The default implementation is made for \fBQwtPlotCurve\fP and updates a QwtLegendItem(), but an item could be represented by any type of widget, by overloading \fBlegendItem()\fP and \fBupdateLegend()\fP.
 
579
.PP
 
580
\fBSee also:\fP
 
581
.RS 4
 
582
\fBlegendItem()\fP, \fBitemChanged()\fP, QwtLegend() 
 
583
.RE
 
584
.PP
 
585
 
 
586
.PP
 
587
Implements \fBQwtLegendItemManager\fP.
 
588
.PP
 
589
Reimplemented in \fBQwtPlotCurve\fP.
 
590
.PP
 
591
Definition at line 420 of file qwt_plot_item.cpp.
 
592
.PP
 
593
References QwtLegend::find(), QwtLegend::insert(), QwtLegend::itemMode(), legendItem(), and testItemAttribute().
 
594
.PP
 
595
Referenced by itemChanged(), and QwtPlotCurve::updateLegend().
 
596
.SS "void QwtPlotItem::updateScaleDiv (const \fBQwtScaleDiv\fP &, const \fBQwtScaleDiv\fP &)\fC [virtual]\fP"
 
597
.PP
 
598
Update the item to changes of the axes scale division. 
 
599
.PP
 
600
Update the item, when the axes of plot have changed. The default implementation does nothing, but items that depend on the scale division (like QwtPlotGrid()) have to reimplement \fBupdateScaleDiv()\fP
 
601
.PP
 
602
\fBParameters:\fP
 
603
.RS 4
 
604
\fIxScaleDiv\fP Scale division of the x-axis 
 
605
.br
 
606
\fIyScaleDiv\fP Scale division of the y-axis
 
607
.RE
 
608
.PP
 
609
\fBSee also:\fP
 
610
.RS 4
 
611
\fBQwtPlot::updateAxes()\fP 
 
612
.RE
 
613
.PP
 
614
 
 
615
.PP
 
616
Reimplemented in \fBQwtPlotGrid\fP, and \fBQwtPlotScaleItem\fP.
 
617
.PP
 
618
Definition at line 475 of file qwt_plot_item.cpp.
 
619
.SS "QWidget * QwtPlotItem::legendItem () const\fC [virtual]\fP"
 
620
.PP
 
621
Allocate the widget that represents the item on the legend. 
 
622
.PP
 
623
The default implementation is made for \fBQwtPlotCurve\fP and returns a QwtLegendItem(), but an item could be represented by any type of widget, by overloading \fBlegendItem()\fP and \fBupdateLegend()\fP.
 
624
.PP
 
625
\fBReturns:\fP
 
626
.RS 4
 
627
QwtLegendItem() 
 
628
.RE
 
629
.PP
 
630
\fBSee also:\fP
 
631
.RS 4
 
632
\fBupdateLegend()\fP QwtLegend() 
 
633
.RE
 
634
.PP
 
635
 
 
636
.PP
 
637
Implements \fBQwtLegendItemManager\fP.
 
638
.PP
 
639
Definition at line 403 of file qwt_plot_item.cpp.
 
640
.PP
 
641
Referenced by attach(), updateLegend(), and QwtPlotCurve::updateLegend().
 
642
.SS "\fBQwtDoubleRect\fP QwtPlotItem::scaleRect (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap) const"
 
643
.PP
 
644
Calculate the bounding scale rect of 2 maps. 
 
645
.PP
 
646
\fBParameters:\fP
 
647
.RS 4
 
648
\fIxMap\fP X map 
 
649
.br
 
650
\fIyMap\fP X map
 
651
.RE
 
652
.PP
 
653
\fBReturns:\fP
 
654
.RS 4
 
655
Bounding rect of the scale maps 
 
656
.RE
 
657
.PP
 
658
 
 
659
.PP
 
660
Definition at line 488 of file qwt_plot_item.cpp.
 
661
.PP
 
662
References QwtScaleMap::s1(), and QwtScaleMap::sDist().
 
663
.SS "QRect QwtPlotItem::paintRect (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap) const"
 
664
.PP
 
665
Calculate the bounding paint rect of 2 maps. 
 
666
.PP
 
667
\fBParameters:\fP
 
668
.RS 4
 
669
\fIxMap\fP X map 
 
670
.br
 
671
\fIyMap\fP X map
 
672
.RE
 
673
.PP
 
674
\fBReturns:\fP
 
675
.RS 4
 
676
Bounding rect of the scale maps 
 
677
.RE
 
678
.PP
 
679
 
 
680
.PP
 
681
Definition at line 503 of file qwt_plot_item.cpp.
 
682
.PP
 
683
References QwtScaleMap::p1(), and QwtScaleMap::pDist().
 
684
.PP
 
685
Referenced by QwtPlotRasterItem::draw().
 
686
.SS "QRect QwtPlotItem::transform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const \fBQwtDoubleRect\fP & rect) const"
 
687
.PP
 
688
Transform a rectangle
 
689
.PP
 
690
\fBParameters:\fP
 
691
.RS 4
 
692
\fIxMap\fP X map 
 
693
.br
 
694
\fIyMap\fP Y map 
 
695
.br
 
696
\fIrect\fP Rectangle in scale coordinates 
 
697
.RE
 
698
.PP
 
699
\fBReturns:\fP
 
700
.RS 4
 
701
Rectangle in paint coordinates
 
702
.RE
 
703
.PP
 
704
\fBSee also:\fP
 
705
.RS 4
 
706
\fBinvTransform()\fP 
 
707
.RE
 
708
.PP
 
709
 
 
710
.PP
 
711
Definition at line 522 of file qwt_plot_item.cpp.
 
712
.PP
 
713
References QwtScaleMap::transform().
 
714
.PP
 
715
Referenced by QwtPlotSvgItem::draw(), QwtPlotSpectrogram::draw(), QwtPlotRasterItem::draw(), and QwtPlotSpectrogram::renderImage().
 
716
.SS "\fBQwtDoubleRect\fP QwtPlotItem::invTransform (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect & rect) const"
 
717
.PP
 
718
Transform a rectangle from paint to scale coordinates
 
719
.PP
 
720
\fBParameters:\fP
 
721
.RS 4
 
722
\fIxMap\fP X map 
 
723
.br
 
724
\fIyMap\fP Y map 
 
725
.br
 
726
\fIrect\fP Rectangle in paint coordinates 
 
727
.RE
 
728
.PP
 
729
\fBReturns:\fP
 
730
.RS 4
 
731
Rectangle in scale coordinates 
 
732
.RE
 
733
.PP
 
734
\fBSee also:\fP
 
735
.RS 4
 
736
\fBtransform()\fP 
 
737
.RE
 
738
.PP
 
739
 
 
740
.PP
 
741
Definition at line 547 of file qwt_plot_item.cpp.
 
742
.PP
 
743
References QwtScaleMap::invTransform().
 
744
.PP
 
745
Referenced by QwtPlotSvgItem::draw(), QwtPlotSpectrogram::draw(), and QwtPlotRasterItem::draw().
 
746
 
 
747
.SH "Author"
 
748
.PP 
 
749
Generated automatically by Doxygen for Qwt User's Guide from the source code.