1
.TH "QwtPlotCurve" 3 "24 May 2008" "Version 5.1.1" "Qwt User's Guide" \" -*- nroff -*-
9
Inherits \fBQwtPlotItem\fP.
11
.SH "Detailed Description"
13
A class which draws curves.
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.
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:
26
\fBsetData()\fP is overloaded to initialize the x and y data by copying from different data structures with different kind of copy semantics.
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.
30
.IP "\fBC. Draw \fP" 1c
31
\fBdraw()\fP maps the data into pixel coordinates and paints them.
41
\fBQwtData\fP, \fBQwtSymbol\fP, \fBQwtScaleMap\fP
46
Definition at line 56 of file qwt_plot_curve.h.
51
.RI "enum \fBCurveType\fP { \fBYfx\fP, \fBXfy\fP }"
54
.RI "enum \fBCurveStyle\fP { \fBNoCurve\fP, \fBLines\fP, \fBSticks\fP, \fBSteps\fP, \fBDots\fP, \fBUserCurve\fP = 100 }"
57
.RI "enum \fBCurveAttribute\fP { \fBInverted\fP = 1, \fBFitted\fP = 2 }"
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 }"
63
.SS "Public Member Functions"
67
.RI "\fBQwtPlotCurve\fP ()"
70
.RI "\fBQwtPlotCurve\fP (const \fBQwtText\fP &title)"
73
.RI "\fBQwtPlotCurve\fP (const QString &title)"
76
.RI "virtual \fB~QwtPlotCurve\fP ()"
79
.RI "virtual int \fBrtti\fP () const"
82
.RI "void \fBsetCurveType\fP (\fBCurveType\fP)"
85
.RI "\fBCurveType\fP \fBcurveType\fP () const"
88
.RI "void \fBsetPaintAttribute\fP (\fBPaintAttribute\fP, bool on=true)"
91
.RI "bool \fBtestPaintAttribute\fP (\fBPaintAttribute\fP) const"
94
.RI "void \fBsetRawData\fP (const double *x, const double *y, int size)"
97
.RI "void \fBsetData\fP (const double *xData, const double *yData, int size)"
100
.RI "void \fBsetData\fP (const QwtArray< double > &xData, const QwtArray< double > &yData)"
103
.RI "void \fBsetData\fP (const QPolygonF &data)"
106
.RI "void \fBsetData\fP (const \fBQwtData\fP &data)"
109
.RI "int \fBclosestPoint\fP (const QPoint &pos, double *dist=NULL) const"
112
.RI "\fBQwtData\fP & \fBdata\fP ()"
115
.RI "const \fBQwtData\fP & \fBdata\fP () const"
118
.RI "int \fBdataSize\fP () const"
121
.RI "double \fBx\fP (int i) const"
124
.RI "double \fBy\fP (int i) const"
127
.RI "virtual \fBQwtDoubleRect\fP \fBboundingRect\fP () const"
130
.RI "double \fBminXValue\fP () const"
133
.RI "double \fBmaxXValue\fP () const"
136
.RI "double \fBminYValue\fP () const"
139
.RI "double \fBmaxYValue\fP () const"
142
.RI "void \fBsetCurveAttribute\fP (\fBCurveAttribute\fP, bool on=true)"
145
.RI "bool \fBtestCurveAttribute\fP (\fBCurveAttribute\fP) const"
148
.RI "void \fBsetPen\fP (const QPen &)"
151
.RI "const QPen & \fBpen\fP () const"
154
.RI "void \fBsetBrush\fP (const QBrush &)"
157
.RI "const QBrush & \fBbrush\fP () const"
160
.RI "void \fBsetBaseline\fP (double ref)"
163
.RI "double \fBbaseline\fP () const"
166
.RI "void \fBsetStyle\fP (\fBCurveStyle\fP style)"
169
.RI "\fBCurveStyle\fP \fBstyle\fP () const"
172
.RI "void \fBsetSymbol\fP (const \fBQwtSymbol\fP &s)"
175
.RI "const \fBQwtSymbol\fP & \fBsymbol\fP () const"
178
.RI "void \fBsetCurveFitter\fP (\fBQwtCurveFitter\fP *)"
181
.RI "\fBQwtCurveFitter\fP * \fBcurveFitter\fP () const"
184
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, const QRect &) const"
187
.RI "virtual void \fBdraw\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
190
.RI "void \fBdraw\fP (int from, int to) const"
193
.RI "virtual void \fBupdateLegend\fP (\fBQwtLegend\fP *) const "
196
.SS "Protected Member Functions"
200
.RI "void \fBinit\fP ()"
203
.RI "virtual void \fBdrawCurve\fP (QPainter *p, int style, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
206
.RI "virtual void \fBdrawSymbols\fP (QPainter *p, const \fBQwtSymbol\fP &, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
209
.RI "void \fBdrawLines\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
212
.RI "void \fBdrawSticks\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
215
.RI "void \fBdrawDots\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
218
.RI "void \fBdrawSteps\fP (QPainter *p, const \fBQwtScaleMap\fP &xMap, const \fBQwtScaleMap\fP &yMap, int from, int to) const"
221
.RI "void \fBfillCurve\fP (QPainter *, const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, QwtPolygon &) const"
224
.RI "void \fBclosePolyline\fP (const \fBQwtScaleMap\fP &, const \fBQwtScaleMap\fP &, QwtPolygon &) const"
227
.SH "Member Enumeration Documentation"
229
.SS "enum \fBQwtPlotCurve::CurveStyle\fP"
240
Definition at line 69 of file qwt_plot_curve.h.
241
.SS "enum \fBQwtPlotCurve::CurveAttribute\fP"
247
\fBsetCurveAttribute\fP, \fBtestCurveAttribute\fP
252
Definition at line 85 of file qwt_plot_curve.h.
253
.SS "enum \fBQwtPlotCurve::PaintAttribute\fP"
259
\fBsetPaintAttribute\fP, \fBtestPaintAttribute\fP
264
Definition at line 95 of file qwt_plot_curve.h.
265
.SH "Constructor & Destructor Documentation"
267
.SS "QwtPlotCurve::QwtPlotCurve ()\fC [explicit]\fP"
271
Definition at line 139 of file qwt_plot_curve.cpp.
274
.SS "QwtPlotCurve::QwtPlotCurve (const \fBQwtText\fP & title)\fC [explicit]\fP"
280
\fItitle\fP title of the curve
285
Definition at line 149 of file qwt_plot_curve.cpp.
288
.SS "QwtPlotCurve::QwtPlotCurve (const QString & title)\fC [explicit]\fP"
294
\fItitle\fP title of the curve
299
Definition at line 159 of file qwt_plot_curve.cpp.
302
.SS "QwtPlotCurve::~QwtPlotCurve ()\fC [virtual]\fP"
306
Definition at line 166 of file qwt_plot_curve.cpp.
307
.SH "Member Function Documentation"
309
.SS "int QwtPlotCurve::rtti () const\fC [virtual]\fP"
313
QwtPlotItem::Rtti_PlotCurve
318
Reimplemented from \fBQwtPlotItem\fP.
320
Definition at line 187 of file qwt_plot_curve.cpp.
321
.SS "void QwtPlotCurve::setCurveType (\fBCurveType\fP curveType)"
323
Assign the curve type
325
QwtPlotCurve::Yfx Draws y as a function of x (the default). The baseline is interpreted as a horizontal line with y = \fBbaseline()\fP.
327
QwtPlotCurve::Xfy Draws x as a function of y. The baseline is interpreted as a vertical line with x = \fBbaseline()\fP.
329
The baseline is used for aligning the sticks, or filling the curve with a brush.
338
Definition at line 993 of file qwt_plot_curve.cpp.
340
References QwtPlotItem::itemChanged().
341
.SS "\fBQwtPlotCurve::CurveType\fP QwtPlotCurve::curveType () const"
343
Return the curve type
352
Definition at line 1006 of file qwt_plot_curve.cpp.
353
.SS "void QwtPlotCurve::setPaintAttribute (\fBPaintAttribute\fP attribute, bool on = \fCtrue\fP)"
355
Specify an attribute how to draw the curve.
357
The attributes can be used to modify the drawing algorithm.
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 ).
366
The default is, that no paint attributes are enabled.
370
\fIattribute\fP Paint attribute
372
\fIon\fP On/Off /sa \fBtestPaintAttribute()\fP
377
Definition at line 215 of file qwt_plot_curve.cpp.
378
.SS "bool QwtPlotCurve::testPaintAttribute (\fBPaintAttribute\fP attribute) const"
380
Return the current paint attributes.
384
\fBsetPaintAttribute\fP
389
Definition at line 227 of file qwt_plot_curve.cpp.
390
.SS "void QwtPlotCurve::setRawData (const double * xData, const double * yData, int size)"
392
Initialize the data by pointing to memory blocks which are not managed by \fBQwtPlotCurve\fP.
394
setRawData is provided for efficiency. It is important to keep the pointers during the lifetime of the underlying \fBQwtCPointerData\fP class.
398
\fIxData\fP pointer to x data
400
\fIyData\fP pointer to y data
402
\fIsize\fP size of x and y
407
QwtCPointerData::setData.
412
Definition at line 429 of file qwt_plot_curve.cpp.
414
References QwtPlotItem::itemChanged().
415
.SS "void QwtPlotCurve::setData (const double * xData, const double * yData, int size)"
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.
421
\fIxData\fP pointer to x values
423
\fIyData\fP pointer to y values
425
\fIsize\fP size of xData and yData
430
\fBQwtCPointerData\fP
435
Definition at line 363 of file qwt_plot_curve.cpp.
437
References QwtPlotItem::itemChanged().
438
.SS "void QwtPlotCurve::setData (const QwtArray< double > & xData, const QwtArray< double > & yData)"
440
Initialize data with x- and y-arrays (explicitly shared).
456
Definition at line 378 of file qwt_plot_curve.cpp.
458
References QwtPlotItem::itemChanged().
459
.SS "void QwtPlotCurve::setData (const QPolygonF & data)"
461
Initialize data with an array of points (explicitly shared).
470
\fBQwtPolygonFData\fP
475
Definition at line 395 of file qwt_plot_curve.cpp.
476
.SS "void QwtPlotCurve::setData (const \fBQwtData\fP & data)"
478
Initialize data with a pointer to \fBQwtData\fP.
487
\fBQwtData::copy()\fP
492
Definition at line 409 of file qwt_plot_curve.cpp.
494
References QwtData::copy(), data(), and QwtPlotItem::itemChanged().
495
.SS "\fBQwtData\fP & QwtPlotCurve::data ()\fC [inline]\fP"
504
Definition at line 217 of file qwt_plot_curve.h.
506
Referenced by setData().
507
.SS "const \fBQwtData\fP & QwtPlotCurve::data () const\fC [inline]\fP"
516
Definition at line 223 of file qwt_plot_curve.h.
517
.SS "int QwtPlotCurve::dataSize () const"
519
Return the size of the data arrays
528
Definition at line 1185 of file qwt_plot_curve.cpp.
530
References QwtData::size().
532
Referenced by closestPoint(), draw(), and drawCurve().
533
.SS "double QwtPlotCurve::x (int i) const\fC [inline]\fP"
542
x-value at position i
547
Definition at line 232 of file qwt_plot_curve.h.
549
References QwtData::x().
551
Referenced by closestPoint(), drawDots(), drawLines(), drawSteps(), drawSticks(), and drawSymbols().
552
.SS "double QwtPlotCurve::y (int i) const\fC [inline]\fP"
561
y-value at position i
566
Definition at line 241 of file qwt_plot_curve.h.
568
References QwtData::y().
570
Referenced by closestPoint(), drawDots(), drawLines(), drawSteps(), drawSticks(), and drawSymbols().
571
.SS "\fBQwtDoubleRect\fP QwtPlotCurve::boundingRect () const\fC [virtual]\fP"
573
Returns the bounding rectangle of the curve data. If there is no bounding rect, like for empty data the rectangle is invalid.
577
\fBQwtData::boundingRect()\fP, QwtDoubleRect::isValid()
582
Reimplemented from \fBQwtPlotItem\fP.
584
Definition at line 442 of file qwt_plot_curve.cpp.
586
References QwtData::boundingRect().
587
.SS "double QwtPlotCurve::minXValue () const\fC [inline]\fP"
589
\fBboundingRect()\fP.left()
591
Definition at line 137 of file qwt_plot_curve.h.
593
References QwtPlotItem::boundingRect().
594
.SS "double QwtPlotCurve::maxXValue () const\fC [inline]\fP"
596
\fBboundingRect()\fP.right()
598
Definition at line 139 of file qwt_plot_curve.h.
600
References QwtPlotItem::boundingRect().
601
.SS "double QwtPlotCurve::minYValue () const\fC [inline]\fP"
603
\fBboundingRect()\fP.top()
605
Definition at line 141 of file qwt_plot_curve.h.
607
References QwtPlotItem::boundingRect().
608
.SS "double QwtPlotCurve::maxYValue () const\fC [inline]\fP"
610
\fBboundingRect()\fP.bottom()
612
Definition at line 143 of file qwt_plot_curve.h.
614
References QwtPlotItem::boundingRect().
615
.SS "void QwtPlotCurve::setCurveAttribute (\fBCurveAttribute\fP attribute, bool on = \fCtrue\fP)"
617
Specify an attribute for drawing the curve.
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.
628
\fIattribute\fP Curve attribute
633
/sa \fBtestCurveAttribute()\fP, \fBsetCurveFitter()\fP
635
Definition at line 955 of file qwt_plot_curve.cpp.
637
References QwtPlotItem::itemChanged().
638
.SS "bool QwtPlotCurve::testCurveAttribute (\fBCurveAttribute\fP attribute) const"
642
true, if attribute is enabled
647
\fBsetCurveAttribute()\fP
652
Definition at line 972 of file qwt_plot_curve.cpp.
654
Referenced by drawCurve().
655
.SS "void QwtPlotCurve::setPen (const QPen & pen)"
666
\fBpen()\fP, \fBbrush()\fP
671
Definition at line 303 of file qwt_plot_curve.cpp.
673
References QwtPlotItem::itemChanged().
675
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
676
.SS "const QPen & QwtPlotCurve::pen () const"
678
Return the pen used to draw the lines.
682
\fBsetPen()\fP, \fBbrush()\fP
687
Definition at line 316 of file qwt_plot_curve.cpp.
689
Referenced by QwtPlotPrintFilter::apply(), QwtPlotPrintFilter::reset(), and updateLegend().
690
.SS "void QwtPlotCurve::setBrush (const QBrush & brush)"
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).
696
\fIbrush\fP New brush
701
\fBbrush()\fP, \fBsetBaseline()\fP, \fBbaseline()\fP
706
Definition at line 333 of file qwt_plot_curve.cpp.
708
References QwtPlotItem::itemChanged().
709
.SS "const QBrush & QwtPlotCurve::brush () const"
711
Return the brush used to fill the area between lines and the baseline.
715
\fBsetBrush()\fP, \fBsetBaseline()\fP, \fBbaseline()\fP
720
Definition at line 346 of file qwt_plot_curve.cpp.
721
.SS "void QwtPlotCurve::setBaseline (double reference)"
723
Set the value of the baseline.
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.
729
\fIreference\fP baseline
734
\fBbaseline()\fP, \fBsetBrush()\fP, \fBsetStyle()\fP, \fBsetCurveType()\fP
739
Definition at line 1163 of file qwt_plot_curve.cpp.
741
References QwtPlotItem::itemChanged().
742
.SS "double QwtPlotCurve::baseline () const"
744
Return the value of the baseline
753
Definition at line 1176 of file qwt_plot_curve.cpp.
754
.SS "void QwtPlotCurve::setStyle (\fBCurveStyle\fP style)"
756
Set the curve's drawing style.
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.
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.
779
Definition at line 259 of file qwt_plot_curve.cpp.
781
References QwtPlotItem::itemChanged().
782
.SS "\fBQwtPlotCurve::CurveStyle\fP QwtPlotCurve::style () const"
784
Return the current style.
793
Definition at line 272 of file qwt_plot_curve.cpp.
795
Referenced by updateLegend().
796
.SS "void QwtPlotCurve::setSymbol (const \fBQwtSymbol\fP & symbol)"
812
Definition at line 282 of file qwt_plot_curve.cpp.
814
References QwtSymbol::clone(), QwtPlotItem::itemChanged(), and symbol().
816
Referenced by QwtPlotPrintFilter::apply(), and QwtPlotPrintFilter::reset().
817
.SS "const \fBQwtSymbol\fP & QwtPlotCurve::symbol () const"
819
Return the current symbol.
828
Definition at line 293 of file qwt_plot_curve.cpp.
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"
833
Draw the complete curve.
837
\fIpainter\fP Painter
839
\fIxMap\fP Maps x-values into pixel coordinates.
841
\fIyMap\fP Maps y-values into pixel coordinates.
846
\fBdrawCurve()\fP, \fBdrawSymbols()\fP
851
Implements \fBQwtPlotItem\fP.
853
Definition at line 459 of file qwt_plot_curve.cpp.
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"
858
Draw an interval of the curve.
862
\fIpainter\fP Painter
864
\fIxMap\fP maps x-values into pixel coordinates.
866
\fIyMap\fP maps y-values into pixel coordinates.
868
\fIfrom\fP index of the first point to be painted
870
\fIto\fP index of the last point to be painted. If to < 0 the curve will be painted to its last point.
875
\fBdrawCurve()\fP, \fBdrawSymbols()\fP,
880
Definition at line 557 of file qwt_plot_curve.cpp.
882
References dataSize(), drawCurve(), and drawSymbols().
883
.SS "void QwtPlotCurve::draw (int from, int to) const"
885
Draw a set of points of a curve.
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.
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.
893
\fIfrom\fP Index of the first point to be painted
895
\fIto\fP Index of the last point to be painted. If to < 0 the curve will be painted to its last point.
900
\fBdrawCurve()\fP, \fBdrawSymbols()\fP
905
Definition at line 483 of file qwt_plot_curve.cpp.
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"
910
Update the widget that represents the curve on the legend.
912
Reimplemented from \fBQwtPlotItem\fP.
914
Definition at line 1220 of file qwt_plot_curve.cpp.
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"
919
Initialize data members.
921
Definition at line 175 of file qwt_plot_curve.cpp.
923
References QwtPlotItem::setItemAttribute(), and QwtPlotItem::setZ().
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"
928
Draw the line part (without symbols) of a curve interval.
932
\fIpainter\fP Painter
934
\fIstyle\fP curve style, see \fBQwtPlotCurve::CurveStyle\fP
940
\fIfrom\fP index of the first point to be painted
942
\fIto\fP index of the last point to be painted
947
\fBdraw()\fP, \fBdrawDots()\fP, \fBdrawLines()\fP, \fBdrawSteps()\fP, \fBdrawSticks()\fP
952
Definition at line 601 of file qwt_plot_curve.cpp.
954
References dataSize(), drawDots(), drawLines(), drawSteps(), drawSticks(), and testCurveAttribute().
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"
963
\fIpainter\fP Painter
965
\fIsymbol\fP Curve symbol
971
\fIfrom\fP index of the first point to be painted
973
\fIto\fP index of the last point to be painted
978
\fBsetSymbol()\fP, \fBdraw()\fP, \fBdrawCurve()\fP
983
Definition at line 1107 of file qwt_plot_curve.cpp.
985
References QwtSymbol::brush(), QwtSymbol::draw(), QwtPainter::metricsMap(), QwtSymbol::pen(), QwtSymbol::size(), symbol(), QwtScaleMap::transform(), x(), and y().
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"
992
If the CurveAttribute Fitted is enabled a \fBQwtCurveFitter\fP tries to interpolate/smooth the curve, before it is painted.
996
\fIpainter\fP Painter
1002
\fIfrom\fP index of the first point to be painted
1004
\fIto\fP index of the last point to be painted
1009
\fBsetCurveAttribute()\fP, \fBsetCurveFitter()\fP, \fBdraw()\fP, \fBdrawLines()\fP, \fBdrawDots()\fP, \fBdrawSteps()\fP, \fBdrawSticks()\fP
1014
Definition at line 647 of file qwt_plot_curve.cpp.
1016
References QwtClipper::clipPolygon(), QwtPainter::drawPolyline(), fillCurve(), QwtScaleMap::transform(), x(), QwtScaleMap::xTransform(), and y().
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"
1025
\fIpainter\fP Painter
1031
\fIfrom\fP index of the first point to be painted
1033
\fIto\fP index of the last point to be painted
1038
\fBdraw()\fP, \fBdrawCurve()\fP, \fBdrawDots()\fP, \fBdrawLines()\fP, \fBdrawSteps()\fP
1043
Definition at line 773 of file qwt_plot_curve.cpp.
1045
References QwtPainter::drawLine(), QwtScaleMap::transform(), x(), and y().
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"
1054
\fIpainter\fP Painter
1060
\fIfrom\fP index of the first point to be painted
1062
\fIto\fP index of the last point to be painted
1067
\fBdraw()\fP, \fBdrawCurve()\fP, \fBdrawSticks()\fP, \fBdrawLines()\fP, \fBdrawSteps()\fP
1072
Definition at line 803 of file qwt_plot_curve.cpp.
1074
References QwtClipper::clipPolygon(), QwtPainter::drawPoint(), fillCurve(), QwtScaleMap::transform(), x(), and y().
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"
1081
The direction of the steps depends on Inverted attribute.
1085
\fIpainter\fP Painter
1091
\fIfrom\fP index of the first point to be painted
1093
\fIto\fP index of the last point to be painted
1098
\fBCurveAttribute\fP, \fBsetCurveAttribute()\fP, \fBdraw()\fP, \fBdrawCurve()\fP, \fBdrawDots()\fP, \fBdrawLines()\fP, \fBdrawSticks()\fP
1103
Definition at line 896 of file qwt_plot_curve.cpp.
1105
References QwtClipper::clipPolygon(), QwtPainter::drawPolyline(), fillCurve(), QwtScaleMap::transform(), x(), and y().
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"
1110
Fill the area between the curve and the baseline with the curve brush
1114
\fIpainter\fP Painter
1125
\fBsetBrush()\fP, \fBsetBaseline()\fP, \fBsetCurveType()\fP
1130
Definition at line 1036 of file qwt_plot_curve.cpp.
1132
References closePolyline(), and QwtPainter::drawPolygon().
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"
1137
Complete a polygon to be a closed polygon including the area between the original polygon and the baseline.
1145
\fIpa\fP Polygon to be completed
1150
Definition at line 1070 of file qwt_plot_curve.cpp.
1152
References QwtScaleMap::transform().
1154
Referenced by fillCurve().
1158
Generated automatically by Doxygen for Qwt User's Guide from the source code.