⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 qwtplotcanvas.3

📁 软件无线电的平台
💻 3
字号:
.TH "QwtPlotCanvas" 3 "4 Nov 2003" "Qwt User's Guide" \" -*- nroff -*-.ad l.nh.SH NAMEQwtPlotCanvas \- .SH SYNOPSIS.br.PP.SH "Detailed Description".PP Canvas of a \fBQwtPlot\fP. \fBSee also:\fP.RS 4\fBQwtPlot\fP .RE.PP.PP.SS "Public Types".in +1c.ti -1c.RI "enum \fBFocusIndicator\fP { \fBNoFocusIndicator\fP, \fBCanvasFocusIndicator\fP, \fBItemFocusIndicator\fP }".br.in -1c.SS "Public Member Functions".in +1c.ti -1c.RI "void \fBsetFocusIndicator\fP (\fBFocusIndicator\fP)".br.ti -1c.RI "\fBFocusIndicator\fP \fBfocusIndicator\fP () const ".br.ti -1c.RI "void \fBsetCacheMode\fP (bool on)".br.ti -1c.RI "bool \fBcacheMode\fP () const ".br.ti -1c.RI "const  QPixmap * \fBcache\fP () const ".br.ti -1c.RI "void \fBenableOutline\fP (bool tf)".br.ti -1c.RI "bool \fBoutlineEnabled\fP () const ".br.ti -1c.RI "void \fBsetOutlinePen\fP (const  QPen &p)".br.ti -1c.RI "const  QPen & \fBoutlinePen\fP () const ".br.ti -1c.RI "void \fBsetOutlineStyle\fP (Qwt::Shape os)".br.ti -1c.RI "Qwt::Shape \fBoutlineStyle\fP () const ".br.in -1c.SS "Protected Member Functions".in +1c.ti -1c.RI "\fBQwtPlotCanvas\fP (\fBQwtPlot\fP *)".br.ti -1c.RI "QPixmap * \fBcache\fP ()".br.ti -1c.RI "virtual void \fBframeChanged\fP ()".br.ti -1c.RI "virtual void \fBdrawContents\fP (QPainter *)".br.ti -1c.RI "virtual void \fBdrawFocusIndicator\fP (QPainter *, const  QRect &)".br.ti -1c.RI "void \fBdrawCanvas\fP (QPainter *painter=NULL)".br.ti -1c.RI "void \fBmousePressed\fP (const  QMouseEvent &e)".br.ti -1c.RI "void \fBmouseReleased\fP (const  QMouseEvent &e)".br.ti -1c.RI "void \fBmouseMoved\fP (const  QMouseEvent &e)".br.ti -1c.RI "virtual void \fBmousePressEvent\fP (QMouseEvent *)".br.ti -1c.RI "virtual void \fBmouseReleaseEvent\fP (QMouseEvent *)".br.ti -1c.RI "virtual void \fBmouseMoveEvent\fP (QMouseEvent *)".br.in -1c.SS "Friends".in +1c.ti -1c.RI "class \fBQwtPlot\fP".br.in -1c.SH "Member Enumeration Documentation".PP .SS "enum \fBQwtPlotCanvas::FocusIndicator\fP".PPFocus indicator. .IP "\(bu" 2NoFocusIndicator.br Don磘 paint a focus indicator.IP "\(bu" 2CanvasFocusIndicator.br The focus is related to the complete canvas. Paint the focus indicator using paintFocus().IP "\(bu" 2ItemFocusIndicator.br 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..PP.PP\fBSee also:\fP.RS 4\fBsetFocusIndicator()\fP, \fBfocusIndicator()\fP, paintFocus() .RE.PP.SH "Constructor & Destructor Documentation".PP .SS "QwtPlotCanvas::QwtPlotCanvas (\fBQwtPlot\fP *)\fC [protected]\fP".PPSets a cross cursor, and an invisible red outline. .SH "Member Function Documentation".PP .SS "QPixmap * QwtPlotCanvas::cache ()\fC [protected]\fP".PPReturn the paint cache, might be null. .SS "const  QPixmap * QwtPlotCanvas::cache () const".PPReturn the paint cache, might be null. .SS "bool QwtPlotCanvas::cacheMode () const".PP\fBReturns:\fP.RS 4Cache mode .RE.PP\fBSee also:\fP.RS 4\fBsetCacheMode\fP .RE.PP.SS "void QwtPlotCanvas::drawCanvas (QPainter * painter = NULL)\fC [protected]\fP".PPDraw the the canvas.PPPaints all plot items to the contentsRect(), using \fBQwtPlot::drawCanvas\fP and updates the cache..PP\fBSee also:\fP.RS 4\fBQwtPlot::drawCanvas\fP, \fBsetCacheMode()\fP, \fBcacheMode()\fP .RE.PP.SS "void QwtPlotCanvas::drawContents (QPainter *)\fC [protected, virtual]\fP".PPRedraw the canvas, and focus rect. .SS "void QwtPlotCanvas::enableOutline (bool tf)".PPEnables or disables outline drawing. When the outline feature is enabled, a shape will be drawn in the plotting region when the user presses or drags the mouse. It can be used to implement crosshairs, mark a selected region, etc. \fBParameters:\fP.RS 4\fItf\fP \fCTRUE\fP (enabled) or \fCFALSE\fP (disabled) .RE.PP\fBWarning:\fP.RS 4An outline style has to be specified. .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotCanvas::setOutlineStyle()\fP .RE.PP.SS "\fBQwtPlotCanvas::FocusIndicator\fP QwtPlotCanvas::focusIndicator () const".PP\fBReturns:\fP.RS 4Focus indicator.RE.PP\fBSee also:\fP.RS 4\fBFocusIndicator\fP, \fBsetFocusIndicator\fP .RE.PP.SS "void QwtPlotCanvas::frameChanged ()\fC [protected, virtual]\fP".PPRequires layout updates of the parent plot. .SS "void QwtPlotCanvas::mouseMoved (const QMouseEvent & e)\fC [protected]\fP".PPA signal which is emitted when the mouse is moved in the canvas. .PP\fBParameters:\fP.RS 4\fIe\fP Mouse event object .RE.PP.SS "void QwtPlotCanvas::mouseMoveEvent (QMouseEvent *)\fC [protected, virtual]\fP".PPmouseMoveEvent .SS "void QwtPlotCanvas::mousePressed (const QMouseEvent & e)\fC [protected]\fP".PPA signal which is emitted when the mouse is pressed in the canvas. .PP\fBParameters:\fP.RS 4\fIe\fP Mouse event object .RE.PP.SS "void QwtPlotCanvas::mousePressEvent (QMouseEvent *)\fC [protected, virtual]\fP".PPmousePressEvent .SS "void QwtPlotCanvas::mouseReleased (const QMouseEvent & e)\fC [protected]\fP".PPA signal which is emitted when a mouse button has been released in the canvas. .PP\fBParameters:\fP.RS 4\fIe\fP Mouse event object .RE.PP.SS "void QwtPlotCanvas::mouseReleaseEvent (QMouseEvent *)\fC [protected, virtual]\fP".PPmouseReleaseEvent .SS "bool QwtPlotCanvas::outlineEnabled () const".PP\fBReturns:\fP.RS 4\fCTRUE\fP if the outline feature is enabled .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotCanvas::enableOutline\fP .RE.PP.SS "const  QPen & QwtPlotCanvas::outlinePen () const".PP\fBReturns:\fP.RS 4the pen used to draw outlines .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotCanvas::setOutlinePen\fP .RE.PP.SS "Qwt::Shape QwtPlotCanvas::outlineStyle () const".PP\fBReturns:\fP.RS 4the outline style .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotCanvas::setOutlineStyle()\fP .RE.PP.SS "void QwtPlotCanvas::setCacheMode (bool on)".PPEn/Disable caching. When cache mode is enabled the canvas contents are copied to a pixmap that is used for trivial repaints. Such repaints happen when a plot gets unhidden, deiconified or changes the focus..PPThe win of caching depends on the costs of \fBQwtPlot::drawCanvas\fP. In case of plots with huge data it might be significant. The price of caching is wasting memory for the cache, what is a pixmap in size of contentsRect(). In case of \fBQwtPaintBuffer::isEnabled()\fP updating the cache produces no performance overhead as it reuses the temporary paintbuffer of the double buffering. Otherwise canvas updates have to painted twice to widget and cache..PP\fBParameters:\fP.RS 4\fIon\fP Enable caching, when TRUE.RE.PP\fBSee also:\fP.RS 4\fBcacheMode()\fP, \fBdrawCanvas()\fP, \fBdrawContents()\fP, \fBcache()\fP .RE.PP.SS "void QwtPlotCanvas::setFocusIndicator (\fBFocusIndicator\fP focusIndicator)".PPSet the focus indicator.PP\fBSee also:\fP.RS 4\fBFocusIndicator\fP, \fBfocusIndicator\fP .RE.PP.SS "void QwtPlotCanvas::setOutlinePen (const QPen & pen)".PPSpecify a pen for the outline. \fBParameters:\fP.RS 4\fIpen\fP new pen .RE.PP\fBSee also:\fP.RS 4\fBQwtPlotCanvas::outlinePen\fP .RE.PP.SS "void QwtPlotCanvas::setOutlineStyle (Qwt::Shape os)".PPSpecify the style of the outline. The outline style determines which kind of shape is drawn in the plotting region when the user presses a mouse button or drags the mouse. Valid Styles are: .PP\fBParameters:\fP.RS 4\fIos\fP Outline Style. Valid values are: \fCQwt::HLine\fP, \fCQwt::VLine\fP, \fCQwt::Cross\fP, \fCQwt::Rect\fP, \fCQwt::Ellipse\fP .IP "\fBQwt::Cros \fP" 1cCross hairs are drawn across the plotting area when the user presses a mouse button. The lines intersect at the point where the mouse was pressed and move with the mouse pointer. .IP "\fBQwt::HLine, Qwt::VLine \fP" 1cA horizontal or vertical line appears when the user presses a mouse button. This is useful for moving line markers. .IP "\fBQwt::Rect \fP" 1cA rectangle is displayed when the user drags the mouse. One corner is fixed at the point where the mouse was pressed, and the opposite corner moves with the mouse pointer. This can be used for selecting regions. .IP "\fBQwt::Ellipse \fP" 1cSimilar to Qwt::Rect, but with an ellipse inside a bounding rectangle. .PP.RE.PP\fBSee also:\fP.RS 4\fBQwtPlotCanvas::enableOutline()\fP, \fBQwtPlotCanvas::outlineStyle()\fP .RE.PP.SH "Author".PP Generated automatically by Doxygen for Qwt User's Guide from the source code.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -