1
.TH "QwtPlotCanvas" 3 "24 May 2008" "Version 5.1.1" "Qwt User's Guide" \" -*- nroff -*-
9
.SH "Detailed Description"
11
Canvas of a \fBQwtPlot\fP.
20
Definition at line 26 of file qwt_plot_canvas.h.
25
.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 }"
28
.RI "enum \fBFocusIndicator\fP { \fBNoFocusIndicator\fP, \fBCanvasFocusIndicator\fP, \fBItemFocusIndicator\fP }"
31
.SS "Public Member Functions"
35
.RI "\fBQwtPlotCanvas\fP (\fBQwtPlot\fP *)"
38
.RI "virtual \fB~QwtPlotCanvas\fP ()"
41
.RI "\fBQwtPlot\fP * \fBplot\fP ()"
44
.RI "const \fBQwtPlot\fP * \fBplot\fP () const"
47
.RI "void \fBsetFocusIndicator\fP (\fBFocusIndicator\fP)"
50
.RI "\fBFocusIndicator\fP \fBfocusIndicator\fP () const"
53
.RI "void \fBsetPaintAttribute\fP (\fBPaintAttribute\fP, bool on=true)"
56
.RI "bool \fBtestPaintAttribute\fP (\fBPaintAttribute\fP) const"
59
.RI "QPixmap * \fBpaintCache\fP ()"
62
.RI "const QPixmap * \fBpaintCache\fP () const"
65
.RI "void \fBinvalidatePaintCache\fP ()"
68
.SS "Protected Member Functions"
72
.RI "virtual void \fBhideEvent\fP (QHideEvent *)"
75
.RI "virtual void \fBpaintEvent\fP (QPaintEvent *)"
78
.RI "virtual void \fBdrawContents\fP (QPainter *)"
81
.RI "virtual void \fBdrawFocusIndicator\fP (QPainter *)"
84
.RI "void \fBdrawCanvas\fP (QPainter *painter=NULL)"
87
.SH "Member Enumeration Documentation"
89
.SS "enum \fBQwtPlotCanvas::PaintAttribute\fP"
96
Paint double buffered and reuse the content of the pixmap buffer for some spontaneous repaints that happen when a plot gets unhidden, deiconified or changes the focus. Disabling the cache will improve the performance for incremental paints (using \fBQwtPlotCurve::draw\fP).
102
Suppress system background repaints and paint it together with the canvas contents. Painting packed might avoid flickering for expensive repaints, when there is a notable gap between painting the background and the plot contents.
105
The default setting enables PaintCached and PaintPacked
109
\fBsetPaintAttribute()\fP, \fBtestPaintAttribute()\fP, \fBpaintCache()\fP
114
Definition at line 53 of file qwt_plot_canvas.h.
115
.SS "enum \fBQwtPlotCanvas::FocusIndicator\fP"
122
Don't paint a focus indicator
128
The focus is related to the complete canvas. Paint the focus indicator using paintFocus()
134
The focus is related to an item (curve, point, ...) on the canvas. It is up to the application to display a focus indication using f.e. highlighting.
139
\fBsetFocusIndicator()\fP, \fBfocusIndicator()\fP, paintFocus()
144
Definition at line 77 of file qwt_plot_canvas.h.
145
.SH "Constructor & Destructor Documentation"
147
.SS "QwtPlotCanvas::QwtPlotCanvas (\fBQwtPlot\fP *)\fC [explicit]\fP"
149
Sets a cross cursor, enables QwtPlotCanvas::PaintCached.
151
Definition at line 50 of file qwt_plot_canvas.cpp.
153
References setPaintAttribute().
154
.SS "QwtPlotCanvas::~QwtPlotCanvas ()\fC [virtual]\fP"
158
Definition at line 75 of file qwt_plot_canvas.cpp.
159
.SH "Member Function Documentation"
161
.SS "\fBQwtPlot\fP * QwtPlotCanvas::plot ()"
163
Return parent plot widget.
165
Definition at line 81 of file qwt_plot_canvas.cpp.
167
Referenced by drawContents().
168
.SS "const \fBQwtPlot\fP * QwtPlotCanvas::plot () const"
170
Return parent plot widget.
172
Definition at line 91 of file qwt_plot_canvas.cpp.
173
.SS "void QwtPlotCanvas::setFocusIndicator (\fBFocusIndicator\fP focusIndicator)"
175
Set the focus indicator
179
\fBFocusIndicator\fP, \fBfocusIndicator\fP
184
Definition at line 196 of file qwt_plot_canvas.cpp.
185
.SS "\fBQwtPlotCanvas::FocusIndicator\fP QwtPlotCanvas::focusIndicator () const"
194
\fBFocusIndicator\fP, \fBsetFocusIndicator\fP
199
Definition at line 206 of file qwt_plot_canvas.cpp.
201
Referenced by drawContents().
202
.SS "void QwtPlotCanvas::setPaintAttribute (\fBPaintAttribute\fP attribute, bool on = \fCtrue\fP)"
204
Changing the paint attributes.
208
\fIattribute\fP Paint attribute
213
The default setting enables PaintCached and PaintPacked
217
\fBtestPaintAttribute()\fP, \fBdrawCanvas()\fP, \fBdrawContents()\fP, \fBpaintCache()\fP
222
Definition at line 110 of file qwt_plot_canvas.cpp.
224
Referenced by QwtPlotCanvas().
225
.SS "bool QwtPlotCanvas::testPaintAttribute (\fBPaintAttribute\fP attribute) const"
227
Test wether a paint attribute is enabled
231
\fIattribute\fP Paint attribute
236
true if the attribute is enabled
241
\fBsetPaintAttribute()\fP
246
Definition at line 167 of file qwt_plot_canvas.cpp.
248
Referenced by QwtPlotCurve::draw(), and QwtPlot::replot().
249
.SS "QPixmap * QwtPlotCanvas::paintCache ()"
251
Return the paint cache, might be null.
253
Definition at line 173 of file qwt_plot_canvas.cpp.
255
Referenced by QwtPlotCurve::draw().
256
.SS "const QPixmap * QwtPlotCanvas::paintCache () const"
258
Return the paint cache, might be null.
260
Definition at line 179 of file qwt_plot_canvas.cpp.
261
.SS "void QwtPlotCanvas::invalidatePaintCache ()"
263
Invalidate the internal paint cache.
265
Definition at line 185 of file qwt_plot_canvas.cpp.
267
Referenced by QwtPlot::replot().
268
.SS "void QwtPlotCanvas::paintEvent (QPaintEvent *)\fC [protected, virtual]\fP"
272
Definition at line 225 of file qwt_plot_canvas.cpp.
274
References drawContents().
275
.SS "void QwtPlotCanvas::drawContents (QPainter *)\fC [protected, virtual]\fP"
277
Redraw the canvas, and focus rect.
279
Definition at line 250 of file qwt_plot_canvas.cpp.
281
References QwtPlot::autoReplot(), drawCanvas(), drawFocusIndicator(), focusIndicator(), plot(), and QwtPlot::setAutoReplot().
283
Referenced by paintEvent().
284
.SS "void QwtPlotCanvas::drawFocusIndicator (QPainter *)\fC [protected, virtual]\fP"
286
Draw the focus indication.
288
Definition at line 350 of file qwt_plot_canvas.cpp.
290
References QwtPainter::drawFocusRect().
292
Referenced by drawContents().
293
.SS "void QwtPlotCanvas::drawCanvas (QPainter * painter = \fCNULL\fP)\fC [protected]\fP"
297
Paints all plot items to the contentsRect(), using \fBQwtPlot::drawCanvas\fP and updates the paint cache.
301
\fBQwtPlot::drawCanvas\fP, setPaintAttributes(), testPaintAttributes()
306
Definition at line 281 of file qwt_plot_canvas.cpp.
308
Referenced by drawContents().
312
Generated automatically by Doxygen for Qwt User's Guide from the source code.