PythonQtWrapper_QLineF.cpp
186 lines
| 4.4 KiB
| text/x-c
|
CppLexer
florianlink
|
r13 | #include "PythonQtWrapper_QLineF.h" | ||
florianlink
|
r24 | #include <PythonQtSignalReceiver.h> | ||
#include <PythonQtMethodInfo.h> | ||||
#include <PythonQtConversion.h> | ||||
florianlink
|
r13 | #include <QVariant> | ||
#include <qdatastream.h> | ||||
#include <qline.h> | ||||
#include <qpoint.h> | ||||
QLineF* PythonQtWrapper_QLineF::new_QLineF() | ||||
{ | ||||
return new QLineF(); } | ||||
QLineF* PythonQtWrapper_QLineF::new_QLineF(const QLine& line) | ||||
{ | ||||
return new QLineF(line); } | ||||
QLineF* PythonQtWrapper_QLineF::new_QLineF(const QPointF& pt1, const QPointF& pt2) | ||||
{ | ||||
return new QLineF(pt1, pt2); } | ||||
QLineF* PythonQtWrapper_QLineF::new_QLineF(qreal x1, qreal y1, qreal x2, qreal y2) | ||||
{ | ||||
return new QLineF(x1, y1, x2, y2); } | ||||
florianlink
|
r28 | QPointF PythonQtWrapper_QLineF::pointAt(QLineF* theWrappedObject, qreal t) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->pointAt(t); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::setP1(QLineF* theWrappedObject, const QPointF& p1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setP1(p1); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setPoints(p1, p2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::y2(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->y2(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::setLength(QLineF* theWrappedObject, qreal len) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setLength(len); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject, const QLineF& l) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->angle(l); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::length(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->length(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::setAngle(QLineF* theWrappedObject, qreal angle) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setAngle(angle); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::x1(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->x1(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLine PythonQtWrapper_QLineF::toLine(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->toLine(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::y1(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->y1(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::x2(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->x2(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, qreal dx, qreal dy) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->translated(dx, dy); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setLine(x1, y1, x2, y2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::setP2(QLineF* theWrappedObject, const QPointF& p2) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->setP2(p2); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->angle(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::dx(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->dx(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, const QPointF& p) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->translated(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QLineF::isNull(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->isNull(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QLineF::p1(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->p1(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, qreal dx, qreal dy) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->translate(dx, dy); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | bool PythonQtWrapper_QLineF::operator_equal(QLineF* theWrappedObject, const QLineF& d) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return (*theWrappedObject)== d; | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QPointF PythonQtWrapper_QLineF::p2(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->p2(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, const QPointF& p) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | theWrappedObject->translate(p); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLineF::IntersectType PythonQtWrapper_QLineF::intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->intersect(l, intersectionPoint); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLineF PythonQtWrapper_QLineF::unitVector(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->unitVector(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::writeTo(QLineF* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | arg__1 << (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | void PythonQtWrapper_QLineF::readFrom(QLineF* theWrappedObject, QDataStream& arg__1) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | arg__1 >> (*theWrappedObject); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::angleTo(QLineF* theWrappedObject, const QLineF& l) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->angleTo(l); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | qreal PythonQtWrapper_QLineF::dy(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->dy(); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLineF PythonQtWrapper_QLineF::static_QLineF_fromPolar(qreal length, qreal angle) | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return QLineF::fromPolar(length, angle); | ||
florianlink
|
r13 | } | ||
florianlink
|
r28 | QLineF PythonQtWrapper_QLineF::normalVector(QLineF* theWrappedObject) const | ||
florianlink
|
r13 | { | ||
florianlink
|
r28 | return theWrappedObject->normalVector(); | ||
florianlink
|
r13 | } | ||