#ifndef PYTHONQTWRAPPER_QLINEF_H #define PYTHONQTWRAPPER_QLINEF_H #include #include #include #include #include #include #include class PythonQtWrapper_QLineF : public QObject { Q_OBJECT public: Q_ENUMS(IntersectType ) enum IntersectType{ NoIntersection = QLineF::NoIntersection, BoundedIntersection = QLineF::BoundedIntersection, UnboundedIntersection = QLineF::UnboundedIntersection}; public slots: QLineF* new_QLineF(); QLineF* new_QLineF(const QLine& line); QLineF* new_QLineF(const QPointF& pt1, const QPointF& pt2); QLineF* new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2); QLineF* new_QLineF(const QLineF& other) { QLineF* a = new QLineF(); *((QLineF*)a) = other; return a; } void delete_QLineF(QLineF* obj) { delete obj; } void translate(QLineF* theWrappedObject, qreal dx, qreal dy); void setP2(QLineF* theWrappedObject, const QPointF& p2); qreal angleTo(QLineF* theWrappedObject, const QLineF& l) const; qreal dx(QLineF* theWrappedObject) const; bool isNull(QLineF* theWrappedObject) const; void setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); QLineF translated(QLineF* theWrappedObject, const QPointF& p) const; qreal angle(QLineF* theWrappedObject) const; QLineF unitVector(QLineF* theWrappedObject) const; bool operator_equal(QLineF* theWrappedObject, const QLineF& d) const; void readFrom(QLineF* theWrappedObject, QDataStream& arg__1); QLineF normalVector(QLineF* theWrappedObject) const; void translate(QLineF* theWrappedObject, const QPointF& p); qreal angle(QLineF* theWrappedObject, const QLineF& l) const; qreal dy(QLineF* theWrappedObject) const; void setP1(QLineF* theWrappedObject, const QPointF& p1); qreal x1(QLineF* theWrappedObject) const; qreal y2(QLineF* theWrappedObject) const; QLineF static_QLineF_fromPolar(qreal length, qreal angle); QPointF p1(QLineF* theWrappedObject) const; qreal length(QLineF* theWrappedObject) const; void writeTo(QLineF* theWrappedObject, QDataStream& arg__1); QPointF pointAt(QLineF* theWrappedObject, qreal t) const; void setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2); QPointF p2(QLineF* theWrappedObject) const; void setLength(QLineF* theWrappedObject, qreal len); qreal x2(QLineF* theWrappedObject) const; QLineF::IntersectType intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const; QLine toLine(QLineF* theWrappedObject) const; qreal y1(QLineF* theWrappedObject) const; void setAngle(QLineF* theWrappedObject, qreal angle); QLineF translated(QLineF* theWrappedObject, qreal dx, qreal dy) const; QString toString(QLineF*); }; #endif // PYTHONQTWRAPPER_QLINEF_H