Home  All Classes  Main Classes  Annotated  Grouped Classes  Functions 
The QCanvasEllipse class provides an ellipse or ellipse segment on a QCanvas. More...
#include <qcanvas.h>
Inherits QCanvasPolygonalItem.
A canvas item that paints an ellipse or ellipse segment with a QBrush. The ellipse's height, width, start angle and angle length can be set at construction time. The size can be changed at runtime with setSize(), and the angles can be changed (if you're displaying an ellipse segment rather than a whole ellipse) with setAngles().
Note that angles are specified in 16ths of a degree.
If a start angle and length angle are set then an ellipse segment will be drawn. The start angle is the angle that goes from zero in a counterclockwise direction (shown in green in the diagram). The length angle is the angle from the start angle in a counterclockwise direction (shown in blue in the diagram). The blue segment is the segment of the ellipse that would be drawn. If no start angle and length angle are specified the entire ellipse is drawn.
The ellipse can be drawn on a painter with drawShape().
Like any other canvas item ellipses can be moved with move() and moveBy(), or by setting coordinates with setX(), setY() and setZ().
Note: QCanvasEllipse does not use the pen.
See also Graphics Classes and Image Processing Classes.
Note that angles are specified in ^{1}/_{16}ths of a degree.
Returns the length angle (the extent of the ellipse segment) in 16ths of a degree. Initially this will be 360 * 16 (a complete ellipse).
See also setAngles() and angleStart().
Returns the start angle in 16ths of a degree. Initially this will be 0.
See also setAngles() and angleLength().
Note that QCanvasEllipse does not support an outline (the pen is always NoPen).
Reimplemented from QCanvasPolygonalItem.
See also QCanvasItem::rtti().
Reimplemented from QCanvasPolygonalItem.
See also angleStart() and angleLength().
This file is part of the Qt toolkit. Copyright © 19952005 Trolltech. All Rights Reserved.
Copyright © 2005 Trolltech  Trademarks  Qt 3.3.7
