Q3CanvasSpline Class ReferenceThe Q3CanvasSpline class provides multi-bezier splines on a Q3Canvas. More... #include <Q3CanvasSpline> This class is part of the Qt 3 support library. It is provided to keep old source code working. We strongly advise against using it in new code. See Porting to Qt 4 for more information. Inherits: Q3CanvasPolygon. Public Functions
Reimplemented Public Functions
Additional Inherited Members
Detailed DescriptionThe Q3CanvasSpline class provides multi-bezier splines on a Q3Canvas. A Q3CanvasSpline is a sequence of 4-point bezier curves joined together to make a curved shape. You set the control points of the spline with setControlPoints(). If 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. The beziers are not necessarily joined "smoothly". To ensure this, set control points appropriately (general reference texts about beziers will explain this in detail). Like any other canvas item splines can be moved with Q3CanvasItem::move() and Q3CanvasItem::moveBy(), or by setting coordinates with Q3CanvasItem::setX(), Q3CanvasItem::setY() and Q3CanvasItem::setZ(). See also QtCanvas and Porting to Graphics View. Member Function Documentation
|