#ifndef VELLIPTICALARC_P #define VELLIPTICALARC_P #include #if QT_VERSION < QT_VERSION_CHECK(5, 5, 0) #include "../vmisc/diagnostic.h" #endif // QT_VERSION < QT_VERSION_CHECK(5, 5, 0) QT_WARNING_PUSH QT_WARNING_DISABLE_GCC("-Weffc++") QT_WARNING_DISABLE_GCC("-Wnon-virtual-dtor") class VEllipticalArcData final : public QSharedData { public: VEllipticalArcData (); VEllipticalArcData (qreal radius1, qreal radius2, const QString &formulaRadius1, const QString &formulaRadius2, qreal rotationAngle, const QString &formulaRotationAngle); VEllipticalArcData(qreal radius1, qreal radius2, qreal rotationAngle); VEllipticalArcData(const VEllipticalArcData &arc); virtual ~VEllipticalArcData(); /** @brief radius1 elliptical arc major radius. */ qreal radius1; /** @brief radius2 elliptical arc minor radius. */ qreal radius2; /** @brief formulaRadius1 formula for elliptical arc major radius. */ QString formulaRadius1; /** @brief formulaRadius2 formula for elliptical arc minor radius. */ QString formulaRadius2; /** @brief rotationAngle in degree. */ qreal rotationAngle; /** @brief formulaRotationAngle formula for rotationAngle. */ QString formulaRotationAngle; QTransform m_transform; private: Q_DISABLE_ASSIGN(VEllipticalArcData) }; //--------------------------------------------------------------------------------------------------------------------- VEllipticalArcData::VEllipticalArcData() : radius1(0), radius2(0), formulaRadius1(), formulaRadius2(), rotationAngle(0), formulaRotationAngle(), m_transform() {} //--------------------------------------------------------------------------------------------------------------------- VEllipticalArcData::VEllipticalArcData(qreal radius1, qreal radius2, const QString &formulaRadius1, const QString &formulaRadius2, qreal rotationAngle, const QString &formulaRotationAngle) : radius1(radius1), radius2(radius2), formulaRadius1(formulaRadius1), formulaRadius2(formulaRadius2), rotationAngle(rotationAngle), formulaRotationAngle(formulaRotationAngle), m_transform() {} //--------------------------------------------------------------------------------------------------------------------- VEllipticalArcData::VEllipticalArcData(qreal radius1, qreal radius2, qreal rotationAngle) : radius1(radius1), radius2(radius2), formulaRadius1(QString().number(radius1)), formulaRadius2(QString().number(radius2)), rotationAngle(rotationAngle), formulaRotationAngle(QString().number(rotationAngle)), m_transform() {} //--------------------------------------------------------------------------------------------------------------------- VEllipticalArcData::VEllipticalArcData(const VEllipticalArcData &arc) : QSharedData(arc), radius1(arc.radius1), radius2(arc.radius2), formulaRadius1(arc.formulaRadius1), formulaRadius2(arc.formulaRadius2), rotationAngle(arc.rotationAngle), formulaRotationAngle(arc.formulaRotationAngle), m_transform(arc.m_transform) {} //--------------------------------------------------------------------------------------------------------------------- VEllipticalArcData::~VEllipticalArcData() {} QT_WARNING_POP #endif // VELLIPTICALARC_P