|
|
#include "PythonQtWrapper_QLineF.h"
|
|
|
|
|
|
#include <PythonQtSignalReceiver.h>
|
|
|
#include <PythonQtMethodInfo.h>
|
|
|
#include <PythonQtConversion.h>
|
|
|
#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); }
|
|
|
|
|
|
void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, qreal dx, qreal dy)
|
|
|
{
|
|
|
( theWrappedObject->translate(dx, dy));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::setP2(QLineF* theWrappedObject, const QPointF& p2)
|
|
|
{
|
|
|
( theWrappedObject->setP2(p2));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::angleTo(QLineF* theWrappedObject, const QLineF& l) const
|
|
|
{
|
|
|
return ( theWrappedObject->angleTo(l));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::dx(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->dx());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QLineF::isNull(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->isNull());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::setLine(QLineF* theWrappedObject, qreal x1, qreal y1, qreal x2, qreal y2)
|
|
|
{
|
|
|
( theWrappedObject->setLine(x1, y1, x2, y2));
|
|
|
}
|
|
|
|
|
|
QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, const QPointF& p) const
|
|
|
{
|
|
|
return ( theWrappedObject->translated(p));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->angle());
|
|
|
}
|
|
|
|
|
|
QLineF PythonQtWrapper_QLineF::unitVector(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->unitVector());
|
|
|
}
|
|
|
|
|
|
bool PythonQtWrapper_QLineF::operator_equal(QLineF* theWrappedObject, const QLineF& d) const
|
|
|
{
|
|
|
return ( (*theWrappedObject)== d);
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::readFrom(QLineF* theWrappedObject, QDataStream& arg__1)
|
|
|
{
|
|
|
arg__1 >> (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
QLineF PythonQtWrapper_QLineF::normalVector(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->normalVector());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::translate(QLineF* theWrappedObject, const QPointF& p)
|
|
|
{
|
|
|
( theWrappedObject->translate(p));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::angle(QLineF* theWrappedObject, const QLineF& l) const
|
|
|
{
|
|
|
return ( theWrappedObject->angle(l));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::dy(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->dy());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::setP1(QLineF* theWrappedObject, const QPointF& p1)
|
|
|
{
|
|
|
( theWrappedObject->setP1(p1));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::x1(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->x1());
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::y2(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->y2());
|
|
|
}
|
|
|
|
|
|
QLineF PythonQtWrapper_QLineF::static_QLineF_fromPolar(qreal length, qreal angle)
|
|
|
{
|
|
|
return (QLineF::fromPolar(length, angle));
|
|
|
}
|
|
|
|
|
|
QPointF PythonQtWrapper_QLineF::p1(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->p1());
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::length(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->length());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::writeTo(QLineF* theWrappedObject, QDataStream& arg__1)
|
|
|
{
|
|
|
arg__1 << (*theWrappedObject);
|
|
|
}
|
|
|
|
|
|
QPointF PythonQtWrapper_QLineF::pointAt(QLineF* theWrappedObject, qreal t) const
|
|
|
{
|
|
|
return ( theWrappedObject->pointAt(t));
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::setPoints(QLineF* theWrappedObject, const QPointF& p1, const QPointF& p2)
|
|
|
{
|
|
|
( theWrappedObject->setPoints(p1, p2));
|
|
|
}
|
|
|
|
|
|
QPointF PythonQtWrapper_QLineF::p2(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->p2());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::setLength(QLineF* theWrappedObject, qreal len)
|
|
|
{
|
|
|
( theWrappedObject->setLength(len));
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::x2(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->x2());
|
|
|
}
|
|
|
|
|
|
QLineF::IntersectType PythonQtWrapper_QLineF::intersect(QLineF* theWrappedObject, const QLineF& l, QPointF* intersectionPoint) const
|
|
|
{
|
|
|
return ( theWrappedObject->intersect(l, intersectionPoint));
|
|
|
}
|
|
|
|
|
|
QLine PythonQtWrapper_QLineF::toLine(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->toLine());
|
|
|
}
|
|
|
|
|
|
qreal PythonQtWrapper_QLineF::y1(QLineF* theWrappedObject) const
|
|
|
{
|
|
|
return ( theWrappedObject->y1());
|
|
|
}
|
|
|
|
|
|
void PythonQtWrapper_QLineF::setAngle(QLineF* theWrappedObject, qreal angle)
|
|
|
{
|
|
|
( theWrappedObject->setAngle(angle));
|
|
|
}
|
|
|
|
|
|
QLineF PythonQtWrapper_QLineF::translated(QLineF* theWrappedObject, qreal dx, qreal dy) const
|
|
|
{
|
|
|
return ( theWrappedObject->translated(dx, dy));
|
|
|
}
|
|
|
|
|
|
QString PythonQtWrapper_QLineF::toString(QLineF* obj) {
|
|
|
QString result;
|
|
|
QDebug d(&result);
|
|
|
d << *obj;
|
|
|
return result;
|
|
|
}
|
|
|
|
|
|
|