55 #include <qcompilerdetection.h>
56 #include <QCoreApplication>
58 #include <QSharedDataPointer>
75 Q_DECLARE_TR_FUNCTIONS(
VArc)
78 VArc(
const VPointF ¢er, qreal radius,
const QString &formulaRadius, qreal f1,
const QString &formulaF1,
80 VArc(
const VPointF ¢er, qreal radius, qreal f1, qreal f2);
81 VArc(qreal length,
const QString &formulaLength,
const VPointF ¢er, qreal radius,
const QString &formulaRadius,
83 VArc(qreal length,
const VPointF ¢er, qreal radius, qreal f1);
86 VArc Rotate(
const QPointF &originPoint, qreal degrees,
87 const QString &prefix = QString())
const;
88 VArc Flip(
const QLineF &axis,
const QString &prefix = QString())
const;
89 VArc Move(qreal length, qreal angle,
const QString &prefix = QString())
const;
90 virtual ~VArc() Q_DECL_OVERRIDE;
93 #ifdef Q_COMPILER_RVALUE_REFS
103 virtual qreal
GetLength ()
const Q_DECL_OVERRIDE;
105 QPointF
GetP1()
const;
106 QPointF
GetP2 ()
const;
111 QPointF
CutArc (qreal length,
VArc &segment1,
VArc &segment2)
const;
112 QPointF
CutArc (qreal length)
const;
116 virtual void FindF2(qreal length) Q_DECL_OVERRIDE;
119 QSharedDataPointer<VArcData>
d;
VArc class for anticlockwise arc.
QPointF GetP2() const
GetP2 return point associated with end angle.
virtual void FindF2(qreal length) Q_DECL_OVERRIDE
VArc()
VArc default constructor.
virtual ~VArc() Q_DECL_OVERRIDE
QPointF CutArc(qreal length, VArc &segment1, VArc &segment2) const
CutArc cut arc into two segments.
virtual void CreateName() Q_DECL_OVERRIDE
VArc Move(qreal length, qreal angle, const QString &prefix=QString()) const
QVector< QLineF > getSegments() const
virtual qreal GetLength() const Q_DECL_OVERRIDE
GetLength return arc length.
VArc Flip(const QLineF &axis, const QString &prefix=QString()) const
QString GetFormulaRadius() const
GetRadius return arc radius.
VArc Rotate(const QPointF &originPoint, qreal degrees, const QString &prefix=QString()) const
VArc & operator=(const VArc &arc)
operator = assignment operator
qreal GetRadius() const
GetRadius return formula for radius.
void Swap(VArc &arc) Q_DECL_NOTHROW
VArc constructor.
QPointF GetP1() const
GetP1 return point associated with start angle.
virtual QVector< QPointF > getPoints() const Q_DECL_OVERRIDE
GetPoints return list of points needed for drawing arc.
void SetFormulaRadius(const QString &formula, qreal value)
QSharedDataPointer< VArcData > d
The VPointF class keep data of point.
Q_DECLARE_TYPEINFO(VArc, Q_MOVABLE_TYPE)