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

« back to all changes in this revision

Viewing changes to qwt-5.1.2/doc/man/man3/QwtPlotCurve.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 "QwtPlotCurve" 3 "22 Mar 2009" "Version 5.1.2" "Qwt User's Guide" \" -*- nroff -*-
 
2
.ad l
 
3
.nh
 
4
.SH NAME
 
5
QwtPlotCurve \- 
 
6
.SH SYNOPSIS
 
7
.br
 
8
.PP
 
9
Inherits \fBQwtPlotItem\fP.
 
10
.PP
 
11
.SH "Detailed Description"
 
12
.PP 
 
13
A class which draws curves. 
 
14
 
 
15
This class can be used to display data as a curve in the x-y plane. It supports different display styles, spline interpolation and symbols.
 
16
.PP
 
17
\fBUsage\fP.RS 4
 
18
 
 
19
.IP "\fBA. Assign curve properties \fP" 1c
 
20
When a curve is created, it is configured to draw black solid lines with QwtPlotCurve::Lines and no symbols. You can change this by calling \fBsetPen()\fP, \fBsetStyle()\fP and \fBsetSymbol()\fP. 
 
21
.IP "\fBB. Assign or change data. \fP" 1c
 
22
Data can be set in two ways:
 
23
.PD 0
 
24
 
 
25
.IP "\(bu" 2
 
26
\fBsetData()\fP is overloaded to initialize the x and y data by copying from different data structures with different kind of copy semantics. 
 
27
.IP "\(bu" 2
 
28
\fBsetRawData()\fP only stores the pointers and size information and is provided for backwards compatibility. This function is less safe (you must not delete the data while they are attached), but has been more efficient, and has been more convenient for dynamically changing data. Use of \fBsetData()\fP in combination with a problem-specific subclass of \fBQwtData\fP is always preferrable.
 
29
.PP
 
30
.IP "\fBC. Draw \fP" 1c
 
31
\fBdraw()\fP maps the data into pixel coordinates and paints them. 
 
32
.PP
 
33
.RE
 
34
.PP
 
35
\fBExample:\fP.RS 4
 
36
see examples/curvdemo
 
37
.RE
 
38
.PP
 
39
\fBSee also:\fP
 
40
.RS 4
 
41
\fBQwtData\fP, \fBQwtSymbol\fP, \fBQwtScaleMap\fP 
 
42
.RE
 
43
.PP
 
44
 
 
45
.PP
 
46
Definition at line 56 of file qwt_plot_curve.h.
 
47
.SS "Public Types"
 
48
 
 
49
.in +1c
 
50
.ti -1c
 
51
.RI "enum \fBCurveType\fP { \fBYfx\fP, \fBXfy\fP }"
 
52
.br
 
53
.ti -1c
 
54
.RI "enum \fBCurveStyle\fP { \fBNoCurve\fP, \fBLines\fP, \fBSticks\fP, \fBSteps\fP, \fBDots\fP, \fBUserCurve\fP =  100 }"
 
55
.br
 
56
.ti -1c
 
57
.RI "enum \fBCurveAttribute\fP { \fBInverted\fP =  1, \fBFitted\fP =  2 }"
 
58
.br
 
59
.ti -1c
 
60
.RI "enum \fBPaintAttribute\fP { \fBPaintCached\fP =  1, \fBPaintPacked\fP =  2, \fBPaintFiltered\fP =  1, \fBClipPolygons\fP =  2, \fBPaintUsingTextFont\fP =  1, \fBPaintUsingTextColor\fP =  2, \fBPaintBackground\fP =  4 }"
 
61
.br
 
62
.in -1c
 
63
.SS "Public Member Functions"
 
64
 
 
65
.in +1c
 
66
.ti -1c
 
67
.RI "\fBQwtPlotCurve\fP ()"
 
68
.br
 
69
.ti -1c
 
70
.RI "\fBQwtPlotCurve\fP (const \fBQwtText\fP &title)"
 
71
.br
 
72
.ti -1c
 
73
.RI "\fBQwtPlotCurve\fP (const QString &title)"
 
74
.br
 
75
.ti -1c
 
76
.RI "virtual \fB~QwtPlotCurve\fP ()"
 
77
.br
 
78
.ti -1c
 
79
.RI "virtual int \fBrtti\fP () const"
 
80
.br
 
81
.ti -1c
 
82
.RI "void \fBsetCurveType\fP (\fBCurveType\fP)"
 
83
.br
 
84
.ti -1c
 
85
.RI "\fBCurveType\fP \fBcurveType\fP () const"
 
86
.br
 
87
.ti -1c
 
88
.RI "void \fBsetPaintAttribute\fP (\fBPaintAttribute\fP, bool on=true)"
 
89
.br
 
90
.ti -1c
 
91
.RI "bool \fBtestPaintAttribute\fP (\fBPaintAttribute\fP) const"
 
92
.br
 
93
.ti -1c
 
94
.RI "void \fBsetRawData\fP (const double *x, const double *y, int size)"
 
95
.br
 
96
.ti -1c
 
97
.RI "void \fBsetData\fP (const double *xData, const double *yData, int size)"
 
98
.br
 
99
.ti -1c
 
100
.RI "void \fBsetData\fP (const QwtArray< double > &xData, const QwtArray< double > &yData)"
 
101
.br
 
102
.ti -1c
 
103
.RI "void \fBsetData\fP (const QPolygonF &data)"
 
104
.br
 
105
.ti -1c
 
106
.RI "void \fBsetData\fP (const \fBQwtData\fP &data)"
 
107
.br
 
108
.ti -1c
 
109
.RI "int \fBclosestPoint\fP (const QPoint &pos, double *dist=NULL) const"
 
110
.br
 
111
.ti -1c
 
112
.RI "\fBQwtData\fP & \fBdata\fP ()"
 
113
.br
 
114
.ti -1c
 
115
.RI "const \fBQwtData\fP & \fBdata\fP () const"
 
116
.br
 
117
.ti -1c
 
118
.RI "int \fBdataSize\fP () const"
 
119
.br
 
120
.ti -1c
 
121
.RI "double \fBx\fP (int i) const"
 
122
.br
 
123
.ti -1c
 
124
.RI "double \fBy\fP (int i) const"
 
125
.br
 
126
.ti -1c
 
127
.RI "virtual \fBQwtDoubleRect\fP \fBboundingRect\fP () const"
 
128
.br
 
129
.ti -1c
 
130
.RI "double \fBminXValue\fP () const"
 
131
.br
 
132
.ti -1c
 
133
.RI "double \fBmaxXValue\fP () const"
 
134
.br
 
135
.ti -1c
 
136
.RI "double \fBminYValue\fP () const"
 
137
.br
 
138
.ti -1c
 
139
.RI "double \fBmaxYValue\fP () const"
 
140
.br
 
141
.ti -1c
 
142
.RI "void \fBsetCurveAttribute\fP (\fBCurveAttribute\fP, bool on=true)"
 
143
.br
 
144
.ti -1c
 
145
.RI "bool \fBtestCurveAttribute\fP (\fBCurveAttribute\fP) const"
 
146
.br
 
147
.ti -1c
 
148
.RI "void \fBsetPen\fP (const QPen &)"
 
149
.br
 
150
.ti -1c
 
151
.RI "const QPen & \fBpen\fP () const"
 
152
.br
 
153
.ti -1c
 
154
.RI "void \fBsetBrush\fP (const QBrush &)"
 
155
.br
 
156
.ti -1c
 
157
.RI "const QBrush & \fBbrush\fP () const"
 
158
.br
 
159
.ti -1c
 
160
.RI "void \fBsetBaseline\fP (double ref)"
 
161
.br
 
162
.ti -1c
 
163
.RI "double \fBbaseline\fP () const"
 
164
.br
 
165
.ti -1c
 
166
.RI "void \fBsetStyle\fP (\fBCurveStyle\fP style)"
 
167
.br
 
168
.ti -1c
 
169
.RI "\fBCurveStyle\fP \fBstyle\fP () const"
 
170
.br
 
171
.ti -1c
 
172
.RI "void \fBsetSymbol\fP (const \fBQwtSymbol\fP &s)"
 
173
.br
 
174
.ti -1c
 
175
.RI "const \fBQwtSymbol\fP & \fBsymbol\fP () const"
 
176
.br
 
177
.ti -1c
 
178
.RI "void \fBsetCurveFitter\fP (\fBQwtCurveFitter\fP *)"
 
179
.br
 
180
.ti -1c
 
181
.RI "\fBQwtCurveFitter\fP * \fBcurveFitter\fP () const"
 
182
.br
 
183
.ti -1c
 
184
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &) const"
 
185
.br
 
186
.ti -1c
 
187
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
188
.br
 
189
.ti -1c
 
190
.RI "void \fBdraw\fP (int from, int to) const"
 
191
.br
 
192
.ti -1c
 
193
.RI "virtual void \fBupdateLegend\fP (\fBQwtLegend\fP *) const "
 
194
.br
 
195
.in -1c
 
196
.SS "Protected Member Functions"
 
197
 
 
198
.in +1c
 
199
.ti -1c
 
200
.RI "void \fBinit\fP ()"
 
201
.br
 
202
.ti -1c
 
203
.RI "virtual void \fBdrawCurve\fP (QPainter *p, int style, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
204
.br
 
205
.ti -1c
 
206
.RI "virtual void \fBdrawSymbols\fP (QPainter *p, const \fBQwtSymbol\fP &, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
207
.br
 
208
.ti -1c
 
209
.RI "void \fBdrawLines\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
210
.br
 
211
.ti -1c
 
212
.RI "void \fBdrawSticks\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
213
.br
 
214
.ti -1c
 
215
.RI "void \fBdrawDots\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
216
.br
 
217
.ti -1c
 
218
.RI "void \fBdrawSteps\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
 
219
.br
 
220
.ti -1c
 
221
.RI "void \fBfillCurve\fP (QPainter *, const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, QwtPolygon &) const"
 
222
.br
 
223
.ti -1c
 
224
.RI "void \fBclosePolyline\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, QwtPolygon &) const"
 
225
.br
 
226
.in -1c
 
227
.SH "Member Enumeration Documentation"
 
228
.PP 
 
229
.SS "enum \fBQwtPlotCurve::CurveStyle\fP"
 
230
.PP
 
231
Curve styles. 
 
232
.PP
 
233
\fBSee also:\fP
 
234
.RS 4
 
235
\fBsetStyle\fP 
 
236
.RE
 
237
.PP
 
238
 
 
239
.PP
 
240
Definition at line 69 of file qwt_plot_curve.h.
 
241
.SS "enum \fBQwtPlotCurve::CurveAttribute\fP"
 
242
.PP
 
243
Curve attributes. 
 
244
.PP
 
245
\fBSee also:\fP
 
246
.RS 4
 
247
\fBsetCurveAttribute\fP, \fBtestCurveAttribute\fP 
 
248
.RE
 
249
.PP
 
250
 
 
251
.PP
 
252
Definition at line 85 of file qwt_plot_curve.h.
 
253
.SS "enum \fBQwtPlotCurve::PaintAttribute\fP"
 
254
.PP
 
255
Paint attributes 
 
256
.PP
 
257
\fBSee also:\fP
 
258
.RS 4
 
259
\fBsetPaintAttribute\fP, \fBtestPaintAttribute\fP 
 
260
.RE
 
261
.PP
 
262
 
 
263
.PP
 
264
Definition at line 95 of file qwt_plot_curve.h.
 
265
.SH "Constructor & Destructor Documentation"
 
266
.PP 
 
267
.SS "QwtPlotCurve::QwtPlotCurve ()\fC [explicit]\fP"
 
268
.PP
 
269
Constructor. 
 
270
.PP
 
271
Definition at line 257 of file qwt_plot_curve.cpp.
 
272
.PP
 
273
References init().
 
274
.SS "QwtPlotCurve::QwtPlotCurve (const \fBQwtText\fP & title)\fC [explicit]\fP"
 
275
.PP
 
276
Constructor 
 
277
.PP
 
278
\fBParameters:\fP
 
279
.RS 4
 
280
\fItitle\fP title of the curve 
 
281
.RE
 
282
.PP
 
283
 
 
284
.PP
 
285
Definition at line 267 of file qwt_plot_curve.cpp.
 
286
.PP
 
287
References init().
 
288
.SS "QwtPlotCurve::QwtPlotCurve (const QString & title)\fC [explicit]\fP"
 
289
.PP
 
290
Constructor 
 
291
.PP
 
292
\fBParameters:\fP
 
293
.RS 4
 
294
\fItitle\fP title of the curve 
 
295
.RE
 
296
.PP
 
297
 
 
298
.PP
 
299
Definition at line 277 of file qwt_plot_curve.cpp.
 
300
.PP
 
301
References init().
 
302
.SS "QwtPlotCurve::~QwtPlotCurve ()\fC [virtual]\fP"
 
303
.PP
 
304
Destructor. 
 
305
.PP
 
306
Definition at line 284 of file qwt_plot_curve.cpp.
 
307
.SH "Member Function Documentation"
 
308
.PP 
 
309
.SS "int QwtPlotCurve::rtti () const\fC [virtual]\fP"
 
310
.PP
 
311
\fBReturns:\fP
 
312
.RS 4
 
313
QwtPlotItem::Rtti_PlotCurve 
 
314
.RE
 
315
.PP
 
316
 
 
317
.PP
 
318
Reimplemented from \fBQwtPlotItem\fP.
 
319
.PP
 
320
Definition at line 305 of file qwt_plot_curve.cpp.
 
321
.SS "void QwtPlotCurve::setCurveType (\fBCurveType\fP curveType)"
 
322
.PP
 
323
Assign the curve type
 
324
.PP
 
325
QwtPlotCurve::Yfx Draws y as a function of x (the default). The baseline is interpreted as a horizontal line with y = \fBbaseline()\fP. 
 
326
.PP
 
327
QwtPlotCurve::Xfy Draws x as a function of y. The baseline is interpreted as a vertical line with x = \fBbaseline()\fP.
 
328
.PP
 
329
The baseline is used for aligning the sticks, or filling the curve with a brush.
 
330
.PP
 
331
\fBSee also:\fP
 
332
.RS 4
 
333
\fBcurveType()\fP 
 
334
.RE
 
335
.PP
 
336
 
 
337
.PP
 
338
Definition at line 1130 of file qwt_plot_curve.cpp.
 
339
.PP
 
340
References QwtPlotItem::itemChanged().
 
341
.SS "\fBQwtPlotCurve::CurveType\fP QwtPlotCurve::curveType () const"
 
342
.PP
 
343
Return the curve type 
 
344
.PP
 
345
\fBSee also:\fP
 
346
.RS 4
 
347
\fBsetCurveType()\fP 
 
348
.RE
 
349
.PP
 
350
 
 
351
.PP
 
352
Definition at line 1143 of file qwt_plot_curve.cpp.
 
353
.SS "void QwtPlotCurve::setPaintAttribute (\fBPaintAttribute\fP attribute, bool on = \fCtrue\fP)"
 
354
.PP
 
355
Specify an attribute how to draw the curve. 
 
356
.PP
 
357
The attributes can be used to modify the drawing algorithm.
 
358
.PP
 
359
The following attributes are defined:
 
360
.IP "\fBPaintFiltered \fP" 1c
 
361
Tries to reduce the data that has to be painted, by sorting out duplicates, or paintings outside the visible area. Might have a notable impact on curves with many close points. Only a couple of very basic filtering algos are implemented. 
 
362
.IP "\fBClipPolygons \fP" 1c
 
363
Clip polygons before painting them. In situations, where points are far outside the visible area this might be a great improvement for the painting performance ( especially on Windows ). 
 
364
.PP
 
365
.PP
 
366
The default is, that no paint attributes are enabled.
 
367
.PP
 
368
\fBParameters:\fP
 
369
.RS 4
 
370
\fIattribute\fP Paint attribute 
 
371
.br
 
372
\fIon\fP On/Off /sa \fBtestPaintAttribute()\fP 
 
373
.RE
 
374
.PP
 
375
 
 
376
.PP
 
377
Definition at line 333 of file qwt_plot_curve.cpp.
 
378
.SS "bool QwtPlotCurve::testPaintAttribute (\fBPaintAttribute\fP attribute) const"
 
379
.PP
 
380
Return the current paint attributes. 
 
381
.PP
 
382
\fBSee also:\fP
 
383
.RS 4
 
384
\fBsetPaintAttribute\fP 
 
385
.RE
 
386
.PP
 
387
 
 
388
.PP
 
389
Definition at line 345 of file qwt_plot_curve.cpp.
 
390
.SS "void QwtPlotCurve::setRawData (const double * xData, const double * yData, int size)"
 
391
.PP
 
392
Initialize the data by pointing to memory blocks which are not managed by \fBQwtPlotCurve\fP. 
 
393
.PP
 
394
setRawData is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying \fBQwtCPointerData\fP class.
 
395
.PP
 
396
\fBParameters:\fP
 
397
.RS 4
 
398
\fIxData\fP pointer to x data 
 
399
.br
 
400
\fIyData\fP pointer to y data 
 
401
.br
 
402
\fIsize\fP size of x and y
 
403
.RE
 
404
.PP
 
405
\fBSee also:\fP
 
406
.RS 4
 
407
QwtCPointerData::setData. 
 
408
.RE
 
409
.PP
 
410
 
 
411
.PP
 
412
Definition at line 547 of file qwt_plot_curve.cpp.
 
413
.PP
 
414
References QwtPlotItem::itemChanged().
 
415
.SS "void QwtPlotCurve::setData (const double * xData, const double * yData, int size)"
 
416
.PP
 
417
Set data by copying x- and y-values from specified memory blocks. Contrary to setCurveRawData(), this function makes a 'deep copy' of the data.
 
418
.PP
 
419
\fBParameters:\fP
 
420
.RS 4
 
421
\fIxData\fP pointer to x values 
 
422
.br
 
423
\fIyData\fP pointer to y values 
 
424
.br
 
425
\fIsize\fP size of xData and yData
 
426
.RE
 
427
.PP
 
428
\fBSee also:\fP
 
429
.RS 4
 
430
\fBQwtCPointerData\fP 
 
431
.RE
 
432
.PP
 
433
 
 
434
.PP
 
435
Definition at line 481 of file qwt_plot_curve.cpp.
 
436
.PP
 
437
References QwtPlotItem::itemChanged().
 
438
.SS "void QwtPlotCurve::setData (const QwtArray< double > & xData, const QwtArray< double > & yData)"
 
439
.PP
 
440
Initialize data with x- and y-arrays (explicitly shared). 
 
441
.PP
 
442
\fBParameters:\fP
 
443
.RS 4
 
444
\fIxData\fP x data 
 
445
.br
 
446
\fIyData\fP y data
 
447
.RE
 
448
.PP
 
449
\fBSee also:\fP
 
450
.RS 4
 
451
\fBQwtArrayData\fP 
 
452
.RE
 
453
.PP
 
454
 
 
455
.PP
 
456
Definition at line 496 of file qwt_plot_curve.cpp.
 
457
.PP
 
458
References QwtPlotItem::itemChanged().
 
459
.SS "void QwtPlotCurve::setData (const QPolygonF & data)"
 
460
.PP
 
461
Initialize data with an array of points (explicitly shared).
 
462
.PP
 
463
\fBParameters:\fP
 
464
.RS 4
 
465
\fIdata\fP Data 
 
466
.RE
 
467
.PP
 
468
\fBSee also:\fP
 
469
.RS 4
 
470
\fBQwtPolygonFData\fP 
 
471
.RE
 
472
.PP
 
473
 
 
474
.PP
 
475
Definition at line 513 of file qwt_plot_curve.cpp.
 
476
.SS "void QwtPlotCurve::setData (const \fBQwtData\fP & data)"
 
477
.PP
 
478
Initialize data with a pointer to \fBQwtData\fP.
 
479
.PP
 
480
\fBParameters:\fP
 
481
.RS 4
 
482
\fIdata\fP Data 
 
483
.RE
 
484
.PP
 
485
\fBSee also:\fP
 
486
.RS 4
 
487
\fBQwtData::copy()\fP 
 
488
.RE
 
489
.PP
 
490
 
 
491
.PP
 
492
Definition at line 527 of file qwt_plot_curve.cpp.
 
493
.PP
 
494
References QwtData::copy(), data(), and QwtPlotItem::itemChanged().
 
495
.SS "\fBQwtData\fP & QwtPlotCurve::data ()\fC [inline]\fP"
 
496
.PP
 
497
\fBReturns:\fP
 
498
.RS 4
 
499
the the curve data 
 
500
.RE
 
501
.PP
 
502
 
 
503
.PP
 
504
Definition at line 217 of file qwt_plot_curve.h.
 
505
.PP
 
506
Referenced by setData().
 
507
.SS "const \fBQwtData\fP & QwtPlotCurve::data () const\fC [inline]\fP"
 
508
.PP
 
509
\fBReturns:\fP
 
510
.RS 4
 
511
the the curve data 
 
512
.RE
 
513
.PP
 
514
 
 
515
.PP
 
516
Definition at line 223 of file qwt_plot_curve.h.
 
517
.SS "int QwtPlotCurve::dataSize () const"
 
518
.PP
 
519
Return the size of the data arrays 
 
520
.PP
 
521
\fBSee also:\fP
 
522
.RS 4
 
523
\fBsetData()\fP 
 
524
.RE
 
525
.PP
 
526
 
 
527
.PP
 
528
Definition at line 1332 of file qwt_plot_curve.cpp.
 
529
.PP
 
530
References QwtData::size().
 
531
.PP
 
532
Referenced by closestPoint(), draw(), and drawCurve().
 
533
.SS "double QwtPlotCurve::x (int i) const\fC [inline]\fP"
 
534
.PP
 
535
\fBParameters:\fP
 
536
.RS 4
 
537
\fIi\fP index 
 
538
.RE
 
539
.PP
 
540
\fBReturns:\fP
 
541
.RS 4
 
542
x-value at position i 
 
543
.RE
 
544
.PP
 
545
 
 
546
.PP
 
547
Definition at line 232 of file qwt_plot_curve.h.
 
548
.PP
 
549
References QwtData::x().
 
550
.PP
 
551
Referenced by closestPoint(), drawDots(), drawLines(), drawSteps(), drawSticks(), and drawSymbols().
 
552
.SS "double QwtPlotCurve::y (int i) const\fC [inline]\fP"
 
553
.PP
 
554
\fBParameters:\fP
 
555
.RS 4
 
556
\fIi\fP index 
 
557
.RE
 
558
.PP
 
559
\fBReturns:\fP
 
560
.RS 4
 
561
y-value at position i 
 
562
.RE
 
563
.PP
 
564
 
 
565
.PP
 
566
Definition at line 241 of file qwt_plot_curve.h.
 
567
.PP
 
568
References QwtData::y().
 
569
.PP
 
570
Referenced by closestPoint(), drawDots(), drawLines(), drawSteps(), drawSticks(), and drawSymbols().
 
571
.SS "\fBQwtDoubleRect\fP QwtPlotCurve::boundingRect () const\fC [virtual]\fP"
 
572
.PP
 
573
Returns the bounding rectangle of the curve data. If there is no bounding rect, like for empty data the rectangle is invalid. 
 
574
.PP
 
575
\fBSee also:\fP
 
576
.RS 4
 
577
\fBQwtData::boundingRect()\fP, QwtDoubleRect::isValid() 
 
578
.RE
 
579
.PP
 
580
 
 
581
.PP
 
582
Reimplemented from \fBQwtPlotItem\fP.
 
583
.PP
 
584
Definition at line 560 of file qwt_plot_curve.cpp.
 
585
.PP
 
586
References QwtData::boundingRect().
 
587
.SS "double QwtPlotCurve::minXValue () const\fC [inline]\fP"
 
588
.PP
 
589
\fBboundingRect()\fP.left() 
 
590
.PP
 
591
Definition at line 137 of file qwt_plot_curve.h.
 
592
.PP
 
593
References QwtPlotItem::boundingRect().
 
594
.SS "double QwtPlotCurve::maxXValue () const\fC [inline]\fP"
 
595
.PP
 
596
\fBboundingRect()\fP.right() 
 
597
.PP
 
598
Definition at line 139 of file qwt_plot_curve.h.
 
599
.PP
 
600
References QwtPlotItem::boundingRect().
 
601
.SS "double QwtPlotCurve::minYValue () const\fC [inline]\fP"
 
602
.PP
 
603
\fBboundingRect()\fP.top() 
 
604
.PP
 
605
Definition at line 141 of file qwt_plot_curve.h.
 
606
.PP
 
607
References QwtPlotItem::boundingRect().
 
608
.SS "double QwtPlotCurve::maxYValue () const\fC [inline]\fP"
 
609
.PP
 
610
\fBboundingRect()\fP.bottom() 
 
611
.PP
 
612
Definition at line 143 of file qwt_plot_curve.h.
 
613
.PP
 
614
References QwtPlotItem::boundingRect().
 
615
.SS "void QwtPlotCurve::setCurveAttribute (\fBCurveAttribute\fP attribute, bool on = \fCtrue\fP)"
 
616
.PP
 
617
Specify an attribute for drawing the curve. 
 
618
.PP
 
619
The attributes can be used to modify the drawing style. The following attributes are defined:
 
620
.IP "\fBFitted \fP" 1c
 
621
For Lines only. A \fBQwtCurveFitter\fP tries to interpolate/smooth the curve, before it is painted. Note that curve fitting requires temorary memory for calculating coefficients and additional points. If painting in Fitted mode is slow it might be better to fit the points, before they are passed to \fBQwtPlotCurve\fP.  
 
622
.IP "\fBInverted \fP" 1c
 
623
For Steps only. Draws a step function from the right to the left.
 
624
.PP
 
625
.PP
 
626
\fBParameters:\fP
 
627
.RS 4
 
628
\fIattribute\fP Curve attribute 
 
629
.br
 
630
\fIon\fP On/Off
 
631
.RE
 
632
.PP
 
633
/sa \fBtestCurveAttribute()\fP, \fBsetCurveFitter()\fP 
 
634
.PP
 
635
Definition at line 1092 of file qwt_plot_curve.cpp.
 
636
.PP
 
637
References QwtPlotItem::itemChanged().
 
638
.SS "bool QwtPlotCurve::testCurveAttribute (\fBCurveAttribute\fP attribute) const"
 
639
.PP
 
640
\fBReturns:\fP
 
641
.RS 4
 
642
true, if attribute is enabled 
 
643
.RE
 
644
.PP
 
645
\fBSee also:\fP
 
646
.RS 4
 
647
\fBsetCurveAttribute()\fP 
 
648
.RE
 
649
.PP
 
650
 
 
651
.PP
 
652
Definition at line 1109 of file qwt_plot_curve.cpp.
 
653
.PP
 
654
Referenced by drawCurve().
 
655
.SS "void QwtPlotCurve::setPen (const QPen & pen)"
 
656
.PP
 
657
Assign a pen. 
 
658
.PP
 
659
\fBParameters:\fP
 
660
.RS 4
 
661
\fIpen\fP New pen 
 
662
.RE
 
663
.PP
 
664
\fBSee also:\fP
 
665
.RS 4
 
666
\fBpen()\fP, \fBbrush()\fP 
 
667
.RE
 
668
.PP
 
669
 
 
670
.PP
 
671
Definition at line 421 of file qwt_plot_curve.cpp.
 
672
.PP
 
673
References QwtPlotItem::itemChanged().
 
674
.PP
 
675
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
 
676
.SS "const QPen & QwtPlotCurve::pen () const"
 
677
.PP
 
678
Return the pen used to draw the lines. 
 
679
.PP
 
680
\fBSee also:\fP
 
681
.RS 4
 
682
\fBsetPen()\fP, \fBbrush()\fP 
 
683
.RE
 
684
.PP
 
685
 
 
686
.PP
 
687
Definition at line 434 of file qwt_plot_curve.cpp.
 
688
.PP
 
689
Referenced by QwtPlotPrintFilter::apply(), draw(), drawSymbols(), QwtPlotPrintFilter::reset(), and updateLegend().
 
690
.SS "void QwtPlotCurve::setBrush (const QBrush & brush)"
 
691
.PP
 
692
Assign a brush. In case of brush.style() != QBrush::NoBrush and \fBstyle()\fP != QwtPlotCurve::Sticks the area between the curve and the baseline will be filled. In case !brush.color().isValid() the area will be filled by pen.color(). The fill algorithm simply connects the first and the last curve point to the baseline. So the curve data has to be sorted (ascending or descending). 
 
693
.PP
 
694
\fBParameters:\fP
 
695
.RS 4
 
696
\fIbrush\fP New brush 
 
697
.RE
 
698
.PP
 
699
\fBSee also:\fP
 
700
.RS 4
 
701
\fBbrush()\fP, \fBsetBaseline()\fP, \fBbaseline()\fP 
 
702
.RE
 
703
.PP
 
704
 
 
705
.PP
 
706
Definition at line 451 of file qwt_plot_curve.cpp.
 
707
.PP
 
708
References QwtPlotItem::itemChanged().
 
709
.SS "const QBrush & QwtPlotCurve::brush () const"
 
710
.PP
 
711
Return the brush used to fill the area between lines and the baseline. 
 
712
.PP
 
713
\fBSee also:\fP
 
714
.RS 4
 
715
\fBsetBrush()\fP, \fBsetBaseline()\fP, \fBbaseline()\fP 
 
716
.RE
 
717
.PP
 
718
 
 
719
.PP
 
720
Definition at line 464 of file qwt_plot_curve.cpp.
 
721
.SS "void QwtPlotCurve::setBaseline (double reference)"
 
722
.PP
 
723
Set the value of the baseline. 
 
724
.PP
 
725
The baseline is needed for filling the curve with a brush or the Sticks drawing style. The default value is 0.0. The interpretation of the baseline depends on the CurveType. With QwtPlotCurve::Yfx, the baseline is interpreted as a horizontal line at y = \fBbaseline()\fP, with QwtPlotCurve::Yfy, it is interpreted as a vertical line at x = \fBbaseline()\fP. 
 
726
.PP
 
727
\fBParameters:\fP
 
728
.RS 4
 
729
\fIreference\fP baseline 
 
730
.RE
 
731
.PP
 
732
\fBSee also:\fP
 
733
.RS 4
 
734
\fBbaseline()\fP, \fBsetBrush()\fP, \fBsetStyle()\fP, \fBsetCurveType()\fP 
 
735
.RE
 
736
.PP
 
737
 
 
738
.PP
 
739
Definition at line 1310 of file qwt_plot_curve.cpp.
 
740
.PP
 
741
References QwtPlotItem::itemChanged().
 
742
.SS "double QwtPlotCurve::baseline () const"
 
743
.PP
 
744
Return the value of the baseline 
 
745
.PP
 
746
\fBSee also:\fP
 
747
.RS 4
 
748
\fBsetBaseline\fP 
 
749
.RE
 
750
.PP
 
751
 
 
752
.PP
 
753
Definition at line 1323 of file qwt_plot_curve.cpp.
 
754
.SS "void QwtPlotCurve::setStyle (\fBCurveStyle\fP style)"
 
755
.PP
 
756
Set the curve's drawing style. 
 
757
.PP
 
758
Valid styles are: 
 
759
.IP "\fBNoCurve \fP" 1c
 
760
Don't draw a curve. Note: This doesn't affect the symbol.  
 
761
.IP "\fBLines \fP" 1c
 
762
Connect the points with straight lines. The lines might be interpolated depending on the 'Fitted' option. Curve fitting can be configured using setCurveFitter. 
 
763
.IP "\fBSticks \fP" 1c
 
764
Draw vertical sticks from a baseline which is defined by \fBsetBaseline()\fP. 
 
765
.IP "\fBSteps \fP" 1c
 
766
Connect the points with a step function. The step function is drawn from the left to the right or vice versa, depending on the 'Inverted' option. 
 
767
.IP "\fBDots \fP" 1c
 
768
Draw dots at the locations of the data points. Note: This is different from a dotted line (see \fBsetPen()\fP). 
 
769
.IP "\fBUserCurve ... \fP" 1c
 
770
Styles >= UserCurve are reserved for derived classes of \fBQwtPlotCurve\fP that overload \fBdrawCurve()\fP with additional application specific curve types. 
 
771
.PP
 
772
\fBSee also:\fP
 
773
.RS 4
 
774
\fBstyle()\fP 
 
775
.RE
 
776
.PP
 
777
 
 
778
.PP
 
779
Definition at line 377 of file qwt_plot_curve.cpp.
 
780
.PP
 
781
References QwtPlotItem::itemChanged().
 
782
.SS "\fBQwtPlotCurve::CurveStyle\fP QwtPlotCurve::style () const"
 
783
.PP
 
784
Return the current style. 
 
785
.PP
 
786
\fBSee also:\fP
 
787
.RS 4
 
788
\fBsetStyle()\fP 
 
789
.RE
 
790
.PP
 
791
 
 
792
.PP
 
793
Definition at line 390 of file qwt_plot_curve.cpp.
 
794
.PP
 
795
Referenced by updateLegend().
 
796
.SS "void QwtPlotCurve::setSymbol (const \fBQwtSymbol\fP & symbol)"
 
797
.PP
 
798
Assign a symbol. 
 
799
.PP
 
800
\fBParameters:\fP
 
801
.RS 4
 
802
\fIsymbol\fP Symbol 
 
803
.RE
 
804
.PP
 
805
\fBSee also:\fP
 
806
.RS 4
 
807
\fBsymbol()\fP 
 
808
.RE
 
809
.PP
 
810
 
 
811
.PP
 
812
Definition at line 400 of file qwt_plot_curve.cpp.
 
813
.PP
 
814
References QwtSymbol::clone(), QwtPlotItem::itemChanged(), and symbol().
 
815
.PP
 
816
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
 
817
.SS "const \fBQwtSymbol\fP & QwtPlotCurve::symbol () const"
 
818
.PP
 
819
Return the current symbol. 
 
820
.PP
 
821
\fBSee also:\fP
 
822
.RS 4
 
823
\fBsetSymbol()\fP 
 
824
.RE
 
825
.PP
 
826
 
 
827
.PP
 
828
Definition at line 411 of file qwt_plot_curve.cpp.
 
829
.PP
 
830
Referenced by QwtPlotPrintFilter::apply(), drawSymbols(), QwtPlotPrintFilter::reset(), setSymbol(), and updateLegend().
 
831
.SS "void QwtPlotCurve::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, const QRect &) const\fC [virtual]\fP"
 
832
.PP
 
833
Draw the complete curve. 
 
834
.PP
 
835
\fBParameters:\fP
 
836
.RS 4
 
837
\fIpainter\fP Painter 
 
838
.br
 
839
\fIxMap\fP Maps x-values into pixel coordinates. 
 
840
.br
 
841
\fIyMap\fP Maps y-values into pixel coordinates.
 
842
.RE
 
843
.PP
 
844
\fBSee also:\fP
 
845
.RS 4
 
846
\fBdrawCurve()\fP, \fBdrawSymbols()\fP 
 
847
.RE
 
848
.PP
 
849
 
 
850
.PP
 
851
Implements \fBQwtPlotItem\fP.
 
852
.PP
 
853
Definition at line 577 of file qwt_plot_curve.cpp.
 
854
.PP
 
855
Referenced by draw().
 
856
.SS "void QwtPlotCurve::draw (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [virtual]\fP"
 
857
.PP
 
858
Draw an interval of the curve. 
 
859
.PP
 
860
\fBParameters:\fP
 
861
.RS 4
 
862
\fIpainter\fP Painter 
 
863
.br
 
864
\fIxMap\fP maps x-values into pixel coordinates. 
 
865
.br
 
866
\fIyMap\fP maps y-values into pixel coordinates. 
 
867
.br
 
868
\fIfrom\fP index of the first point to be painted 
 
869
.br
 
870
\fIto\fP index of the last point to be painted. If to < 0 the curve will be painted to its last point.
 
871
.RE
 
872
.PP
 
873
\fBSee also:\fP
 
874
.RS 4
 
875
\fBdrawCurve()\fP, \fBdrawSymbols()\fP, 
 
876
.RE
 
877
.PP
 
878
 
 
879
.PP
 
880
Definition at line 687 of file qwt_plot_curve.cpp.
 
881
.PP
 
882
References dataSize(), drawCurve(), drawSymbols(), QwtPainter::metricsMap(), and pen().
 
883
.SS "void QwtPlotCurve::draw (int from, int to) const"
 
884
.PP
 
885
Draw a set of points of a curve. 
 
886
.PP
 
887
When observing an measurement while it is running, new points have to be added to an existing curve. drawCurve can be used to display them avoiding a complete redraw of the canvas.
 
888
.PP
 
889
Setting \fBplot()\fP->canvas()->setAttribute(Qt::WA_PaintOutsidePaintEvent, true); will result in faster painting, if the paint engine of the canvas widget supports this feature.
 
890
.PP
 
891
\fBParameters:\fP
 
892
.RS 4
 
893
\fIfrom\fP Index of the first point to be painted 
 
894
.br
 
895
\fIto\fP Index of the last point to be painted. If to < 0 the curve will be painted to its last point.
 
896
.RE
 
897
.PP
 
898
\fBSee also:\fP
 
899
.RS 4
 
900
\fBdrawCurve()\fP, \fBdrawSymbols()\fP 
 
901
.RE
 
902
.PP
 
903
 
 
904
.PP
 
905
Definition at line 601 of file qwt_plot_curve.cpp.
 
906
.PP
 
907
References QwtPlot::canvas(), QwtPlot::canvasMap(), draw(), QwtPlotCanvas::paintCache(), QwtPlotItem::plot(), QwtPlotCanvas::testPaintAttribute(), QwtPlotItem::xAxis(), and QwtPlotItem::yAxis().
 
908
.SS "void QwtPlotCurve::updateLegend (\fBQwtLegend\fP *) const\fC [virtual]\fP"
 
909
.PP
 
910
Update the widget that represents the curve on the legend. 
 
911
.PP
 
912
Reimplemented from \fBQwtPlotItem\fP.
 
913
.PP
 
914
Definition at line 1367 of file qwt_plot_curve.cpp.
 
915
.PP
 
916
References QwtLegend::displayPolicy(), QwtLegend::find(), QwtLegend::identifierMode(), QwtPlotItem::legendItem(), pen(), style(), symbol(), QwtPlotItem::title(), and QwtPlotItem::updateLegend().
 
917
.SS "void QwtPlotCurve::init ()\fC [protected]\fP"
 
918
.PP
 
919
Initialize data members. 
 
920
.PP
 
921
Definition at line 293 of file qwt_plot_curve.cpp.
 
922
.PP
 
923
References QwtPlotItem::setItemAttribute(), and QwtPlotItem::setZ().
 
924
.PP
 
925
Referenced by QwtPlotCurve().
 
926
.SS "void QwtPlotCurve::drawCurve (QPainter * painter, int style, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [protected, virtual]\fP"
 
927
.PP
 
928
Draw the line part (without symbols) of a curve interval. 
 
929
.PP
 
930
\fBParameters:\fP
 
931
.RS 4
 
932
\fIpainter\fP Painter 
 
933
.br
 
934
\fIstyle\fP curve style, see \fBQwtPlotCurve::CurveStyle\fP 
 
935
.br
 
936
\fIxMap\fP x map 
 
937
.br
 
938
\fIyMap\fP y map 
 
939
.br
 
940
\fIfrom\fP index of the first point to be painted 
 
941
.br
 
942
\fIto\fP index of the last point to be painted 
 
943
.RE
 
944
.PP
 
945
\fBSee also:\fP
 
946
.RS 4
 
947
\fBdraw()\fP, \fBdrawDots()\fP, \fBdrawLines()\fP, \fBdrawSteps()\fP, \fBdrawSticks()\fP 
 
948
.RE
 
949
.PP
 
950
 
 
951
.PP
 
952
Definition at line 742 of file qwt_plot_curve.cpp.
 
953
.PP
 
954
References dataSize(), drawDots(), drawLines(), drawSteps(), drawSticks(), and testCurveAttribute().
 
955
.PP
 
956
Referenced by draw().
 
957
.SS "void QwtPlotCurve::drawSymbols (QPainter * painter, const \fBQwtSymbol\fP & symbol, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [protected, virtual]\fP"
 
958
.PP
 
959
Draw symbols. 
 
960
.PP
 
961
\fBParameters:\fP
 
962
.RS 4
 
963
\fIpainter\fP Painter 
 
964
.br
 
965
\fIsymbol\fP Curve symbol 
 
966
.br
 
967
\fIxMap\fP x map 
 
968
.br
 
969
\fIyMap\fP y map 
 
970
.br
 
971
\fIfrom\fP index of the first point to be painted 
 
972
.br
 
973
\fIto\fP index of the last point to be painted
 
974
.RE
 
975
.PP
 
976
\fBSee also:\fP
 
977
.RS 4
 
978
\fBsetSymbol()\fP, \fBdraw()\fP, \fBdrawCurve()\fP 
 
979
.RE
 
980
.PP
 
981
 
 
982
.PP
 
983
Definition at line 1244 of file qwt_plot_curve.cpp.
 
984
.PP
 
985
References QwtSymbol::brush(), QwtSymbol::draw(), QwtPainter::metricsMap(), QwtSymbol::pen(), pen(), QwtMetricsMap::screenToLayout(), QwtMetricsMap::screenToLayoutX(), QwtSymbol::size(), symbol(), QwtScaleMap::transform(), x(), and y().
 
986
.PP
 
987
Referenced by draw().
 
988
.SS "void QwtPlotCurve::drawLines (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [protected]\fP"
 
989
.PP
 
990
Draw lines. 
 
991
.PP
 
992
If the CurveAttribute Fitted is enabled a \fBQwtCurveFitter\fP tries to interpolate/smooth the curve, before it is painted.
 
993
.PP
 
994
\fBParameters:\fP
 
995
.RS 4
 
996
\fIpainter\fP Painter 
 
997
.br
 
998
\fIxMap\fP x map 
 
999
.br
 
1000
\fIyMap\fP y map 
 
1001
.br
 
1002
\fIfrom\fP index of the first point to be painted 
 
1003
.br
 
1004
\fIto\fP index of the last point to be painted
 
1005
.RE
 
1006
.PP
 
1007
\fBSee also:\fP
 
1008
.RS 4
 
1009
\fBsetCurveAttribute()\fP, \fBsetCurveFitter()\fP, \fBdraw()\fP, \fBdrawLines()\fP, \fBdrawDots()\fP, \fBdrawSteps()\fP, \fBdrawSticks()\fP 
 
1010
.RE
 
1011
.PP
 
1012
 
 
1013
.PP
 
1014
Definition at line 788 of file qwt_plot_curve.cpp.
 
1015
.PP
 
1016
References QwtPainter::drawPolyline(), fillCurve(), QwtScaleMap::transform(), x(), QwtScaleMap::xTransform(), and y().
 
1017
.PP
 
1018
Referenced by drawCurve().
 
1019
.SS "void QwtPlotCurve::drawSticks (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [protected]\fP"
 
1020
.PP
 
1021
Draw sticks
 
1022
.PP
 
1023
\fBParameters:\fP
 
1024
.RS 4
 
1025
\fIpainter\fP Painter 
 
1026
.br
 
1027
\fIxMap\fP x map 
 
1028
.br
 
1029
\fIyMap\fP y map 
 
1030
.br
 
1031
\fIfrom\fP index of the first point to be painted 
 
1032
.br
 
1033
\fIto\fP index of the last point to be painted
 
1034
.RE
 
1035
.PP
 
1036
\fBSee also:\fP
 
1037
.RS 4
 
1038
\fBdraw()\fP, \fBdrawCurve()\fP, \fBdrawDots()\fP, \fBdrawLines()\fP, \fBdrawSteps()\fP 
 
1039
.RE
 
1040
.PP
 
1041
 
 
1042
.PP
 
1043
Definition at line 913 of file qwt_plot_curve.cpp.
 
1044
.PP
 
1045
References QwtPainter::drawLine(), QwtScaleMap::transform(), x(), and y().
 
1046
.PP
 
1047
Referenced by drawCurve().
 
1048
.SS "void QwtPlotCurve::drawDots (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [protected]\fP"
 
1049
.PP
 
1050
Draw dots
 
1051
.PP
 
1052
\fBParameters:\fP
 
1053
.RS 4
 
1054
\fIpainter\fP Painter 
 
1055
.br
 
1056
\fIxMap\fP x map 
 
1057
.br
 
1058
\fIyMap\fP y map 
 
1059
.br
 
1060
\fIfrom\fP index of the first point to be painted 
 
1061
.br
 
1062
\fIto\fP index of the last point to be painted
 
1063
.RE
 
1064
.PP
 
1065
\fBSee also:\fP
 
1066
.RS 4
 
1067
\fBdraw()\fP, \fBdrawCurve()\fP, \fBdrawSticks()\fP, \fBdrawLines()\fP, \fBdrawSteps()\fP 
 
1068
.RE
 
1069
.PP
 
1070
 
 
1071
.PP
 
1072
Definition at line 943 of file qwt_plot_curve.cpp.
 
1073
.PP
 
1074
References QwtPainter::drawPoint(), fillCurve(), QwtScaleMap::transform(), x(), and y().
 
1075
.PP
 
1076
Referenced by drawCurve().
 
1077
.SS "void QwtPlotCurve::drawSteps (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, int from, int to) const\fC [protected]\fP"
 
1078
.PP
 
1079
Draw step function
 
1080
.PP
 
1081
The direction of the steps depends on Inverted attribute.
 
1082
.PP
 
1083
\fBParameters:\fP
 
1084
.RS 4
 
1085
\fIpainter\fP Painter 
 
1086
.br
 
1087
\fIxMap\fP x map 
 
1088
.br
 
1089
\fIyMap\fP y map 
 
1090
.br
 
1091
\fIfrom\fP index of the first point to be painted 
 
1092
.br
 
1093
\fIto\fP index of the last point to be painted
 
1094
.RE
 
1095
.PP
 
1096
\fBSee also:\fP
 
1097
.RS 4
 
1098
\fBCurveAttribute\fP, \fBsetCurveAttribute()\fP, \fBdraw()\fP, \fBdrawCurve()\fP, \fBdrawDots()\fP, \fBdrawLines()\fP, \fBdrawSticks()\fP 
 
1099
.RE
 
1100
.PP
 
1101
 
 
1102
.PP
 
1103
Definition at line 1034 of file qwt_plot_curve.cpp.
 
1104
.PP
 
1105
References QwtPainter::drawPolyline(), fillCurve(), QwtScaleMap::transform(), x(), and y().
 
1106
.PP
 
1107
Referenced by drawCurve().
 
1108
.SS "void QwtPlotCurve::fillCurve (QPainter * painter, const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, QwtPolygon & pa) const\fC [protected]\fP"
 
1109
.PP
 
1110
Fill the area between the curve and the baseline with the curve brush
 
1111
.PP
 
1112
\fBParameters:\fP
 
1113
.RS 4
 
1114
\fIpainter\fP Painter 
 
1115
.br
 
1116
\fIxMap\fP x map 
 
1117
.br
 
1118
\fIyMap\fP y map 
 
1119
.br
 
1120
\fIpa\fP Polygon
 
1121
.RE
 
1122
.PP
 
1123
\fBSee also:\fP
 
1124
.RS 4
 
1125
\fBsetBrush()\fP, \fBsetBaseline()\fP, \fBsetCurveType()\fP 
 
1126
.RE
 
1127
.PP
 
1128
 
 
1129
.PP
 
1130
Definition at line 1173 of file qwt_plot_curve.cpp.
 
1131
.PP
 
1132
References closePolyline(), and QwtPainter::drawPolygon().
 
1133
.PP
 
1134
Referenced by drawDots(), drawLines(), and drawSteps().
 
1135
.SS "void QwtPlotCurve::closePolyline (const \fBQwtScaleMap\fP & xMap, const \fBQwtScaleMap\fP & yMap, QwtPolygon & pa) const\fC [protected]\fP"
 
1136
.PP
 
1137
Complete a polygon to be a closed polygon including the area between the original polygon and the baseline. 
 
1138
.PP
 
1139
\fBParameters:\fP
 
1140
.RS 4
 
1141
\fIxMap\fP X map 
 
1142
.br
 
1143
\fIyMap\fP Y map 
 
1144
.br
 
1145
\fIpa\fP Polygon to be completed 
 
1146
.RE
 
1147
.PP
 
1148
 
 
1149
.PP
 
1150
Definition at line 1207 of file qwt_plot_curve.cpp.
 
1151
.PP
 
1152
References QwtScaleMap::transform().
 
1153
.PP
 
1154
Referenced by fillCurve().
 
1155
 
 
1156
.SH "Author"
 
1157
.PP 
 
1158
Generated automatically by Doxygen for Qwt User's Guide from the source code.