Homepage > Man Pages > Category > Subroutines

Homepage > Man Pages > Name > Q# qcanvasellipse

## man page of qcanvasellipse

### qcanvasellipse: Ellipse or ellipse segment on a QCanvas

Homepage > Man Pages > Name > Q

## NAME

QCanvasEllipse- Ellipse or ellipse segment on a QCanvas## SYNOPSIS

#include <qcanvas.h> Inherits QCanvasPolygonalItem.Public Members QCanvasEllipse( QCanvas * canvas )QCanvasEllipse( int width, int height, QCanvas * canvas )QCanvasEllipse( int width, int height, int startangle, int angle, QCanvas * canvas )~QCanvasEllipse()int width() constint height() constvoid setSize( int width, int height )void setAngles( int start, int length )int angleStart() constint angleLength() constvirtual int rtti() constProtected Members virtual void drawShape( QPainter & p )## DESCRIPTION

The QCanvasEllipse class provides an ellipse or ellipse segment on a QCanvas. 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. <center>[Image Omitted]</center> 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 counter-clockwise direction (shown in green in the diagram). The length angle is the angle from the start angle in a counter-clockwise 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.## MEMBER FUNCTION DOCUMENTATION

## QCANVASELLIPSE::QCANVASELLIPSE ( QCANVAS * CANVAS )

Constructs a 32x32 ellipse, centered at (0, 0) oncanvas.QCANVASELLIPSE::QCANVASELLIPSE ( INT WIDTH, INT HEIGHT, QCANVAS * CANVAS )

Constructs awidthbyheightpixel ellipse, centered at (0, 0) oncanvas.## QCANVASELLIPSE::QCANVASELLIPSE ( INT WIDTH, INT HEIGHT, INT STARTANGLE, INT

angle, QCanvas * canvas )Constructs awidthbyheightpixel ellipse, centered at (0, 0) oncanvas. Only a segment of the ellipse is drawn, starting at anglestartangle, and extending for angleangle(the angle length). Note that angles are specified in <small><sup>1</sup>/<sub>16</sub></small>ths of a degree.## QCANVASELLIPSE::~QCANVASELLIPSE ()

Destroys the ellipse.## INT QCANVASELLIPSE::ANGLELENGTH () CONST

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().## INT QCANVASELLIPSE::ANGLESTART () CONST

Returns the start angle in 16ths of a degree. Initially this will be 0. See also setAngles() and angleLength().## VOID QCANVASELLIPSE::DRAWSHAPE ( QPAINTER & P ) [VIRTUAL PROTECTED]

Draws the ellipse, centered at x(), y() using the painterp. Note that QCanvasEllipse does not support an outline (the pen is always NoPen). Reimplemented from QCanvasPolygonalItem.INT QCANVASELLIPSE::HEIGHT () CONST

Returns the height of the ellipse.## INT QCANVASELLIPSE::RTTI () CONST [VIRTUAL]

Returns 6 (QCanvasItem::Rtti_Ellipse). See also QCanvasItem::rtti(). Reimplemented from QCanvasPolygonalItem.## VOID QCANVASELLIPSE::SETANGLES ( INT START, INT LENGTH )

Sets the angles for the ellipse. The start angle isstartand the extent of the segment islength(the angle length) from thestart. The angles are specified in 16ths of a degree. By default the ellipse will start at 0 and have an angle length of 360 * 16 (a complete ellipse). See also angleStart() and angleLength().## VOID QCANVASELLIPSE::SETSIZE ( INT WIDTH, INT HEIGHT )

Sets thewidthandheightof the ellipse.## INT QCANVASELLIPSE::WIDTH () CONST

Returns the width of the ellipse.## SEE ALSO

//doc.trolltech.com/qcanvasellipse.html //www.trolltech.com/faq/tech.htmlCOPYRIGHT

Copyright 1992-2007 Trolltech ASA, //www.trolltech.com. See the license file included in the distribution for a complete license statement.## AUTHOR

Generated automatically from the source code.## BUGS

If you find a bug in Qt, please report it as described in //doc.trolltech.com/bughowto.html. Good bug reports help us to help you. Thank you. The definitive Qt documentation is provided in HTML format; it is located at $QTDIR/doc/html and can be read using Qt Assistant or with a web browser. This man page is provided as a convenience for those users who prefer man pages, although this format is not officially supported by Trolltech. If you find errors in this manual page, please report them to qt- bugs@trolltech.com. Please include the name of the manual page (qcanvasellipse.3qt) and the Qt version (3.3.8). QCANVASELLIPSE(3)

Copyright © 2011–2018 by topics-of-interest.com . All rights reserved. Hosted by all-inkl.

Contact · Imprint · Privacy

Page generated in 33.66ms.

tier-bedarf.com | und-verkauft.de | backbar.es