#include "QtGui/qpainterpath.h"
#include "QtGui/qregion.h"
#include "QtCore/qlist.h"
Include dependency graph for qpainterpath_p.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| class | QPainterPathData |
Functions | |
| void Q_GUI_EXPORT | qt_find_ellipse_coords (const QRectF &r, qreal angle, qreal length, QPointF *startPoint, QPointF *endPoint) |
| void Q_GUI_EXPORT qt_find_ellipse_coords | ( | const QRectF & | r, | |
| qreal | angle, | |||
| qreal | length, | |||
| QPointF * | startPoint, | |||
| QPointF * | endPoint | |||
| ) |
Definition at line 80 of file qpainterpath.cpp.
References a, ANGLE, b, QRectF::center(), QRectF::height(), and QRectF::width().
Referenced by QPainterPath::arcMoveTo(), and Q3PointArray::makeArc().
00082 { 00083 #define ANGLE(t) ((t) * 2 * M_PI / 360.0) 00084 qreal a = r.width() / 2.0; 00085 qreal b = r.height() / 2.0; 00086 00087 if (startPoint) { 00088 *startPoint = r.center() 00089 + QPointF(a * cos(ANGLE(angle)), -b * sin(ANGLE(angle))); 00090 } 00091 if (endPoint) { 00092 *endPoint = r.center() 00093 + QPointF(a * cos(ANGLE(angle + length)), -b * sin(ANGLE(angle + length))); 00094 } 00095 }
Here is the call graph for this function:

1.5.1