PythonQtWrapper_QLineF.h
64 lines
| 2.8 KiB
| text/x-c
|
CLexer
florianlink
|
r13 | #ifndef PYTHONQTWRAPPER_QLINEF_H | ||
#define PYTHONQTWRAPPER_QLINEF_H | ||||
#include <qline.h> | ||||
#include <QObject> | ||||
florianlink
|
r24 | #include <PythonQt.h> | ||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qline.h> | ||||
#include <qpoint.h> | ||||
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); | ||||
florianlink
|
r24 | QLineF* new_QLineF(const QLineF& other) { | ||
QLineF* a = new QLineF(); | ||||
*((QLineF*)a) = other; | ||||
return a; } | ||||
florianlink
|
r13 | void delete_QLineF(QLineF* obj) { delete obj; } | ||
florianlink
|
r28 | QPointF pointAt(QLineF* theWrappedObject, qreal t) const; | ||
void setP1(QLineF* theWrappedObject, const QPointF& p1); | ||||
void setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2); | ||||
qreal y2(QLineF* theWrappedObject) const; | ||||
void setLength(QLineF* theWrappedObject, qreal len); | ||||
qreal angle(QLineF* theWrappedObject, const QLineF& l) const; | ||||
qreal length(QLineF* theWrappedObject) const; | ||||
void setAngle(QLineF* theWrappedObject, qreal angle); | ||||
qreal x1(QLineF* theWrappedObject) const; | ||||
QLine toLine(QLineF* theWrappedObject) const; | ||||
florianlink
|
r24 | qreal y1(QLineF* theWrappedObject) const; | ||
qreal x2(QLineF* theWrappedObject) const; | ||||
florianlink
|
r28 | QLineF translated(QLineF* theWrappedObject, qreal dx, qreal dy) const; | ||
void setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2); | ||||
florianlink
|
r24 | void setP2(QLineF* theWrappedObject, const QPointF& p2); | ||
florianlink
|
r28 | qreal angle(QLineF* theWrappedObject) const; | ||
florianlink
|
r13 | qreal dx(QLineF* theWrappedObject) const; | ||
florianlink
|
r28 | QLineF translated(QLineF* theWrappedObject, const QPointF& p) const; | ||
florianlink
|
r13 | bool isNull(QLineF* theWrappedObject) const; | ||
florianlink
|
r28 | QPointF p1(QLineF* theWrappedObject) const; | ||
florianlink
|
r24 | void translate(QLineF* theWrappedObject, qreal dx, qreal dy); | ||
florianlink
|
r13 | bool operator_equal(QLineF* theWrappedObject, const QLineF& d) const; | ||
florianlink
|
r28 | QPointF p2(QLineF* theWrappedObject) const; | ||
void translate(QLineF* theWrappedObject, const QPointF& p); | ||||
QLineF::IntersectType intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const; | ||||
QLineF unitVector(QLineF* theWrappedObject) const; | ||||
void writeTo(QLineF* theWrappedObject, QDataStream& arg__1); | ||||
florianlink
|
r24 | void readFrom(QLineF* theWrappedObject, QDataStream& arg__1); | ||
florianlink
|
r28 | qreal angleTo(QLineF* theWrappedObject, const QLineF& l) const; | ||
florianlink
|
r24 | qreal dy(QLineF* theWrappedObject) const; | ||
QLineF static_QLineF_fromPolar(qreal length, qreal angle); | ||||
QLineF normalVector(QLineF* theWrappedObject) const; | ||||
florianlink
|
r13 | }; | ||
#endif // PYTHONQTWRAPPER_QLINEF_H | ||||