#ifndef SMOOTHCURVE_H #define SMOOTHCURVE_H #include #include #include #include #ifdef quc class Q_DECL_EXPORT SmoothCurve : public QObject #else class SmoothCurve : public QObject #endif { public: //创建平滑曲线路径 static QPainterPath createSmoothCurve(const QVector &points); private: static void calculateFirstControlPoints(double *&result, const double *rhs, int n); static void calculateControlPoints(const QVector &datas, QVector *firstControlPoints, QVector *secondControlPoints); }; #endif // SMOOTHCURVE_H