|
| PolygonBody (QObject *parent=nullptr) |
| Constructs a PolygonBody. More...
|
|
const QList< QPointF > & | getVertices () const |
| Returns vertices as a QList<QPointF>. More...
|
|
QVariantList | getVerticesAsVariantList () const |
| Returns vertices as a QVariantList. More...
|
|
void | setVertices (const QList< QPointF > &value) |
| Sets vertices. More...
|
|
void | setVerticesFromVariantList (const QVariantList &value) |
| Sets vertices. More...
|
|
const QList< QPolygonF > & | getTriangles () |
| Returns a QList<QPolygonF> of this PolygonBody's triangles. More...
|
|
Public Member Functions inherited from Body |
| Body (QObject *parent=0) |
| Constructs a Body. More...
|
|
virtual | ~Body () |
| Destroys a Body. More...
|
|
Actor * | getActor () const |
| Returns actor. More...
|
|
BodyType | getBodyType () const |
| Returns bodyType. More...
|
|
void | setBodyType (BodyType value) |
| Sets bodyType. More...
|
|
bool | isActive () const |
| Returns active. More...
|
|
void | setActive (bool value) |
| Sets active. More...
|
|
float | getLinearDamping () const |
| Returns linearDamping. More...
|
|
void | setLinearDamping (float value) |
| Sets linearDamping. More...
|
|
float | getAngularDamping () const |
| Returns angularDamping. More...
|
|
void | setAngularDamping (float value) |
| Sets angularDamping. More...
|
|
float | getGravityScale () const |
| Returns gravityScale. More...
|
|
void | setGravityScale (float value) |
| Sets gravityScale. More...
|
|
bool | isMagnetic () const |
| Returns magnetic. More...
|
|
void | setMagnetic (bool value) |
| Sets magnetic. More...
|
|
float | getMagneticStrength () const |
| Returns magneticStrength. More...
|
|
void | setMagneticStrength (float value) |
| Sets magneticStrength. More...
|
|
QPointF | getPosition () const |
| Returns position. More...
|
|
bool | isSensor () const |
| Returns sensor. More...
|
|
void | setSensor (bool value) |
| Sets sensor. More...
|
|
float | getDensity () const |
| Returns density. More...
|
|
void | setDensity (float value) |
| Sets density. More...
|
|
float | getFriction () const |
| Returns friction. More...
|
|
void | setFriction (float value) |
| Sets friction. More...
|
|
float | getRestitution () const |
| Returns restitution. More...
|
|
void | setRestitution (float value) |
| Sets restitution. More...
|
|
const QList< Joint * > & | getJoints () const |
| Returns joints as a const QList<Joint*>&. More...
|
|
QQmlListProperty< Joint > | getJointListProperty () |
| Returns joints as a QQmlListProperty<Joint>. More...
|
|
void | setJoints (const QList< Joint * > &value) |
| Sets joints. More...
|
|
Q_INVOKABLE Joint * | getJoint (int index) |
| Returns a Joint at a given index . More...
|
|
Q_INVOKABLE int | getJointCount () const |
| Returns the number of Joints associated with this Body. More...
|
|
Q_INVOKABLE void | addJoint (Joint *joint) |
| Add a Joint to the Body. More...
|
|
Q_INVOKABLE void | removeJoint (Joint *joint) |
| Remove a Joint from the Body. More...
|
|
Q_INVOKABLE void | clearJoints () |
| Clear all the Joints owned by this Body. More...
|
|
Q_INVOKABLE void | clearAllAttachedJoints () |
| Destroys all Joints associated with this Body, whether or not this Body is the Joint's parent. More...
|
|
b2Body * | getBody () |
| Returns the b2Body associated with this Body. More...
|
|
Q_INVOKABLE void | applyTorque (float torque) |
| Apply torque to the associated b2Body . More...
|
|
Q_INVOKABLE void | applyForceToCenter (const QPointF &force) |
| Apply force to the associated b2Body . More...
|
|
void | invalidateTransform () |
| Marks the transform for this Body as dirty. More...
|
|
virtual void | updateBeforePhysics () |
| Called immediately preceding the physics step. More...
|
|
virtual void | updateAfterPhysics () |
| Called immediately following the physics step. More...
|
|
QList< Body * > | getContactedBodies () const |
| Returns a QList containing the list of Bodys in contact with this Body. More...
|
|
void | beginContact (Body *otherBody, const QPointF &normal) |
| Called when this Body has made contact with another. More...
|
|
void | endContact (Body *otherBody, const QPointF &normal) |
| Called when this Body loses contact with another. More...
|
|
void | setPosition (const QPointF &value) |
| Sets position. More...
|
|
float | getAngleInRadians () const |
| Returns angleInRadians. More...
|
|
void | setAngleInRadians (float value) |
| Sets angleInRadians. More...
|
|
QPointF | getLinearVelocity () const |
| Returns linearVelocity. More...
|
|
void | setLinearVelocity (const QPointF &value) |
| Sets linearVelocity. More...
|
|
float | getAngularVelocity () const |
| Returns angularVelocity. More...
|
|
void | setAngularVelocity (float value) |
| Sets angularVelocity. More...
|
|
| QObject (QObject *parent) |
|
virtual bool | event (QEvent *e) |
|
virtual bool | eventFilter (QObject *watched, QEvent *event) |
|
virtual const QMetaObject * | metaObject () const |
|
QString | objectName () const |
|
void | setObjectName (const QString &name) |
|
bool | isWidgetType () const |
|
bool | isWindowType () const |
|
bool | signalsBlocked () const |
|
bool | blockSignals (bool block) |
|
QThread * | thread () const |
|
void | moveToThread (QThread *targetThread) |
|
int | startTimer (int interval, Qt::TimerType timerType) |
|
void | killTimer (int id) |
|
T | findChild (const QString &name, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QString &name, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QRegExp ®Exp, QFlags< Qt::FindChildOption > options) const |
|
QList< T > | findChildren (const QRegularExpression &re, QFlags< Qt::FindChildOption > options) const |
|
const QObjectList & | children () const |
|
void | setParent (QObject *parent) |
|
void | installEventFilter (QObject *filterObj) |
|
void | removeEventFilter (QObject *obj) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const |
|
bool | disconnect (const char *signal, const QObject *receiver, const char *method) const |
|
bool | disconnect (const QObject *receiver, const char *method) const |
|
void | dumpObjectTree () |
|
void | dumpObjectInfo () |
|
bool | setProperty (const char *name, const QVariant &value) |
|
QVariant | property (const char *name) const |
|
QList< QByteArray > | dynamicPropertyNames () const |
|
void | destroyed (QObject *obj) |
|
void | objectNameChanged (const QString &objectName) |
|
QObject * | parent () const |
|
bool | inherits (const char *className) const |
|
void | deleteLater () |
|
|
Public Types inherited from Body |
enum | BodyType { StaticBody = 0,
KinematicBody,
DynamicBody
} |
| Overarching category of how this Body interacts with the world. More...
|
|
QString | tr (const char *sourceText, const char *disambiguation, int n) |
|
QString | trUtf8 (const char *sourceText, const char *disambiguation, int n) |
|
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
|
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
|
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
|
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
|
bool | disconnect (const QMetaObject::Connection &connection) |
|
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
|
A QObject container for a Box2D b2Body
that represents a polygon.