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

« back to all changes in this revision

Viewing changes to qwt-5.1.2/doc/man/man3/QwtPlot.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 "QwtPlot" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
 
2
.ad l
 
3
.nh
 
4
.SH NAME
 
5
QwtPlot \- 
 
6
.SH SYNOPSIS
 
7
.br
 
8
.PP
 
9
Inherits \fBQwtPlotDict\fP.
 
10
.PP
 
11
.SH "Detailed Description"
 
12
.PP 
 
13
A 2-D plotting widget. 
 
14
 
 
15
\fBQwtPlot\fP is a widget for plotting two-dimensional graphs. An unlimited number of plot items can be displayed on its canvas. Plot items might be curves (\fBQwtPlotCurve\fP), markers (\fBQwtPlotMarker\fP), the grid (\fBQwtPlotGrid\fP), or anything else derived from \fBQwtPlotItem\fP. A plot can have up to four axes, with each plot item attached to an x- and a y axis. The scales at the axes can be explicitely set (\fBQwtScaleDiv\fP), or are calculated from the plot items, using algorithms (\fBQwtScaleEngine\fP) which can be configured separately for each axis.
 
16
.PP
 
17
.PP
 
18
\fBExample\fP.RS 4
 
19
The following example shows (schematically) the most simple way to use \fBQwtPlot\fP. By default, only the left and bottom axes are visible and their scales are computed automatically. 
 
20
.PP
 
21
.nf
 
22
 
 
23
#include <qwt_plot.h>
 
24
#include <qwt_plot_curve.h>
 
25
 
 
26
QwtPlot *myPlot;
 
27
double x[100], y1[100], y2[100];        // x and y values
 
28
 
 
29
myPlot = new QwtPlot("Two Curves", parent);
 
30
 
 
31
// add curves
 
32
QwtPlotCurve *curve1 = new QwtPlotCurve("Curve 1");
 
33
QwtPlotCurve *curve2 = new QwtPlotCurve("Curve 2");
 
34
 
 
35
getSomeValues(x, y1, y2);
 
36
 
 
37
// copy the data into the curves
 
38
curve1->setData(x, y1, 100);
 
39
curve2->setData(x, y2, 100);
 
40
 
 
41
curve1->attach(myPlot);
 
42
curve2->attach(myPlot);
 
43
 
 
44
// finally, refresh the plot
 
45
myPlot->replot();
 
46
 
 
47
.fi
 
48
.PP
 
49
 
 
50
.RE
 
51
.PP
 
52
 
 
53
.PP
 
54
Definition at line 77 of file qwt_plot.h.
 
55
.SS "Public Types"
 
56
 
 
57
.in +1c
 
58
.ti -1c
 
59
.RI "enum \fBAxis\fP { \fByLeft\fP, \fByRight\fP, \fBxBottom\fP, \fBxTop\fP, \fBaxisCnt\fP }"
 
60
.br
 
61
.ti -1c
 
62
.RI "enum \fBLegendPosition\fP { \fBLeftLegend\fP, \fBRightLegend\fP, \fBBottomLegend\fP, \fBTopLegend\fP, \fBExternalLegend\fP }"
 
63
.br
 
64
.in -1c
 
65
.SS "Public Slots"
 
66
 
 
67
.in +1c
 
68
.ti -1c
 
69
.RI "virtual void \fBclear\fP ()"
 
70
.br
 
71
.ti -1c
 
72
.RI "virtual void \fBreplot\fP ()"
 
73
.br
 
74
.ti -1c
 
75
.RI "void \fBautoRefresh\fP ()"
 
76
.br
 
77
.in -1c
 
78
.SS "Signals"
 
79
 
 
80
.in +1c
 
81
.ti -1c
 
82
.RI "void \fBlegendClicked\fP (\fBQwtPlotItem\fP *plotItem)"
 
83
.br
 
84
.ti -1c
 
85
.RI "void \fBlegendChecked\fP (\fBQwtPlotItem\fP *plotItem, bool on)"
 
86
.br
 
87
.in -1c
 
88
.SS "Public Member Functions"
 
89
 
 
90
.in +1c
 
91
.ti -1c
 
92
.RI "\fBQwtPlot\fP (QWidget *=NULL)"
 
93
.br
 
94
.ti -1c
 
95
.RI "\fBQwtPlot\fP (const \fBQwtText\fP &title, QWidget *p=NULL)"
 
96
.br
 
97
.ti -1c
 
98
.RI "virtual \fB~QwtPlot\fP ()"
 
99
.br
 
100
.ti -1c
 
101
.RI "void \fBapplyProperties\fP (const QString &)"
 
102
.br
 
103
.ti -1c
 
104
.RI "QString \fBgrabProperties\fP () const"
 
105
.br
 
106
.ti -1c
 
107
.RI "void \fBsetAutoReplot\fP (bool tf=true)"
 
108
.br
 
109
.ti -1c
 
110
.RI "bool \fBautoReplot\fP () const"
 
111
.br
 
112
.ti -1c
 
113
.RI "void \fBprint\fP (QPaintDevice &p, const \fBQwtPlotPrintFilter\fP &=\fBQwtPlotPrintFilter\fP()) const"
 
114
.br
 
115
.ti -1c
 
116
.RI "virtual void \fBprint\fP (QPainter *, const QRect &rect, const \fBQwtPlotPrintFilter\fP &=\fBQwtPlotPrintFilter\fP()) const"
 
117
.br
 
118
.ti -1c
 
119
.RI "\fBQwtPlotLayout\fP * \fBplotLayout\fP ()"
 
120
.br
 
121
.ti -1c
 
122
.RI "const \fBQwtPlotLayout\fP * \fBplotLayout\fP () const"
 
123
.br
 
124
.ti -1c
 
125
.RI "void \fBsetMargin\fP (int margin)"
 
126
.br
 
127
.ti -1c
 
128
.RI "int \fBmargin\fP () const"
 
129
.br
 
130
.ti -1c
 
131
.RI "void \fBsetTitle\fP (const QString &)"
 
132
.br
 
133
.ti -1c
 
134
.RI "void \fBsetTitle\fP (const \fBQwtText\fP &t)"
 
135
.br
 
136
.ti -1c
 
137
.RI "\fBQwtText\fP \fBtitle\fP () const"
 
138
.br
 
139
.ti -1c
 
140
.RI "\fBQwtTextLabel\fP * \fBtitleLabel\fP ()"
 
141
.br
 
142
.ti -1c
 
143
.RI "const \fBQwtTextLabel\fP * \fBtitleLabel\fP () const"
 
144
.br
 
145
.ti -1c
 
146
.RI "\fBQwtPlotCanvas\fP * \fBcanvas\fP ()"
 
147
.br
 
148
.ti -1c
 
149
.RI "const \fBQwtPlotCanvas\fP * \fBcanvas\fP () const"
 
150
.br
 
151
.ti -1c
 
152
.RI "void \fBsetCanvasBackground\fP (const QColor &c)"
 
153
.br
 
154
.ti -1c
 
155
.RI "const QColor & \fBcanvasBackground\fP () const"
 
156
.br
 
157
.ti -1c
 
158
.RI "void \fBsetCanvasLineWidth\fP (int w)"
 
159
.br
 
160
.ti -1c
 
161
.RI "int \fBcanvasLineWidth\fP () const"
 
162
.br
 
163
.ti -1c
 
164
.RI "virtual \fBQwtScaleMap\fP \fBcanvasMap\fP (int axisId) const"
 
165
.br
 
166
.ti -1c
 
167
.RI "double \fBinvTransform\fP (int axisId, int pos) const "
 
168
.br
 
169
.ti -1c
 
170
.RI "int \fBtransform\fP (int axisId, double value) const"
 
171
.br
 
172
.ti -1c
 
173
.RI "\fBQwtScaleEngine\fP * \fBaxisScaleEngine\fP (int axisId)"
 
174
.br
 
175
.ti -1c
 
176
.RI "const \fBQwtScaleEngine\fP * \fBaxisScaleEngine\fP (int axisId) const"
 
177
.br
 
178
.ti -1c
 
179
.RI "void \fBsetAxisScaleEngine\fP (int axisId, \fBQwtScaleEngine\fP *)"
 
180
.br
 
181
.ti -1c
 
182
.RI "void \fBsetAxisAutoScale\fP (int axisId)"
 
183
.br
 
184
.ti -1c
 
185
.RI "bool \fBaxisAutoScale\fP (int axisId) const"
 
186
.br
 
187
.ti -1c
 
188
.RI "void \fBenableAxis\fP (int axisId, bool tf=true)"
 
189
.br
 
190
.ti -1c
 
191
.RI "bool \fBaxisEnabled\fP (int axisId) const"
 
192
.br
 
193
.ti -1c
 
194
.RI "void \fBsetAxisFont\fP (int axisId, const QFont &f)"
 
195
.br
 
196
.ti -1c
 
197
.RI "QFont \fBaxisFont\fP (int axisId) const"
 
198
.br
 
199
.ti -1c
 
200
.RI "void \fBsetAxisScale\fP (int axisId, double min, double max, double step=0)"
 
201
.br
 
202
.ti -1c
 
203
.RI "void \fBsetAxisScaleDiv\fP (int axisId, const \fBQwtScaleDiv\fP &)"
 
204
.br
 
205
.ti -1c
 
206
.RI "void \fBsetAxisScaleDraw\fP (int axisId, \fBQwtScaleDraw\fP *)"
 
207
.br
 
208
.ti -1c
 
209
.RI "double \fBaxisStepSize\fP (int axisId) const"
 
210
.br
 
211
.ti -1c
 
212
.RI "const \fBQwtScaleDiv\fP * \fBaxisScaleDiv\fP (int axisId) const"
 
213
.br
 
214
.ti -1c
 
215
.RI "\fBQwtScaleDiv\fP * \fBaxisScaleDiv\fP (int axisId)"
 
216
.br
 
217
.ti -1c
 
218
.RI "const \fBQwtScaleDraw\fP * \fBaxisScaleDraw\fP (int axisId) const"
 
219
.br
 
220
.ti -1c
 
221
.RI "\fBQwtScaleDraw\fP * \fBaxisScaleDraw\fP (int axisId)"
 
222
.br
 
223
.ti -1c
 
224
.RI "const \fBQwtScaleWidget\fP * \fBaxisWidget\fP (int axisId) const"
 
225
.br
 
226
.ti -1c
 
227
.RI "\fBQwtScaleWidget\fP * \fBaxisWidget\fP (int axisId)"
 
228
.br
 
229
.ti -1c
 
230
.RI "void \fBsetAxisLabelAlignment\fP (int axisId, Qt::Alignment)"
 
231
.br
 
232
.ti -1c
 
233
.RI "void \fBsetAxisLabelRotation\fP (int axisId, double rotation)"
 
234
.br
 
235
.ti -1c
 
236
.RI "void \fBsetAxisTitle\fP (int axisId, const QString &)"
 
237
.br
 
238
.ti -1c
 
239
.RI "void \fBsetAxisTitle\fP (int axisId, const \fBQwtText\fP &)"
 
240
.br
 
241
.ti -1c
 
242
.RI "\fBQwtText\fP \fBaxisTitle\fP (int axisId) const"
 
243
.br
 
244
.ti -1c
 
245
.RI "void \fBsetAxisMaxMinor\fP (int axisId, int maxMinor)"
 
246
.br
 
247
.ti -1c
 
248
.RI "int \fBaxisMaxMajor\fP (int axisId) const"
 
249
.br
 
250
.ti -1c
 
251
.RI "void \fBsetAxisMaxMajor\fP (int axisId, int maxMajor)"
 
252
.br
 
253
.ti -1c
 
254
.RI "int \fBaxisMaxMinor\fP (int axisId) const"
 
255
.br
 
256
.ti -1c
 
257
.RI "void \fBinsertLegend\fP (\fBQwtLegend\fP *, \fBLegendPosition\fP=QwtPlot::RightLegend, double ratio=-1.0)"
 
258
.br
 
259
.ti -1c
 
260
.RI "\fBQwtLegend\fP * \fBlegend\fP ()"
 
261
.br
 
262
.ti -1c
 
263
.RI "const \fBQwtLegend\fP * \fBlegend\fP () const"
 
264
.br
 
265
.ti -1c
 
266
.RI "virtual void \fBpolish\fP ()"
 
267
.br
 
268
.ti -1c
 
269
.RI "virtual QSize \fBsizeHint\fP () const"
 
270
.br
 
271
.ti -1c
 
272
.RI "virtual QSize \fBminimumSizeHint\fP () const"
 
273
.br
 
274
.ti -1c
 
275
.RI "virtual void \fBupdateLayout\fP ()"
 
276
.br
 
277
.ti -1c
 
278
.RI "virtual bool \fBevent\fP (QEvent *)"
 
279
.br
 
280
.in -1c
 
281
.SS "Protected Slots"
 
282
 
 
283
.in +1c
 
284
.ti -1c
 
285
.RI "virtual void \fBlegendItemClicked\fP ()"
 
286
.br
 
287
.ti -1c
 
288
.RI "virtual void \fBlegendItemChecked\fP (bool)"
 
289
.br
 
290
.in -1c
 
291
.SS "Protected Member Functions"
 
292
 
 
293
.in +1c
 
294
.ti -1c
 
295
.RI "virtual void \fBdrawCanvas\fP (QPainter *)"
 
296
.br
 
297
.ti -1c
 
298
.RI "virtual void \fBdrawItems\fP (QPainter *, const QRect &, const \fBQwtScaleMap\fP maps[axisCnt], const \fBQwtPlotPrintFilter\fP &) const"
 
299
.br
 
300
.ti -1c
 
301
.RI "virtual void \fBupdateTabOrder\fP ()"
 
302
.br
 
303
.ti -1c
 
304
.RI "void \fBupdateAxes\fP ()"
 
305
.br
 
306
.ti -1c
 
307
.RI "virtual void \fBresizeEvent\fP (QResizeEvent *e)"
 
308
.br
 
309
.ti -1c
 
310
.RI "virtual void \fBprintLegendItem\fP (QPainter *, const QWidget *, const QRect &) const"
 
311
.br
 
312
.ti -1c
 
313
.RI "virtual void \fBprintTitle\fP (QPainter *, const QRect &) const"
 
314
.br
 
315
.ti -1c
 
316
.RI "virtual void \fBprintScale\fP (QPainter *, int axisId, int startDist, int endDist, int baseDist, const QRect &) const"
 
317
.br
 
318
.ti -1c
 
319
.RI "virtual void \fBprintCanvas\fP (QPainter *, const QRect &boundingRect, const QRect &canvasRect, const \fBQwtScaleMap\fP maps[axisCnt], const \fBQwtPlotPrintFilter\fP &) const"
 
320
.br
 
321
.ti -1c
 
322
.RI "virtual void \fBprintLegend\fP (QPainter *, const QRect &) const"
 
323
.br
 
324
.in -1c
 
325
.SS "Static Protected Member Functions"
 
326
 
 
327
.in +1c
 
328
.ti -1c
 
329
.RI "static bool \fBaxisValid\fP (int axisId)"
 
330
.br
 
331
.in -1c
 
332
.SS "Friends"
 
333
 
 
334
.in +1c
 
335
.ti -1c
 
336
.RI "class \fBQwtPlotCanvas\fP"
 
337
.br
 
338
.in -1c
 
339
.SH "Member Enumeration Documentation"
 
340
.PP 
 
341
.SS "enum \fBQwtPlot::Axis\fP"
 
342
.PP
 
343
Axis index. 
 
344
.PP
 
345
Definition at line 87 of file qwt_plot.h.
 
346
.SS "enum \fBQwtPlot::LegendPosition\fP"
 
347
.PP
 
348
Position of the legend, relative to the canvas. 
 
349
.PP
 
350
ExternalLegend means that only the content of the legend will be handled by \fBQwtPlot\fP, but not its geometry. This might be interesting if an application wants to have a legend in an external window. 
 
351
.PP
 
352
Definition at line 105 of file qwt_plot.h.
 
353
.SH "Constructor & Destructor Documentation"
 
354
.PP 
 
355
.SS "QwtPlot::QwtPlot (QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
 
356
.PP
 
357
Constructor. 
 
358
.PP
 
359
\fBParameters:\fP
 
360
.RS 4
 
361
\fIparent\fP Parent widget 
 
362
.RE
 
363
.PP
 
364
 
 
365
.PP
 
366
Definition at line 52 of file qwt_plot.cpp.
 
367
.SS "QwtPlot::QwtPlot (const \fBQwtText\fP & title, QWidget * parent = \fCNULL\fP)\fC [explicit]\fP"
 
368
.PP
 
369
Constructor. 
 
370
.PP
 
371
\fBParameters:\fP
 
372
.RS 4
 
373
\fItitle\fP Title text 
 
374
.br
 
375
\fIparent\fP Parent widget 
 
376
.RE
 
377
.PP
 
378
 
 
379
.PP
 
380
Definition at line 63 of file qwt_plot.cpp.
 
381
.PP
 
382
References title().
 
383
.SS "QwtPlot::~QwtPlot ()\fC [virtual]\fP"
 
384
.PP
 
385
Destructor. 
 
386
.PP
 
387
Definition at line 84 of file qwt_plot.cpp.
 
388
.PP
 
389
References QwtPlotDict::autoDelete(), and QwtPlotDict::detachItems().
 
390
.SH "Member Function Documentation"
 
391
.PP 
 
392
.SS "void QwtPlot::setAutoReplot (bool tf = \fCtrue\fP)"
 
393
.PP
 
394
Set or reset the autoReplot option. 
 
395
.PP
 
396
If the autoReplot option is set, the plot will be updated implicitly by manipulating member functions. Since this may be time-consuming, it is recommended to leave this option switched off and call \fBreplot()\fP explicitly if necessary.
 
397
.PP
 
398
The autoReplot option is set to false by default, which means that the user has to call \fBreplot()\fP in order to make changes visible. 
 
399
.PP
 
400
\fBParameters:\fP
 
401
.RS 4
 
402
\fItf\fP \fCtrue\fP or \fCfalse\fP. Defaults to \fCtrue\fP. 
 
403
.RE
 
404
.PP
 
405
\fBSee also:\fP
 
406
.RS 4
 
407
\fBreplot()\fP 
 
408
.RE
 
409
.PP
 
410
 
 
411
.PP
 
412
Definition at line 184 of file qwt_plot.cpp.
 
413
.PP
 
414
Referenced by QwtPlotPrintFilter::apply(), QwtPlotCanvas::drawContents(), QwtPlotPanner::moveCanvas(), replot(), QwtPlotZoomer::rescale(), QwtPlotMagnifier::rescale(), and QwtPlotPrintFilter::reset().
 
415
.SS "bool QwtPlot::autoReplot () const"
 
416
.PP
 
417
\fBReturns:\fP
 
418
.RS 4
 
419
true if the autoReplot option is set. 
 
420
.RE
 
421
.PP
 
422
 
 
423
.PP
 
424
Definition at line 190 of file qwt_plot.cpp.
 
425
.PP
 
426
Referenced by QwtPlotPrintFilter::apply(), QwtPlotCanvas::drawContents(), QwtPlotPanner::moveCanvas(), replot(), QwtPlotZoomer::rescale(), QwtPlotMagnifier::rescale(), and QwtPlotPrintFilter::reset().
 
427
.SS "void QwtPlot::print (QPaintDevice & paintDev, const \fBQwtPlotPrintFilter\fP & pfilter = \fC\fBQwtPlotPrintFilter\fP()\fP) const"
 
428
.PP
 
429
Print the plot to a \fCQPaintDevice\fP (\fCQPrinter\fP) This function prints the contents of a \fBQwtPlot\fP instance to \fCQPaintDevice\fP object. The size is derived from its device metrics. 
 
430
.PP
 
431
\fBParameters:\fP
 
432
.RS 4
 
433
\fIpaintDev\fP device to paint on, often a printer 
 
434
.br
 
435
\fIpfilter\fP print filter 
 
436
.RE
 
437
.PP
 
438
\fBSee also:\fP
 
439
.RS 4
 
440
\fBQwtPlot::print\fP 
 
441
.PP
 
442
\fBQwtPlotPrintFilter\fP 
 
443
.RE
 
444
.PP
 
445
 
 
446
.PP
 
447
Definition at line 43 of file qwt_plot_print.cpp.
 
448
.SS "void QwtPlot::print (QPainter * painter, const QRect & plotRect, const \fBQwtPlotPrintFilter\fP & pfilter = \fC\fBQwtPlotPrintFilter\fP()\fP) const\fC [virtual]\fP"
 
449
.PP
 
450
Paint the plot into a given rectangle. Paint the contents of a \fBQwtPlot\fP instance into a given rectangle. 
 
451
.PP
 
452
\fBParameters:\fP
 
453
.RS 4
 
454
\fIpainter\fP Painter 
 
455
.br
 
456
\fIplotRect\fP Bounding rectangle 
 
457
.br
 
458
\fIpfilter\fP Print filter 
 
459
.RE
 
460
.PP
 
461
\fBSee also:\fP
 
462
.RS 4
 
463
\fBQwtPlotPrintFilter\fP 
 
464
.RE
 
465
.PP
 
466
 
 
467
.PP
 
468
Definition at line 73 of file qwt_plot_print.cpp.
 
469
.PP
 
470
References QwtPlotPrintFilter::apply(), axisEnabled(), axisScaleDiv(), axisScaleEngine(), axisWidget(), QwtPlotLayout::canvasMargin(), QwtPlotLayout::canvasRect(), QwtScaleWidget::endBorderDist(), QwtScaleDiv::hBound(), QwtLegend::isEmpty(), QwtScaleDiv::lBound(), legend(), margin(), QwtScaleWidget::margin(), QwtPainter::metricsMap(), QwtPlotPrintFilter::options(), plotLayout(), printCanvas(), printLegend(), printScale(), printTitle(), QwtPlotPrintFilter::reset(), QwtPainter::resetMetricsMap(), QwtPlotLayout::scaleRect(), QwtScaleWidget::setMargin(), QwtPainter::setMetricsMap(), QwtScaleMap::setPaintXInterval(), QwtScaleMap::setScaleInterval(), QwtScaleWidget::startBorderDist(), and titleLabel().
 
471
.SS "\fBQwtPlotLayout\fP * QwtPlot::plotLayout ()"
 
472
.PP
 
473
\fBReturns:\fP
 
474
.RS 4
 
475
the plot's title 
 
476
.RE
 
477
.PP
 
478
 
 
479
.PP
 
480
Definition at line 228 of file qwt_plot.cpp.
 
481
.PP
 
482
Referenced by canvasMap(), and print().
 
483
.SS "const \fBQwtPlotLayout\fP * QwtPlot::plotLayout () const"
 
484
.PP
 
485
\fBReturns:\fP
 
486
.RS 4
 
487
the plot's titel label. 
 
488
.RE
 
489
.PP
 
490
 
 
491
.PP
 
492
Definition at line 234 of file qwt_plot.cpp.
 
493
.SS "void QwtPlot::setMargin (int margin)"
 
494
.PP
 
495
Change the margin of the plot. The margin is the space around all components.
 
496
.PP
 
497
\fBParameters:\fP
 
498
.RS 4
 
499
\fImargin\fP new margin 
 
500
.RE
 
501
.PP
 
502
\fBSee also:\fP
 
503
.RS 4
 
504
\fBQwtPlotLayout::setMargin()\fP, \fBmargin()\fP, \fBplotLayout()\fP 
 
505
.RE
 
506
.PP
 
507
 
 
508
.PP
 
509
Definition at line 665 of file qwt_plot.cpp.
 
510
.PP
 
511
References updateLayout().
 
512
.SS "int QwtPlot::margin () const"
 
513
.PP
 
514
\fBReturns:\fP
 
515
.RS 4
 
516
margin 
 
517
.RE
 
518
.PP
 
519
\fBSee also:\fP
 
520
.RS 4
 
521
\fBsetMargin()\fP, \fBQwtPlotLayout::margin()\fP, \fBplotLayout()\fP 
 
522
.RE
 
523
.PP
 
524
 
 
525
.PP
 
526
Definition at line 681 of file qwt_plot.cpp.
 
527
.PP
 
528
Referenced by canvasMap(), and print().
 
529
.SS "void QwtPlot::setTitle (const QString & title)"
 
530
.PP
 
531
Change the plot's title 
 
532
.PP
 
533
\fBParameters:\fP
 
534
.RS 4
 
535
\fItitle\fP New title 
 
536
.RE
 
537
.PP
 
538
 
 
539
.PP
 
540
Definition at line 199 of file qwt_plot.cpp.
 
541
.PP
 
542
References updateLayout().
 
543
.PP
 
544
Referenced by applyProperties().
 
545
.SS "void QwtPlot::setTitle (const \fBQwtText\fP & title)"
 
546
.PP
 
547
Change the plot's title 
 
548
.PP
 
549
\fBParameters:\fP
 
550
.RS 4
 
551
\fItitle\fP New title 
 
552
.RE
 
553
.PP
 
554
 
 
555
.PP
 
556
Definition at line 212 of file qwt_plot.cpp.
 
557
.PP
 
558
References title(), and updateLayout().
 
559
.SS "\fBQwtText\fP QwtPlot::title () const"
 
560
.PP
 
561
\fBReturns:\fP
 
562
.RS 4
 
563
the plot's title 
 
564
.RE
 
565
.PP
 
566
 
 
567
.PP
 
568
Definition at line 222 of file qwt_plot.cpp.
 
569
.PP
 
570
Referenced by grabProperties(), QwtPlot(), setAxisTitle(), and setTitle().
 
571
.SS "\fBQwtTextLabel\fP * QwtPlot::titleLabel ()"
 
572
.PP
 
573
\fBReturns:\fP
 
574
.RS 4
 
575
the plot's titel label. 
 
576
.RE
 
577
.PP
 
578
 
 
579
.PP
 
580
Definition at line 240 of file qwt_plot.cpp.
 
581
.PP
 
582
Referenced by QwtPlotPrintFilter::apply(), print(), printTitle(), and QwtPlotPrintFilter::reset().
 
583
.SS "const \fBQwtTextLabel\fP * QwtPlot::titleLabel () const"
 
584
.PP
 
585
\fBReturns:\fP
 
586
.RS 4
 
587
the plot's titel label. 
 
588
.RE
 
589
.PP
 
590
 
 
591
.PP
 
592
Definition at line 248 of file qwt_plot.cpp.
 
593
.SS "\fBQwtPlotCanvas\fP * QwtPlot::canvas ()"
 
594
.PP
 
595
\fBReturns:\fP
 
596
.RS 4
 
597
the plot's canvas 
 
598
.RE
 
599
.PP
 
600
 
 
601
.PP
 
602
Definition at line 275 of file qwt_plot.cpp.
 
603
.PP
 
604
Referenced by canvasBackground(), canvasLineWidth(), QwtPlotCurve::draw(), QwtPlotLayout::minimumSizeHint(), printCanvas(), replot(), setCanvasBackground(), and setCanvasLineWidth().
 
605
.SS "const \fBQwtPlotCanvas\fP * QwtPlot::canvas () const"
 
606
.PP
 
607
\fBReturns:\fP
 
608
.RS 4
 
609
the plot's canvas 
 
610
.RE
 
611
.PP
 
612
 
 
613
.PP
 
614
Definition at line 283 of file qwt_plot.cpp.
 
615
.SS "void QwtPlot::setCanvasBackground (const QColor & c)"
 
616
.PP
 
617
Change the background of the plotting area. 
 
618
.PP
 
619
Sets c to QColorGroup::Background of all colorgroups of the palette of the canvas. Using \fBcanvas()\fP->setPalette() is a more powerful way to set these colors. 
 
620
.PP
 
621
\fBParameters:\fP
 
622
.RS 4
 
623
\fIc\fP new background color 
 
624
.RE
 
625
.PP
 
626
 
 
627
.PP
 
628
Definition at line 694 of file qwt_plot.cpp.
 
629
.PP
 
630
References canvas().
 
631
.PP
 
632
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
 
633
.SS "const QColor & QwtPlot::canvasBackground () const"
 
634
.PP
 
635
Nothing else than: \fBcanvas()\fP->palette().color( QPalette::Normal, QColorGroup::Background);
 
636
.PP
 
637
\fBReturns:\fP
 
638
.RS 4
 
639
the background color of the plotting area. 
 
640
.RE
 
641
.PP
 
642
 
 
643
.PP
 
644
Definition at line 716 of file qwt_plot.cpp.
 
645
.PP
 
646
References canvas().
 
647
.PP
 
648
Referenced by QwtPlotPrintFilter::apply().
 
649
.SS "void QwtPlot::setCanvasLineWidth (int w)"
 
650
.PP
 
651
Change the border width of the plotting area Nothing else than \fBcanvas()\fP->setLineWidth(w), left for compatibility only. 
 
652
.PP
 
653
\fBParameters:\fP
 
654
.RS 4
 
655
\fIw\fP new border width 
 
656
.RE
 
657
.PP
 
658
 
 
659
.PP
 
660
Definition at line 733 of file qwt_plot.cpp.
 
661
.PP
 
662
References canvas(), and updateLayout().
 
663
.SS "int QwtPlot::canvasLineWidth () const"
 
664
.PP
 
665
Nothing else than: \fBcanvas()\fP->lineWidth(), left for compatibility only. 
 
666
.PP
 
667
\fBReturns:\fP
 
668
.RS 4
 
669
the border width of the plotting area 
 
670
.RE
 
671
.PP
 
672
 
 
673
.PP
 
674
Definition at line 744 of file qwt_plot.cpp.
 
675
.PP
 
676
References canvas().
 
677
.SS "\fBQwtScaleMap\fP QwtPlot::canvasMap (int axisId) const\fC [virtual]\fP"
 
678
.PP
 
679
\fBParameters:\fP
 
680
.RS 4
 
681
\fIaxisId\fP Axis 
 
682
.RE
 
683
.PP
 
684
\fBReturns:\fP
 
685
.RS 4
 
686
Map for the axis on the canvas. With this map pixel coordinates can translated to plot coordinates and vice versa. 
 
687
.RE
 
688
.PP
 
689
\fBSee also:\fP
 
690
.RS 4
 
691
\fBQwtScaleMap\fP, \fBtransform()\fP, \fBinvTransform()\fP 
 
692
.RE
 
693
.PP
 
694
 
 
695
.PP
 
696
Definition at line 612 of file qwt_plot.cpp.
 
697
.PP
 
698
References axisEnabled(), axisScaleDiv(), axisScaleEngine(), axisWidget(), QwtPlotLayout::canvasMargin(), QwtScaleWidget::endBorderDist(), QwtScaleDiv::hBound(), QwtScaleDiv::lBound(), margin(), plotLayout(), QwtScaleMap::setPaintInterval(), QwtScaleMap::setScaleInterval(), QwtScaleMap::setTransformation(), and QwtScaleWidget::startBorderDist().
 
699
.PP
 
700
Referenced by QwtPlotCurve::closestPoint(), QwtPlotCurve::draw(), drawCanvas(), QwtPlotPicker::invTransform(), invTransform(), QwtPlotPanner::moveCanvas(), QwtPlotPicker::transform(), and transform().
 
701
.SS "double QwtPlot::invTransform (int axisId, int pos) const"
 
702
.PP
 
703
Transform the x or y coordinate of a position in the drawing region into a value. 
 
704
.PP
 
705
\fBParameters:\fP
 
706
.RS 4
 
707
\fIaxisId\fP axis index 
 
708
.br
 
709
\fIpos\fP position 
 
710
.RE
 
711
.PP
 
712
\fBWarning:\fP
 
713
.RS 4
 
714
The position can be an x or a y coordinate, depending on the specified axis. 
 
715
.RE
 
716
.PP
 
717
 
 
718
.PP
 
719
Definition at line 349 of file qwt_plot_axis.cpp.
 
720
.PP
 
721
References axisValid(), and canvasMap().
 
722
.SS "int QwtPlot::transform (int axisId, double value) const"
 
723
.PP
 
724
Transform a value into a coordinate in the plotting region. 
 
725
.PP
 
726
\fBParameters:\fP
 
727
.RS 4
 
728
\fIaxisId\fP axis index 
 
729
.br
 
730
\fIvalue\fP value 
 
731
.RE
 
732
.PP
 
733
\fBReturns:\fP
 
734
.RS 4
 
735
X or y coordinate in the plotting region corresponding to the value. 
 
736
.RE
 
737
.PP
 
738
 
 
739
.PP
 
740
Definition at line 365 of file qwt_plot_axis.cpp.
 
741
.PP
 
742
References axisValid(), and canvasMap().
 
743
.SS "\fBQwtScaleEngine\fP * QwtPlot::axisScaleEngine (int axisId)"
 
744
.PP
 
745
\fBReturns:\fP
 
746
.RS 4
 
747
Scale engine for a specific axis 
 
748
.RE
 
749
.PP
 
750
 
 
751
.PP
 
752
Definition at line 144 of file qwt_plot_axis.cpp.
 
753
.PP
 
754
References axisValid().
 
755
.PP
 
756
Referenced by canvasMap(), and print().
 
757
.SS "const \fBQwtScaleEngine\fP * QwtPlot::axisScaleEngine (int axisId) const"
 
758
.PP
 
759
\fBReturns:\fP
 
760
.RS 4
 
761
Scale engine for a specific axis 
 
762
.RE
 
763
.PP
 
764
 
 
765
.PP
 
766
Definition at line 153 of file qwt_plot_axis.cpp.
 
767
.PP
 
768
References axisValid().
 
769
.SS "void QwtPlot::setAxisScaleEngine (int axisId, \fBQwtScaleEngine\fP * scaleEngine)"
 
770
.PP
 
771
Change the scale engine for an axis
 
772
.PP
 
773
\fBParameters:\fP
 
774
.RS 4
 
775
\fIaxisId\fP axis index 
 
776
.br
 
777
\fIscaleEngine\fP Scale engine
 
778
.RE
 
779
.PP
 
780
\fBSee also:\fP
 
781
.RS 4
 
782
\fBaxisScaleEngine()\fP 
 
783
.RE
 
784
.PP
 
785
 
 
786
.PP
 
787
Definition at line 128 of file qwt_plot_axis.cpp.
 
788
.PP
 
789
References autoRefresh(), and axisValid().
 
790
.SS "void QwtPlot::setAxisAutoScale (int axisId)"
 
791
.PP
 
792
Enable autoscaling for a specified axis. 
 
793
.PP
 
794
This member function is used to switch back to autoscaling mode after a fixed scale has been set. Autoscaling is enabled by default.
 
795
.PP
 
796
\fBParameters:\fP
 
797
.RS 4
 
798
\fIaxisId\fP axis index 
 
799
.RE
 
800
.PP
 
801
\fBSee also:\fP
 
802
.RS 4
 
803
\fBQwtPlot::setAxisScale()\fP, \fBQwtPlot::setAxisScaleDiv()\fP 
 
804
.RE
 
805
.PP
 
806
 
 
807
.PP
 
808
Definition at line 396 of file qwt_plot_axis.cpp.
 
809
.PP
 
810
References autoRefresh(), and axisValid().
 
811
.SS "bool QwtPlot::axisAutoScale (int axisId) const"
 
812
.PP
 
813
\fBReturns:\fP
 
814
.RS 4
 
815
\fCtrue\fP if autoscaling is enabled 
 
816
.RE
 
817
.PP
 
818
\fBParameters:\fP
 
819
.RS 4
 
820
\fIaxisId\fP axis index 
 
821
.RE
 
822
.PP
 
823
 
 
824
.PP
 
825
Definition at line 164 of file qwt_plot_axis.cpp.
 
826
.PP
 
827
References axisValid().
 
828
.PP
 
829
Referenced by updateAxes().
 
830
.SS "void QwtPlot::enableAxis (int axisId, bool tf = \fCtrue\fP)"
 
831
.PP
 
832
Enable or disable a specified axis. 
 
833
.PP
 
834
When an axis is disabled, this only means that it is not visible on the screen. Curves, markers and can be attached to disabled axes, and transformation of screen coordinates into values works as normal.
 
835
.PP
 
836
Only xBottom and yLeft are enabled by default. 
 
837
.PP
 
838
\fBParameters:\fP
 
839
.RS 4
 
840
\fIaxisId\fP axis index 
 
841
.br
 
842
\fItf\fP \fCtrue\fP (enabled) or \fCfalse\fP (disabled) 
 
843
.RE
 
844
.PP
 
845
 
 
846
.PP
 
847
Definition at line 332 of file qwt_plot_axis.cpp.
 
848
.PP
 
849
References axisValid(), and updateLayout().
 
850
.SS "bool QwtPlot::axisEnabled (int axisId) const"
 
851
.PP
 
852
\fBReturns:\fP
 
853
.RS 4
 
854
\fCtrue\fP if a specified axis is enabled 
 
855
.RE
 
856
.PP
 
857
\fBParameters:\fP
 
858
.RS 4
 
859
\fIaxisId\fP axis index 
 
860
.RE
 
861
.PP
 
862
 
 
863
.PP
 
864
Definition at line 177 of file qwt_plot_axis.cpp.
 
865
.PP
 
866
References axisValid().
 
867
.PP
 
868
Referenced by canvasMap(), QwtPlotLayout::minimumSizeHint(), print(), printScale(), QwtPlotPicker::QwtPlotPicker(), sizeHint(), and updateLayout().
 
869
.SS "void QwtPlot::setAxisFont (int axisId, const QFont & f)"
 
870
.PP
 
871
Change the font of an axis. 
 
872
.PP
 
873
\fBParameters:\fP
 
874
.RS 4
 
875
\fIaxisId\fP axis index 
 
876
.br
 
877
\fIf\fP font 
 
878
.RE
 
879
.PP
 
880
\fBWarning:\fP
 
881
.RS 4
 
882
This function changes the font of the tick labels, not of the axis title. 
 
883
.RE
 
884
.PP
 
885
 
 
886
.PP
 
887
Definition at line 381 of file qwt_plot_axis.cpp.
 
888
.PP
 
889
References axisValid(), and axisWidget().
 
890
.SS "QFont QwtPlot::axisFont (int axisId) const"
 
891
.PP
 
892
\fBReturns:\fP
 
893
.RS 4
 
894
the font of the scale labels for a specified axis 
 
895
.RE
 
896
.PP
 
897
\fBParameters:\fP
 
898
.RS 4
 
899
\fIaxisId\fP axis index 
 
900
.RE
 
901
.PP
 
902
 
 
903
.PP
 
904
Definition at line 189 of file qwt_plot_axis.cpp.
 
905
.PP
 
906
References axisValid(), and axisWidget().
 
907
.SS "void QwtPlot::setAxisScale (int axisId, double min, double max, double stepSize = \fC0\fP)"
 
908
.PP
 
909
Disable autoscaling and specify a fixed scale for a selected axis. 
 
910
.PP
 
911
\fBParameters:\fP
 
912
.RS 4
 
913
\fIaxisId\fP axis index 
 
914
.br
 
915
\fImin\fP 
 
916
.br
 
917
\fImax\fP minimum and maximum of the scale 
 
918
.br
 
919
\fIstepSize\fP Major step size. If \fCstep == 0\fP, the step size is calculated automatically using the maxMajor setting. 
 
920
.RE
 
921
.PP
 
922
\fBSee also:\fP
 
923
.RS 4
 
924
\fBsetAxisMaxMajor()\fP, \fBsetAxisAutoScale()\fP 
 
925
.RE
 
926
.PP
 
927
 
 
928
.PP
 
929
Definition at line 414 of file qwt_plot_axis.cpp.
 
930
.PP
 
931
References autoRefresh(), and axisValid().
 
932
.PP
 
933
Referenced by QwtPlotPanner::moveCanvas(), QwtPlotZoomer::rescale(), and QwtPlotMagnifier::rescale().
 
934
.SS "void QwtPlot::setAxisScaleDiv (int axisId, const \fBQwtScaleDiv\fP & scaleDiv)"
 
935
.PP
 
936
Disable autoscaling and specify a fixed scale for a selected axis. 
 
937
.PP
 
938
\fBParameters:\fP
 
939
.RS 4
 
940
\fIaxisId\fP axis index 
 
941
.br
 
942
\fIscaleDiv\fP Scale division 
 
943
.RE
 
944
.PP
 
945
\fBSee also:\fP
 
946
.RS 4
 
947
\fBsetAxisScale()\fP, \fBsetAxisAutoScale()\fP 
 
948
.RE
 
949
.PP
 
950
 
 
951
.PP
 
952
Definition at line 437 of file qwt_plot_axis.cpp.
 
953
.PP
 
954
References autoRefresh(), and axisValid().
 
955
.SS "void QwtPlot::setAxisScaleDraw (int axisId, \fBQwtScaleDraw\fP * scaleDraw)"
 
956
.PP
 
957
Set a scale draw. 
 
958
.PP
 
959
\fBParameters:\fP
 
960
.RS 4
 
961
\fIaxisId\fP axis index 
 
962
.br
 
963
\fIscaleDraw\fP object responsible for drawing scales.
 
964
.RE
 
965
.PP
 
966
By passing scaleDraw it is possible to extend \fBQwtScaleDraw\fP functionality and let it take place in \fBQwtPlot\fP. Please note that scaleDraw has to be created with new and will be deleted by the corresponding QwtScale member ( like a child object ).
 
967
.PP
 
968
\fBSee also:\fP
 
969
.RS 4
 
970
\fBQwtScaleDraw\fP, \fBQwtScaleWidget\fP 
 
971
.RE
 
972
.PP
 
973
\fBWarning:\fP
 
974
.RS 4
 
975
The attributes of scaleDraw will be overwritten by those of the previous \fBQwtScaleDraw\fP. 
 
976
.RE
 
977
.PP
 
978
 
 
979
.PP
 
980
Definition at line 465 of file qwt_plot_axis.cpp.
 
981
.PP
 
982
References autoRefresh(), axisValid(), axisWidget(), and QwtScaleWidget::setScaleDraw().
 
983
.SS "double QwtPlot::axisStepSize (int axisId) const"
 
984
.PP
 
985
Return the step size parameter, that has been set in setAxisScale. This doesn't need to be the step size of the current scale.
 
986
.PP
 
987
\fBParameters:\fP
 
988
.RS 4
 
989
\fIaxisId\fP axis index 
 
990
.RE
 
991
.PP
 
992
\fBReturns:\fP
 
993
.RS 4
 
994
step size parameter value
 
995
.RE
 
996
.PP
 
997
\fBSee also:\fP
 
998
.RS 4
 
999
\fBsetAxisScale\fP 
 
1000
.RE
 
1001
.PP
 
1002
 
 
1003
.PP
 
1004
Definition at line 300 of file qwt_plot_axis.cpp.
 
1005
.PP
 
1006
References axisValid().
 
1007
.SS "const \fBQwtScaleDiv\fP * QwtPlot::axisScaleDiv (int axisId) const"
 
1008
.PP
 
1009
Return the scale division of a specified axis. 
 
1010
.PP
 
1011
axisScaleDiv(axisId)->lBound(), axisScaleDiv(axisId)->hBound() are the current limits of the axis scale.
 
1012
.PP
 
1013
\fBParameters:\fP
 
1014
.RS 4
 
1015
\fIaxisId\fP axis index 
 
1016
.RE
 
1017
.PP
 
1018
\fBReturns:\fP
 
1019
.RS 4
 
1020
Scale division
 
1021
.RE
 
1022
.PP
 
1023
\fBSee also:\fP
 
1024
.RS 4
 
1025
\fBQwtScaleDiv\fP, \fBsetAxisScaleDiv\fP 
 
1026
.RE
 
1027
.PP
 
1028
 
 
1029
.PP
 
1030
Definition at line 235 of file qwt_plot_axis.cpp.
 
1031
.PP
 
1032
References axisValid().
 
1033
.PP
 
1034
Referenced by canvasMap(), QwtPlotPanner::moveCanvas(), print(), QwtPlotZoomer::rescale(), QwtPlotMagnifier::rescale(), QwtPlotPicker::scaleRect(), QwtPlotScaleItem::setScaleDivFromAxis(), QwtPlotScaleItem::setScaleDraw(), and updateAxes().
 
1035
.SS "\fBQwtScaleDiv\fP * QwtPlot::axisScaleDiv (int axisId)"
 
1036
.PP
 
1037
Return the scale division of a specified axis. 
 
1038
.PP
 
1039
axisScaleDiv(axisId)->lBound(), axisScaleDiv(axisId)->hBound() are the current limits of the axis scale.
 
1040
.PP
 
1041
\fBParameters:\fP
 
1042
.RS 4
 
1043
\fIaxisId\fP axis index 
 
1044
.RE
 
1045
.PP
 
1046
\fBReturns:\fP
 
1047
.RS 4
 
1048
Scale division
 
1049
.RE
 
1050
.PP
 
1051
\fBSee also:\fP
 
1052
.RS 4
 
1053
\fBQwtScaleDiv\fP, \fBsetAxisScaleDiv\fP 
 
1054
.RE
 
1055
.PP
 
1056
 
 
1057
.PP
 
1058
Definition at line 254 of file qwt_plot_axis.cpp.
 
1059
.PP
 
1060
References axisValid().
 
1061
.SS "const \fBQwtScaleDraw\fP * QwtPlot::axisScaleDraw (int axisId) const"
 
1062
.PP
 
1063
\fBReturns:\fP
 
1064
.RS 4
 
1065
the scale draw of a specified axis 
 
1066
.RE
 
1067
.PP
 
1068
\fBParameters:\fP
 
1069
.RS 4
 
1070
\fIaxisId\fP axis index 
 
1071
.RE
 
1072
.PP
 
1073
\fBReturns:\fP
 
1074
.RS 4
 
1075
specified scaleDraw for axis, or NULL if axis is invalid. 
 
1076
.RE
 
1077
.PP
 
1078
\fBSee also:\fP
 
1079
.RS 4
 
1080
\fBQwtScaleDraw\fP 
 
1081
.RE
 
1082
.PP
 
1083
 
 
1084
.PP
 
1085
Definition at line 268 of file qwt_plot_axis.cpp.
 
1086
.PP
 
1087
References axisValid(), axisWidget(), and QwtScaleWidget::scaleDraw().
 
1088
.SS "\fBQwtScaleDraw\fP * QwtPlot::axisScaleDraw (int axisId)"
 
1089
.PP
 
1090
\fBReturns:\fP
 
1091
.RS 4
 
1092
the scale draw of a specified axis 
 
1093
.RE
 
1094
.PP
 
1095
\fBParameters:\fP
 
1096
.RS 4
 
1097
\fIaxisId\fP axis index 
 
1098
.RE
 
1099
.PP
 
1100
\fBReturns:\fP
 
1101
.RS 4
 
1102
specified scaleDraw for axis, or NULL if axis is invalid. 
 
1103
.RE
 
1104
.PP
 
1105
\fBSee also:\fP
 
1106
.RS 4
 
1107
\fBQwtScaleDraw\fP 
 
1108
.RE
 
1109
.PP
 
1110
 
 
1111
.PP
 
1112
Definition at line 282 of file qwt_plot_axis.cpp.
 
1113
.PP
 
1114
References axisValid(), axisWidget(), and QwtScaleWidget::scaleDraw().
 
1115
.SS "const \fBQwtScaleWidget\fP * QwtPlot::axisWidget (int axisId) const"
 
1116
.PP
 
1117
\fBReturns:\fP
 
1118
.RS 4
 
1119
specified axis, or NULL if axisId is invalid. 
 
1120
.RE
 
1121
.PP
 
1122
\fBParameters:\fP
 
1123
.RS 4
 
1124
\fIaxisId\fP axis index 
 
1125
.RE
 
1126
.PP
 
1127
 
 
1128
.PP
 
1129
Definition at line 100 of file qwt_plot_axis.cpp.
 
1130
.PP
 
1131
References axisValid().
 
1132
.PP
 
1133
Referenced by QwtPlotPrintFilter::apply(), axisFont(), axisScaleDraw(), axisTitle(), canvasMap(), QwtPlotLayout::minimumSizeHint(), print(), printScale(), QwtPlotPrintFilter::reset(), setAxisFont(), setAxisLabelRotation(), setAxisScaleDraw(), setAxisTitle(), sizeHint(), updateAxes(), and updateLayout().
 
1134
.SS "\fBQwtScaleWidget\fP * QwtPlot::axisWidget (int axisId)"
 
1135
.PP
 
1136
\fBReturns:\fP
 
1137
.RS 4
 
1138
specified axis, or NULL if axisId is invalid. 
 
1139
.RE
 
1140
.PP
 
1141
\fBParameters:\fP
 
1142
.RS 4
 
1143
\fIaxisId\fP axis index 
 
1144
.RE
 
1145
.PP
 
1146
 
 
1147
.PP
 
1148
Definition at line 112 of file qwt_plot_axis.cpp.
 
1149
.PP
 
1150
References axisValid().
 
1151
.SS "void QwtPlot::setAxisLabelAlignment (int axisId, Qt::Alignment alignment)"
 
1152
.PP
 
1153
Change the alignment of the tick labels 
 
1154
.PP
 
1155
\fBParameters:\fP
 
1156
.RS 4
 
1157
\fIaxisId\fP axis index 
 
1158
.br
 
1159
\fIalignment\fP Or'd Qt::AlignmentFlags <see qnamespace.h> 
 
1160
.RE
 
1161
.PP
 
1162
\fBSee also:\fP
 
1163
.RS 4
 
1164
\fBQwtScaleDraw::setLabelAlignment()\fP 
 
1165
.RE
 
1166
.PP
 
1167
 
 
1168
.PP
 
1169
Definition at line 483 of file qwt_plot_axis.cpp.
 
1170
.SS "void QwtPlot::setAxisLabelRotation (int axisId, double rotation)"
 
1171
.PP
 
1172
Rotate all tick labels 
 
1173
.PP
 
1174
\fBParameters:\fP
 
1175
.RS 4
 
1176
\fIaxisId\fP axis index 
 
1177
.br
 
1178
\fIrotation\fP Angle in degrees. When changing the label rotation, the label alignment might be adjusted too. 
 
1179
.RE
 
1180
.PP
 
1181
\fBSee also:\fP
 
1182
.RS 4
 
1183
\fBQwtScaleDraw::setLabelRotation()\fP, \fBQwtPlot::setAxisLabelAlignment\fP 
 
1184
.RE
 
1185
.PP
 
1186
 
 
1187
.PP
 
1188
Definition at line 497 of file qwt_plot_axis.cpp.
 
1189
.PP
 
1190
References axisValid(), axisWidget(), and QwtScaleWidget::setLabelRotation().
 
1191
.SS "void QwtPlot::setAxisTitle (int axisId, const QString & title)"
 
1192
.PP
 
1193
Change the title of a specified axis. 
 
1194
.PP
 
1195
\fBParameters:\fP
 
1196
.RS 4
 
1197
\fIaxisId\fP axis index 
 
1198
.br
 
1199
\fItitle\fP axis title 
 
1200
.RE
 
1201
.PP
 
1202
 
 
1203
.PP
 
1204
Definition at line 561 of file qwt_plot_axis.cpp.
 
1205
.PP
 
1206
References axisValid(), axisWidget(), and QwtScaleWidget::setTitle().
 
1207
.SS "void QwtPlot::setAxisTitle (int axisId, const \fBQwtText\fP & title)"
 
1208
.PP
 
1209
Change the title of a specified axis. 
 
1210
.PP
 
1211
\fBParameters:\fP
 
1212
.RS 4
 
1213
\fIaxisId\fP axis index 
 
1214
.br
 
1215
\fItitle\fP axis title 
 
1216
.RE
 
1217
.PP
 
1218
 
 
1219
.PP
 
1220
Definition at line 572 of file qwt_plot_axis.cpp.
 
1221
.PP
 
1222
References axisValid(), axisWidget(), QwtScaleWidget::setTitle(), and title().
 
1223
.SS "\fBQwtText\fP QwtPlot::axisTitle (int axisId) const"
 
1224
.PP
 
1225
\fBReturns:\fP
 
1226
.RS 4
 
1227
the title of a specified axis 
 
1228
.RE
 
1229
.PP
 
1230
\fBParameters:\fP
 
1231
.RS 4
 
1232
\fIaxisId\fP axis index 
 
1233
.RE
 
1234
.PP
 
1235
 
 
1236
.PP
 
1237
Definition at line 312 of file qwt_plot_axis.cpp.
 
1238
.PP
 
1239
References axisValid(), axisWidget(), and QwtScaleWidget::title().
 
1240
.SS "void QwtPlot::setAxisMaxMinor (int axisId, int maxMinor)"
 
1241
.PP
 
1242
Set the maximum number of minor scale intervals for a specified axis
 
1243
.PP
 
1244
\fBParameters:\fP
 
1245
.RS 4
 
1246
\fIaxisId\fP axis index 
 
1247
.br
 
1248
\fImaxMinor\fP maximum number of minor steps 
 
1249
.RE
 
1250
.PP
 
1251
\fBSee also:\fP
 
1252
.RS 4
 
1253
\fBaxisMaxMinor()\fP 
 
1254
.RE
 
1255
.PP
 
1256
 
 
1257
.PP
 
1258
Definition at line 510 of file qwt_plot_axis.cpp.
 
1259
.PP
 
1260
References autoRefresh(), and axisValid().
 
1261
.SS "int QwtPlot::axisMaxMajor (int axisId) const"
 
1262
.PP
 
1263
\fBReturns:\fP
 
1264
.RS 4
 
1265
the maximum number of major ticks for a specified axis 
 
1266
.RE
 
1267
.PP
 
1268
\fBParameters:\fP
 
1269
.RS 4
 
1270
\fIaxisId\fP axis index sa \fBsetAxisMaxMajor()\fP 
 
1271
.RE
 
1272
.PP
 
1273
 
 
1274
.PP
 
1275
Definition at line 203 of file qwt_plot_axis.cpp.
 
1276
.PP
 
1277
References axisValid().
 
1278
.SS "void QwtPlot::setAxisMaxMajor (int axisId, int maxMajor)"
 
1279
.PP
 
1280
Set the maximum number of major scale intervals for a specified axis
 
1281
.PP
 
1282
\fBParameters:\fP
 
1283
.RS 4
 
1284
\fIaxisId\fP axis index 
 
1285
.br
 
1286
\fImaxMajor\fP maximum number of major steps 
 
1287
.RE
 
1288
.PP
 
1289
\fBSee also:\fP
 
1290
.RS 4
 
1291
\fBaxisMaxMajor()\fP 
 
1292
.RE
 
1293
.PP
 
1294
 
 
1295
.PP
 
1296
Definition at line 537 of file qwt_plot_axis.cpp.
 
1297
.PP
 
1298
References autoRefresh(), and axisValid().
 
1299
.SS "int QwtPlot::axisMaxMinor (int axisId) const"
 
1300
.PP
 
1301
\fBReturns:\fP
 
1302
.RS 4
 
1303
the maximum number of minor ticks for a specified axis 
 
1304
.RE
 
1305
.PP
 
1306
\fBParameters:\fP
 
1307
.RS 4
 
1308
\fIaxisId\fP axis index sa \fBsetAxisMaxMinor()\fP 
 
1309
.RE
 
1310
.PP
 
1311
 
 
1312
.PP
 
1313
Definition at line 216 of file qwt_plot_axis.cpp.
 
1314
.PP
 
1315
References axisValid().
 
1316
.SS "void QwtPlot::insertLegend (\fBQwtLegend\fP * legend, \fBQwtPlot::LegendPosition\fP pos = \fCQwtPlot::RightLegend\fP, double ratio = \fC-1.0\fP)"
 
1317
.PP
 
1318
Insert a legend. 
 
1319
.PP
 
1320
If the position legend is \fCQwtPlot::LeftLegend\fP or \fCQwtPlot::RightLegend\fP the legend will be organized in one column from top to down. Otherwise the legend items will be placed in a table with a best fit number of columns from left to right.
 
1321
.PP
 
1322
If pos != QwtPlot::ExternalLegend the plot widget will become parent of the legend. It will be deleted when the plot is deleted, or another legend is set with \fBinsertLegend()\fP.
 
1323
.PP
 
1324
\fBParameters:\fP
 
1325
.RS 4
 
1326
\fIlegend\fP Legend 
 
1327
.br
 
1328
\fIpos\fP The legend's position. For top/left position the number of colums will be limited to 1, otherwise it will be set to unlimited.
 
1329
.br
 
1330
\fIratio\fP Ratio between legend and the bounding rect of title, canvas and axes. The legend will be shrinked if it would need more space than the given ratio. The ratio is limited to ]0.0 .. 1.0]. In case of <= 0.0 it will be reset to the default ratio. The default vertical/horizontal ratio is 0.33/0.5.
 
1331
.RE
 
1332
.PP
 
1333
\fBSee also:\fP
 
1334
.RS 4
 
1335
\fBlegend()\fP, \fBQwtPlotLayout::legendPosition()\fP, \fBQwtPlotLayout::setLegendPosition()\fP 
 
1336
.RE
 
1337
.PP
 
1338
 
 
1339
.PP
 
1340
Definition at line 822 of file qwt_plot.cpp.
 
1341
.PP
 
1342
References QwtPlotDict::itemList(), legend(), updateLayout(), and updateTabOrder().
 
1343
.SS "\fBQwtLegend\fP * QwtPlot::legend ()"
 
1344
.PP
 
1345
\fBReturns:\fP
 
1346
.RS 4
 
1347
the plot's legend 
 
1348
.RE
 
1349
.PP
 
1350
\fBSee also:\fP
 
1351
.RS 4
 
1352
\fBinsertLegend()\fP 
 
1353
.RE
 
1354
.PP
 
1355
 
 
1356
.PP
 
1357
Definition at line 257 of file qwt_plot.cpp.
 
1358
.PP
 
1359
Referenced by QwtPlotLayout::activate(), QwtPlotPrintFilter::apply(), insertLegend(), print(), printLegend(), and QwtPlotPrintFilter::reset().
 
1360
.SS "const \fBQwtLegend\fP * QwtPlot::legend () const"
 
1361
.PP
 
1362
\fBReturns:\fP
 
1363
.RS 4
 
1364
the plot's legend 
 
1365
.RE
 
1366
.PP
 
1367
\fBSee also:\fP
 
1368
.RS 4
 
1369
\fBinsertLegend()\fP 
 
1370
.RE
 
1371
.PP
 
1372
 
 
1373
.PP
 
1374
Definition at line 266 of file qwt_plot.cpp.
 
1375
.SS "void QwtPlot::polish ()\fC [virtual]\fP"
 
1376
.PP
 
1377
Polish. 
 
1378
.PP
 
1379
Definition at line 289 of file qwt_plot.cpp.
 
1380
.PP
 
1381
References replot().
 
1382
.PP
 
1383
Referenced by event().
 
1384
.SS "QSize QwtPlot::sizeHint () const\fC [virtual]\fP"
 
1385
.PP
 
1386
Return sizeHint 
 
1387
.PP
 
1388
\fBSee also:\fP
 
1389
.RS 4
 
1390
\fBminimumSizeHint()\fP 
 
1391
.RE
 
1392
.PP
 
1393
 
 
1394
.PP
 
1395
Definition at line 303 of file qwt_plot.cpp.
 
1396
.PP
 
1397
References axisEnabled(), axisWidget(), minimumSizeHint(), QwtScaleWidget::minimumSizeHint(), QwtAbstractScaleDraw::scaleDiv(), QwtScaleWidget::scaleDraw(), and QwtScaleDiv::ticks().
 
1398
.SS "QSize QwtPlot::minimumSizeHint () const\fC [virtual]\fP"
 
1399
.PP
 
1400
Return a minimum size hint. 
 
1401
.PP
 
1402
Definition at line 338 of file qwt_plot.cpp.
 
1403
.PP
 
1404
Referenced by sizeHint().
 
1405
.SS "void QwtPlot::updateLayout ()\fC [virtual]\fP"
 
1406
.PP
 
1407
Adjust plot content to its current size. 
 
1408
.PP
 
1409
\fBSee also:\fP
 
1410
.RS 4
 
1411
\fBresizeEvent()\fP 
 
1412
.RE
 
1413
.PP
 
1414
 
 
1415
.PP
 
1416
Definition at line 413 of file qwt_plot.cpp.
 
1417
.PP
 
1418
References axisEnabled(), and axisWidget().
 
1419
.PP
 
1420
Referenced by enableAxis(), event(), insertLegend(), resizeEvent(), setCanvasLineWidth(), setMargin(), and setTitle().
 
1421
.SS "bool QwtPlot::event (QEvent *)\fC [virtual]\fP"
 
1422
.PP
 
1423
Adds handling of layout requests. 
 
1424
.PP
 
1425
Definition at line 140 of file qwt_plot.cpp.
 
1426
.PP
 
1427
References polish(), and updateLayout().
 
1428
.SS "void QwtPlot::legendClicked (\fBQwtPlotItem\fP * plotItem)\fC [signal]\fP"
 
1429
.PP
 
1430
A signal which is emitted when the user has clicked on a legend item, which is in QwtLegend::ClickableItem mode.
 
1431
.PP
 
1432
\fBParameters:\fP
 
1433
.RS 4
 
1434
\fIplotItem\fP Corresponding plot item of the selected legend item
 
1435
.RE
 
1436
.PP
 
1437
\fBNote:\fP
 
1438
.RS 4
 
1439
clicks are disabled as default 
 
1440
.RE
 
1441
.PP
 
1442
\fBSee also:\fP
 
1443
.RS 4
 
1444
\fBQwtLegend::setItemMode\fP, \fBQwtLegend::itemMode\fP 
 
1445
.RE
 
1446
.PP
 
1447
 
 
1448
.PP
 
1449
Referenced by legendItemClicked().
 
1450
.SS "void QwtPlot::legendChecked (\fBQwtPlotItem\fP * plotItem, bool on)\fC [signal]\fP"
 
1451
.PP
 
1452
A signal which is emitted when the user has clicked on a legend item, which is in QwtLegend::CheckableItem mode
 
1453
.PP
 
1454
\fBParameters:\fP
 
1455
.RS 4
 
1456
\fIplotItem\fP Corresponding plot item of the selected legend item 
 
1457
.br
 
1458
\fIon\fP True when the legen item is checked
 
1459
.RE
 
1460
.PP
 
1461
\fBNote:\fP
 
1462
.RS 4
 
1463
clicks are disabled as default 
 
1464
.RE
 
1465
.PP
 
1466
\fBSee also:\fP
 
1467
.RS 4
 
1468
\fBQwtLegend::setItemMode\fP, \fBQwtLegend::itemMode\fP 
 
1469
.RE
 
1470
.PP
 
1471
 
 
1472
.PP
 
1473
Referenced by legendItemChecked().
 
1474
.SS "void QwtPlot::clear ()\fC [virtual, slot]\fP"
 
1475
.PP
 
1476
Remove all curves and markers. 
 
1477
.PP
 
1478
Definition at line 789 of file qwt_plot.cpp.
 
1479
.PP
 
1480
References QwtPlotDict::detachItems().
 
1481
.SS "void QwtPlot::replot ()\fC [virtual, slot]\fP"
 
1482
.PP
 
1483
Redraw the plot. 
 
1484
.PP
 
1485
If the autoReplot option is not set (which is the default) or if any curves are attached to raw data, the plot has to be refreshed explicitly in order to make changes visible.
 
1486
.PP
 
1487
\fBSee also:\fP
 
1488
.RS 4
 
1489
\fBsetAutoReplot()\fP 
 
1490
.RE
 
1491
.PP
 
1492
\fBWarning:\fP
 
1493
.RS 4
 
1494
Calls \fBcanvas()\fP->repaint, take care of infinite recursions 
 
1495
.RE
 
1496
.PP
 
1497
 
 
1498
.PP
 
1499
Definition at line 363 of file qwt_plot.cpp.
 
1500
.PP
 
1501
References autoReplot(), canvas(), QwtPlotCanvas::invalidatePaintCache(), setAutoReplot(), QwtPlotCanvas::testPaintAttribute(), and updateAxes().
 
1502
.PP
 
1503
Referenced by applyProperties(), autoRefresh(), QwtPlotPanner::moveCanvas(), polish(), QwtPlotZoomer::rescale(), QwtPlotMagnifier::rescale(), and QwtPlotZoomer::setZoomBase().
 
1504
.SS "void QwtPlot::autoRefresh ()\fC [slot]\fP"
 
1505
.PP
 
1506
Replots the plot if \fBQwtPlot::autoReplot()\fP is \fCtrue\fP. 
 
1507
.PP
 
1508
Definition at line 163 of file qwt_plot.cpp.
 
1509
.PP
 
1510
References replot().
 
1511
.PP
 
1512
Referenced by setAxisAutoScale(), setAxisMaxMajor(), setAxisMaxMinor(), setAxisScale(), setAxisScaleDiv(), setAxisScaleDraw(), and setAxisScaleEngine().
 
1513
.SS "void QwtPlot::legendItemClicked ()\fC [protected, virtual, slot]\fP"
 
1514
.PP
 
1515
Called internally when the legend has been clicked on. Emits a \fBlegendClicked()\fP signal. 
 
1516
.PP
 
1517
Definition at line 762 of file qwt_plot.cpp.
 
1518
.PP
 
1519
References legendClicked().
 
1520
.SS "void QwtPlot::legendItemChecked (bool on)\fC [protected, virtual, slot]\fP"
 
1521
.PP
 
1522
Called internally when the legend has been checked Emits a \fBlegendClicked()\fP signal. 
 
1523
.PP
 
1524
Definition at line 777 of file qwt_plot.cpp.
 
1525
.PP
 
1526
References legendChecked().
 
1527
.SS "bool QwtPlot::axisValid (int axisId)\fC [static, protected]\fP"
 
1528
.PP
 
1529
\fBReturns:\fP
 
1530
.RS 4
 
1531
\fCtrue\fP if the specified axis exists, otherwise \fCfalse\fP 
 
1532
.RE
 
1533
.PP
 
1534
\fBParameters:\fP
 
1535
.RS 4
 
1536
\fIaxisId\fP axis index 
 
1537
.RE
 
1538
.PP
 
1539
 
 
1540
.PP
 
1541
Definition at line 753 of file qwt_plot.cpp.
 
1542
.PP
 
1543
Referenced by axisAutoScale(), axisEnabled(), axisFont(), axisMaxMajor(), axisMaxMinor(), axisScaleDiv(), axisScaleDraw(), axisScaleEngine(), axisStepSize(), axisTitle(), axisWidget(), enableAxis(), invTransform(), setAxisAutoScale(), setAxisFont(), setAxisLabelRotation(), setAxisMaxMajor(), setAxisMaxMinor(), setAxisScale(), setAxisScaleDiv(), setAxisScaleDraw(), setAxisScaleEngine(), setAxisTitle(), and transform().
 
1544
.SS "void QwtPlot::drawCanvas (QPainter * painter)\fC [protected, virtual]\fP"
 
1545
.PP
 
1546
Redraw the canvas. 
 
1547
.PP
 
1548
\fBParameters:\fP
 
1549
.RS 4
 
1550
\fIpainter\fP Painter used for drawing
 
1551
.RE
 
1552
.PP
 
1553
\fBWarning:\fP
 
1554
.RS 4
 
1555
drawCanvas calls drawItems what is also used for printing. Applications that like to add individual plot items better overload \fBdrawItems()\fP 
 
1556
.RE
 
1557
.PP
 
1558
\fBSee also:\fP
 
1559
.RS 4
 
1560
\fBdrawItems()\fP 
 
1561
.RE
 
1562
.PP
 
1563
 
 
1564
.PP
 
1565
Definition at line 554 of file qwt_plot.cpp.
 
1566
.PP
 
1567
References canvasMap(), and drawItems().
 
1568
.SS "void QwtPlot::drawItems (QPainter * painter, const QRect & rect, const \fBQwtScaleMap\fP map[axisCnt], const \fBQwtPlotPrintFilter\fP & pfilter) const\fC [protected, virtual]\fP"
 
1569
.PP
 
1570
Redraw the canvas items. 
 
1571
.PP
 
1572
\fBParameters:\fP
 
1573
.RS 4
 
1574
\fIpainter\fP Painter used for drawing 
 
1575
.br
 
1576
\fIrect\fP Bounding rectangle where to paint 
 
1577
.br
 
1578
\fImap\fP QwtPlot::axisCnt maps, mapping between plot and paint device coordinates 
 
1579
.br
 
1580
\fIpfilter\fP Plot print filter 
 
1581
.RE
 
1582
.PP
 
1583
 
 
1584
.PP
 
1585
Definition at line 572 of file qwt_plot.cpp.
 
1586
.PP
 
1587
References QwtPlotDict::itemList(), and QwtPlotPrintFilter::options().
 
1588
.PP
 
1589
Referenced by drawCanvas(), and printCanvas().
 
1590
.SS "void QwtPlot::updateTabOrder ()\fC [protected, virtual]\fP"
 
1591
.PP
 
1592
Update the focus tab order
 
1593
.PP
 
1594
The order is changed so that the canvas will be in front of the first legend item, or behind the last legend item - depending on the position of the legend. 
 
1595
.PP
 
1596
Definition at line 477 of file qwt_plot.cpp.
 
1597
.PP
 
1598
Referenced by insertLegend().
 
1599
.SS "void QwtPlot::updateAxes ()\fC [protected]\fP"
 
1600
.PP
 
1601
Rebuild the scales. 
 
1602
.PP
 
1603
Definition at line 579 of file qwt_plot_axis.cpp.
 
1604
.PP
 
1605
References axisAutoScale(), axisScaleDiv(), axisWidget(), QwtScaleWidget::getBorderDistHint(), QwtDoubleInterval::isValid(), QwtPlotDict::itemList(), QwtDoubleInterval::maxValue(), QwtDoubleInterval::minValue(), QwtScaleWidget::setBorderDist(), and QwtScaleWidget::setScaleDiv().
 
1606
.PP
 
1607
Referenced by replot().
 
1608
.SS "void QwtPlot::resizeEvent (QResizeEvent * e)\fC [protected, virtual]\fP"
 
1609
.PP
 
1610
Resize and update internal layout. 
 
1611
.PP
 
1612
Definition at line 347 of file qwt_plot.cpp.
 
1613
.PP
 
1614
References updateLayout().
 
1615
.SS "void QwtPlot::printLegendItem (QPainter * painter, const QWidget * w, const QRect & rect) const\fC [protected, virtual]\fP"
 
1616
.PP
 
1617
Print the legend item into a given rectangle.
 
1618
.PP
 
1619
\fBParameters:\fP
 
1620
.RS 4
 
1621
\fIpainter\fP Painter 
 
1622
.br
 
1623
\fIw\fP Widget representing a legend item 
 
1624
.br
 
1625
\fIrect\fP Bounding rectangle 
 
1626
.RE
 
1627
.PP
 
1628
 
 
1629
.PP
 
1630
Definition at line 337 of file qwt_plot_print.cpp.
 
1631
.PP
 
1632
Referenced by printLegend().
 
1633
.SS "void QwtPlot::printTitle (QPainter * painter, const QRect & rect) const\fC [protected, virtual]\fP"
 
1634
.PP
 
1635
Print the title into a given rectangle.
 
1636
.PP
 
1637
\fBParameters:\fP
 
1638
.RS 4
 
1639
\fIpainter\fP Painter 
 
1640
.br
 
1641
\fIrect\fP Bounding rectangle 
 
1642
.RE
 
1643
.PP
 
1644
 
 
1645
.PP
 
1646
Definition at line 258 of file qwt_plot_print.cpp.
 
1647
.PP
 
1648
References QwtText::draw(), QwtTextLabel::text(), and titleLabel().
 
1649
.PP
 
1650
Referenced by print().
 
1651
.SS "void QwtPlot::printScale (QPainter * painter, int axisId, int startDist, int endDist, int baseDist, const QRect & rect) const\fC [protected, virtual]\fP"
 
1652
.PP
 
1653
Paint a scale into a given rectangle. Paint the scale into a given rectangle. 
 
1654
.PP
 
1655
\fBParameters:\fP
 
1656
.RS 4
 
1657
\fIpainter\fP Painter 
 
1658
.br
 
1659
\fIaxisId\fP Axis 
 
1660
.br
 
1661
\fIstartDist\fP Start border distance 
 
1662
.br
 
1663
\fIendDist\fP End border distance 
 
1664
.br
 
1665
\fIbaseDist\fP Base distance 
 
1666
.br
 
1667
\fIrect\fP Bounding rectangle 
 
1668
.RE
 
1669
.PP
 
1670
 
 
1671
.PP
 
1672
Definition at line 361 of file qwt_plot_print.cpp.
 
1673
.PP
 
1674
References axisEnabled(), axisWidget(), QwtScaleWidget::colorBarRect(), QwtScaleWidget::colorBarWidth(), QwtAbstractScaleDraw::draw(), QwtScaleWidget::drawColorBar(), QwtScaleWidget::drawTitle(), QwtScaleWidget::isColorBarEnabled(), QwtMetricsMap::layoutToScreen(), QwtScaleDraw::length(), QwtPainter::metricsMap(), QwtScaleDraw::move(), QwtScaleDraw::orientation(), QwtScaleWidget::penWidth(), QwtScaleDraw::pos(), QwtScaleWidget::scaleDraw(), QwtScaleDraw::setLength(), and QwtScaleWidget::spacing().
 
1675
.PP
 
1676
Referenced by print().
 
1677
.SS "void QwtPlot::printCanvas (QPainter * painter, const QRect & boundingRect, const QRect & canvasRect, const \fBQwtScaleMap\fP map[axisCnt], const \fBQwtPlotPrintFilter\fP & pfilter) const\fC [protected, virtual]\fP"
 
1678
.PP
 
1679
Print the canvas into a given rectangle.
 
1680
.PP
 
1681
\fBParameters:\fP
 
1682
.RS 4
 
1683
\fIpainter\fP Painter 
 
1684
.br
 
1685
\fImap\fP Maps mapping between plot and paint device coordinates 
 
1686
.br
 
1687
\fIboundingRect\fP Bounding rectangle 
 
1688
.br
 
1689
\fIcanvasRect\fP Canvas rectangle 
 
1690
.br
 
1691
\fIpfilter\fP Print filter 
 
1692
.RE
 
1693
.PP
 
1694
\fBSee also:\fP
 
1695
.RS 4
 
1696
\fBQwtPlotPrintFilter\fP 
 
1697
.RE
 
1698
.PP
 
1699
 
 
1700
.PP
 
1701
Definition at line 469 of file qwt_plot_print.cpp.
 
1702
.PP
 
1703
References canvas(), drawItems(), QwtPainter::drawRect(), QwtPainter::fillRect(), QwtPlotPrintFilter::options(), and QwtPainter::setClipRect().
 
1704
.PP
 
1705
Referenced by print().
 
1706
.SS "void QwtPlot::printLegend (QPainter * painter, const QRect & rect) const\fC [protected, virtual]\fP"
 
1707
.PP
 
1708
Print the legend into a given rectangle.
 
1709
.PP
 
1710
\fBParameters:\fP
 
1711
.RS 4
 
1712
\fIpainter\fP Painter 
 
1713
.br
 
1714
\fIrect\fP Bounding rectangle 
 
1715
.RE
 
1716
.PP
 
1717
 
 
1718
.PP
 
1719
Definition at line 282 of file qwt_plot_print.cpp.
 
1720
.PP
 
1721
References QwtDynGridLayout::columnsForWidth(), QwtLegend::contentsWidget(), QwtDynGridLayout::count(), QwtDynGridLayout::itemAt(), QwtDynGridLayout::layoutItems(), legend(), printLegendItem(), and QwtPainter::setClipRect().
 
1722
.PP
 
1723
Referenced by print().
 
1724
 
 
1725
.SH "Author"
 
1726
.PP 
 
1727
Generated automatically by Doxygen for Qwt User's Guide from the source code.