|
QElectroTech
0.8-dev
|
Go to the documentation of this file.
18 #ifndef QETGRAPHICSHANDLERUTILITY_H
19 #define QETGRAPHICSHANDLERUTILITY_H
39 static QVector <QPointF>
pointsForArc (
const QRectF &rect, qreal start_angle, qreal span_angle);
40 static QRectF
rectForPosAtIndex (
const QRectF &old_rect,
const QPointF &pos,
int index);
42 static QLineF
lineForPosAtIndex (
const QLineF &old_line,
const QPointF &pos,
int index);
43 static QPolygonF
polygonForInsertPoint(
const QPolygonF &old_polygon,
bool closed,
const QPointF &pos);
44 static QVector <QPointF>
pointForRadiusRect (
const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode = Qt::AbsoluteSize);
45 static qreal
radiusForPosAtIndex (
const QRectF &rect,
const QPointF &pos,
int index, Qt::SizeMode mode = Qt::AbsoluteSize);
49 #endif // QETGRAPHICSHANDLERUTILITY_H
static QVector< QPointF > pointForRadiusRect(const QRectF &rect, qreal xRadius, qreal yRadius, Qt::SizeMode mode=Qt::AbsoluteSize)
QetGraphicsHandlerUtility::pointForRadiusRect.
Definition: qetgraphicshandlerutility.cpp:276
static QLineF lineForPosAtIndex(const QLineF &old_line, const QPointF &pos, int index)
QetGraphicsHandlerUtility::lineForPosAtIndex Return a line after modification of pos at index index o...
Definition: qetgraphicshandlerutility.cpp:198
static qreal radiusForPosAtIndex(const QRectF &rect, const QPointF &pos, int index, Qt::SizeMode mode=Qt::AbsoluteSize)
QetGraphicsHandlerUtility::radiusForPosAtIndex.
Definition: qetgraphicshandlerutility.cpp:316
static QRectF mirrorRectForPosAtIndex(const QRectF &old_rect, const QPointF &pos, int index)
QetGraphicsHandlerUtility::mirrorRectForPosAtIndex Return a rectangle after modification of the point...
Definition: qetgraphicshandlerutility.cpp:139
static QVector< QPointF > pointsForArc(const QRectF &rect, qreal start_angle, qreal span_angle)
QetGraphicsHandlerUtility::pointsForArc Return the points for the given arc. The first value in the v...
Definition: qetgraphicshandlerutility.cpp:79
static QVector< QPointF > pointsForRect(const QRectF &rect)
QetGraphicsHandlerUtility::pointsForRect Return the keys points of the rectangle, stored in a vector....
Definition: qetgraphicshandlerutility.cpp:36
static QRectF rectForPosAtIndex(const QRectF &old_rect, const QPointF &pos, int index)
QetGraphicsHandlerUtility::rectForPosAtIndex Return a rectangle after modification of the point 'pos'...
Definition: qetgraphicshandlerutility.cpp:106
static qreal percentageInRange(qreal min, qreal max, qreal value)
Definition: qetgraphicshandlerutility.cpp:382
static QVector< QPointF > pointsForLine(const QLineF &line)
QetGraphicsHandlerUtility::pointsForLine The point that define a line in a QVector....
Definition: qetgraphicshandlerutility.cpp:65
static QPolygonF polygonForInsertPoint(const QPolygonF &old_polygon, bool closed, const QPointF &pos)
QetGraphicsHandlerUtility::polygonForInsertPoint.
Definition: qetgraphicshandlerutility.cpp:213
The QetGraphicsHandlerUtility class This class provide some methods to create and use handler for mod...
Definition: qetgraphicshandlerutility.h:35
QIcon tr
Definition: qeticons.cpp:206