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

📄 qcanvasspline.3qt

📁 Linux下的基于X11的图形开发环境。
💻 3QT
字号:
'\" t.TH QCanvasSpline 3qt "9 December 2002" "Trolltech AS" \" -*- nroff -*-.\" Copyright 1992-2001 Trolltech AS.  All rights reserved.  See the.\" license file included in the distribution for a complete license.\" statement..\".ad l.nh.SH NAMEQCanvasSpline \- Multi-bezier splines on a QCanvas.SH SYNOPSIS\fC#include <qcanvas.h>\fR.PPInherits QCanvasPolygon..PP.SS "Public Members".in +1c.ti -1c.BI "\fBQCanvasSpline\fR ( QCanvas * canvas )".br.ti -1c.BI "\fB~QCanvasSpline\fR ()".br.ti -1c.BI "void \fBsetControlPoints\fR ( QPointArray ctrl, bool close = TRUE )".br.ti -1c.BI "QPointArray \fBcontrolPoints\fR () const".br.ti -1c.BI "bool \fBclosed\fR () const".br.ti -1c.BI "virtual int \fBrtti\fR () const".br.in -1c.SH DESCRIPTIONThe QCanvasSpline class provides multi-bezier splines on a QCanvas..PPA QCanvasSpline is a sequence of 4-point bezier curves joined together to make a curved shape..PPYou set the control points of the spline with setControlPoints()..PPIf the bezier is closed(), then the first control point will be re-used as the last control point. Therefore, a closed bezier must have a multiple of 3 control points and an open bezier must have one extra point..PPThe beziers are not necessarily joined "smoothly". To ensure this, set control points appropriately (general reference texts about beziers will explain this in detail)..PPLike any other canvas item splines can be moved with QCanvasItem::move() and QCanvasItem::moveBy(), or by setting coordinates with QCanvasItem::setX(), QCanvasItem::setY() and QCanvasItem::setZ()..PPSee also Graphics Classes and Image Processing Classes..SH MEMBER FUNCTION DOCUMENTATION.SH "QCanvasSpline::QCanvasSpline ( QCanvas * canvas )"Create a spline with no control points on the canvas \fIcanvas\fR..PPSee also setControlPoints()..SH "QCanvasSpline::~QCanvasSpline ()"Destroy the spline..SH "bool QCanvasSpline::closed () const"Returns TRUE if the control points are a closed set; otherwise returns FALSE..SH "QPointArray QCanvasSpline::controlPoints () const"Returns the current set of control points..PPSee also setControlPoints() and closed()..SH "int QCanvasSpline::rtti () const\fC [virtual]\fR"Returns 8 (QCanvasItem::Rtti_Spline)..PPSee also QCanvasItem::rtti()..PPReimplemented from QCanvasPolygon..SH "void QCanvasSpline::setControlPoints ( QPointArray ctrl, bool close = TRUE )"Set the spline control points to \fIctrl\fR..PPIf \fIclose\fR is TRUE, then the first point in \fIctrl\fR will be re-used as the last point, and the number of control points must be a multiple of 3. If \fIclose\fR is FALSE, one additional control point is required, and the number of control points must be one of (4, 7, 10, 13, ...)..PPIf the number of control points doesn't meet the above conditions, the number of points will be truncated to the largest number of points that do meet the requirement..PPExample: canvas/canvas.cpp..SH "SEE ALSO".BR http://doc.trolltech.com/qcanvasspline.html.BR http://www.trolltech.com/faq/tech.html.SH COPYRIGHTCopyright 1992-2001 Trolltech AS, http://www.trolltech.com.  See thelicense file included in the distribution for a complete licensestatement..SH AUTHORGenerated automatically from the source code..SH BUGSIf you find a bug in Qt, please report it as described in.BR http://doc.trolltech.com/bughowto.html .Good bug reports help us to help you. Thank you..PThe definitive Qt documentation is provided in HTML format; it islocated at $QTDIR/doc/html and can be read using Qt Assistant or witha web browser. This man page is provided as a convenience for thoseusers who prefer man pages, although this format is not officiallysupported by Trolltech. .PIf you find errors in this manual page, please report them to.BR qt-bugs@trolltech.com .Please include the name of the manual page (qcanvasspline.3qt) and the Qtversion (3.1.1).

⌨️ 快捷键说明

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