/****************************************************************************
** Meta object code from reading C++ file 'box2dpulleyjoint.h'
**
** Created by: The Qt Meta Object Compiler version 69 (Qt 6.10.1)
**
** WARNING! All changes made in this file will be lost!
*****************************************************************************/

#include "../../../box2dpulleyjoint.h"
#include <QtCore/qmetatype.h>

#include <QtCore/qtmochelpers.h>

#include <memory>


#include <QtCore/qxptype_traits.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'box2dpulleyjoint.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.10.1. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

#ifndef Q_CONSTINIT
#define Q_CONSTINIT
#endif

QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
QT_WARNING_DISABLE_GCC("-Wuseless-cast")
namespace {
struct qt_meta_tag_ZN16Box2DPulleyJointE_t {};
} // unnamed namespace

template <> constexpr inline auto Box2DPulleyJoint::qt_create_metaobjectdata<qt_meta_tag_ZN16Box2DPulleyJointE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Box2DPulleyJoint",
        "groundAnchorAChanged",
        "",
        "groundAnchorBChanged",
        "localAnchorAChanged",
        "localAnchorBChanged",
        "lengthAChanged",
        "lengthBChanged",
        "ratioChanged",
        "getCurrentLengthA",
        "getCurrentLengthB",
        "getReactionForce",
        "QPointF",
        "float32",
        "inv_dt",
        "getReactionTorque",
        "groundAnchorA",
        "groundAnchorB",
        "localAnchorA",
        "localAnchorB",
        "lengthA",
        "lengthB",
        "ratio"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'groundAnchorAChanged'
        QtMocHelpers::SignalData<void()>(1, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'groundAnchorBChanged'
        QtMocHelpers::SignalData<void()>(3, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localAnchorAChanged'
        QtMocHelpers::SignalData<void()>(4, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'localAnchorBChanged'
        QtMocHelpers::SignalData<void()>(5, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lengthAChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'lengthBChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'ratioChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'getCurrentLengthA'
        QtMocHelpers::MethodData<float() const>(9, 2, QMC::AccessPublic, QMetaType::Float),
        // Method 'getCurrentLengthB'
        QtMocHelpers::MethodData<float() const>(10, 2, QMC::AccessPublic, QMetaType::Float),
        // Method 'getReactionForce'
        QtMocHelpers::MethodData<QPointF(float32) const>(11, 2, QMC::AccessPublic, 0x80000000 | 12, {{
            { 0x80000000 | 13, 14 },
        }}),
        // Method 'getReactionTorque'
        QtMocHelpers::MethodData<float(float32) const>(15, 2, QMC::AccessPublic, QMetaType::Float, {{
            { 0x80000000 | 13, 14 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'groundAnchorA'
        QtMocHelpers::PropertyData<QPointF>(16, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'groundAnchorB'
        QtMocHelpers::PropertyData<QPointF>(17, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'localAnchorA'
        QtMocHelpers::PropertyData<QPointF>(18, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'localAnchorB'
        QtMocHelpers::PropertyData<QPointF>(19, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'lengthA'
        QtMocHelpers::PropertyData<float>(20, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'lengthB'
        QtMocHelpers::PropertyData<float>(21, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 5),
        // property 'ratio'
        QtMocHelpers::PropertyData<float>(22, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Box2DPulleyJoint, qt_meta_tag_ZN16Box2DPulleyJointE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Box2DPulleyJoint::staticMetaObject = { {
    QMetaObject::SuperData::link<Box2DJoint::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16Box2DPulleyJointE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16Box2DPulleyJointE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN16Box2DPulleyJointE_t>.metaTypes,
    nullptr
} };

void Box2DPulleyJoint::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Box2DPulleyJoint *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->groundAnchorAChanged(); break;
        case 1: _t->groundAnchorBChanged(); break;
        case 2: _t->localAnchorAChanged(); break;
        case 3: _t->localAnchorBChanged(); break;
        case 4: _t->lengthAChanged(); break;
        case 5: _t->lengthBChanged(); break;
        case 6: _t->ratioChanged(); break;
        case 7: { float _r = _t->getCurrentLengthA();
            if (_a[0]) *reinterpret_cast<float*>(_a[0]) = std::move(_r); }  break;
        case 8: { float _r = _t->getCurrentLengthB();
            if (_a[0]) *reinterpret_cast<float*>(_a[0]) = std::move(_r); }  break;
        case 9: { QPointF _r = _t->getReactionForce((*reinterpret_cast<std::add_pointer_t<float32>>(_a[1])));
            if (_a[0]) *reinterpret_cast<QPointF*>(_a[0]) = std::move(_r); }  break;
        case 10: { float _r = _t->getReactionTorque((*reinterpret_cast<std::add_pointer_t<float32>>(_a[1])));
            if (_a[0]) *reinterpret_cast<float*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::groundAnchorAChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::groundAnchorBChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::localAnchorAChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::localAnchorBChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::lengthAChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::lengthBChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DPulleyJoint::*)()>(_a, &Box2DPulleyJoint::ratioChanged, 6))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QPointF*>(_v) = _t->groundAnchorA(); break;
        case 1: *reinterpret_cast<QPointF*>(_v) = _t->groundAnchorB(); break;
        case 2: *reinterpret_cast<QPointF*>(_v) = _t->localAnchorA(); break;
        case 3: *reinterpret_cast<QPointF*>(_v) = _t->localAnchorB(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->lengthA(); break;
        case 5: *reinterpret_cast<float*>(_v) = _t->lengthB(); break;
        case 6: *reinterpret_cast<float*>(_v) = _t->ratio(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setGroundAnchorA(*reinterpret_cast<QPointF*>(_v)); break;
        case 1: _t->setGroundAnchorB(*reinterpret_cast<QPointF*>(_v)); break;
        case 2: _t->setLocalAnchorA(*reinterpret_cast<QPointF*>(_v)); break;
        case 3: _t->setLocalAnchorB(*reinterpret_cast<QPointF*>(_v)); break;
        case 4: _t->setLengthA(*reinterpret_cast<float*>(_v)); break;
        case 5: _t->setLengthB(*reinterpret_cast<float*>(_v)); break;
        case 6: _t->setRatio(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

const QMetaObject *Box2DPulleyJoint::metaObject() const
{
    return QObject::d_ptr->metaObject ? QObject::d_ptr->dynamicMetaObject() : &staticMetaObject;
}

void *Box2DPulleyJoint::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN16Box2DPulleyJointE_t>.strings))
        return static_cast<void*>(this);
    return Box2DJoint::qt_metacast(_clname);
}

int Box2DPulleyJoint::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Box2DJoint::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 11)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 11;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 11)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 11;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    }
    return _id;
}

// SIGNAL 0
void Box2DPulleyJoint::groundAnchorAChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Box2DPulleyJoint::groundAnchorBChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Box2DPulleyJoint::localAnchorAChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Box2DPulleyJoint::localAnchorBChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void Box2DPulleyJoint::lengthAChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Box2DPulleyJoint::lengthBChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}

// SIGNAL 6
void Box2DPulleyJoint::ratioChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}
QT_WARNING_POP
