/****************************************************************************
** Meta object code from reading C++ file 'box2dworld.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 "../../../box2dworld.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 'box2dworld.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_ZN10StepDriverE_t {};
} // unnamed namespace

template <> constexpr inline auto StepDriver::qt_create_metaobjectdata<qt_meta_tag_ZN10StepDriverE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "StepDriver"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<StepDriver, qt_meta_tag_ZN10StepDriverE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject StepDriver::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractAnimation::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10StepDriverE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10StepDriverE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10StepDriverE_t>.metaTypes,
    nullptr
} };

void StepDriver::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<StepDriver *>(_o);
    (void)_t;
    (void)_c;
    (void)_id;
    (void)_a;
}

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

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

int StepDriver::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QAbstractAnimation::qt_metacall(_c, _id, _a);
    return _id;
}
namespace {
struct qt_meta_tag_ZN12Box2DProfileE_t {};
} // unnamed namespace

template <> constexpr inline auto Box2DProfile::qt_create_metaobjectdata<qt_meta_tag_ZN12Box2DProfileE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Box2DProfile",
        "step",
        "collide",
        "solve",
        "solveInit",
        "solveVelocity",
        "solvePosition",
        "broadphase",
        "solveTOI",
        "synchronize",
        "emitSignals"
    };

    QtMocHelpers::UintData qt_methods {
    };
    QtMocHelpers::UintData qt_properties {
        // property 'step'
        QtMocHelpers::PropertyData<float>(1, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'collide'
        QtMocHelpers::PropertyData<float>(2, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'solve'
        QtMocHelpers::PropertyData<float>(3, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'solveInit'
        QtMocHelpers::PropertyData<float>(4, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'solveVelocity'
        QtMocHelpers::PropertyData<float>(5, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'solvePosition'
        QtMocHelpers::PropertyData<float>(6, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'broadphase'
        QtMocHelpers::PropertyData<float>(7, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'solveTOI'
        QtMocHelpers::PropertyData<float>(8, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'synchronize'
        QtMocHelpers::PropertyData<float>(9, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'emitSignals'
        QtMocHelpers::PropertyData<float>(10, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Box2DProfile, qt_meta_tag_ZN12Box2DProfileE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Box2DProfile::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12Box2DProfileE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN12Box2DProfileE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN12Box2DProfileE_t>.metaTypes,
    nullptr
} };

void Box2DProfile::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Box2DProfile *>(_o);
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->step(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->collide(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->solve(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->solveInit(); break;
        case 4: *reinterpret_cast<float*>(_v) = _t->solveVelocity(); break;
        case 5: *reinterpret_cast<float*>(_v) = _t->solvePosition(); break;
        case 6: *reinterpret_cast<float*>(_v) = _t->broadphase(); break;
        case 7: *reinterpret_cast<float*>(_v) = _t->solveTOI(); break;
        case 8: *reinterpret_cast<float*>(_v) = _t->synchronize(); break;
        case 9: *reinterpret_cast<float*>(_v) = _t->emitSignals(); break;
        default: break;
        }
    }
}

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

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

int Box2DProfile::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QObject::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 10;
    }
    return _id;
}
namespace {
struct qt_meta_tag_ZN10Box2DWorldE_t {};
} // unnamed namespace

template <> constexpr inline auto Box2DWorld::qt_create_metaobjectdata<qt_meta_tag_ZN10Box2DWorldE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Box2DWorld",
        "preSolve",
        "",
        "Box2DContact*",
        "contact",
        "postSolve",
        "timeStepChanged",
        "velocityIterationsChanged",
        "positionIterationsChanged",
        "gravityChanged",
        "autoClearForcesChanged",
        "runningChanged",
        "stepped",
        "enableContactEventsChanged",
        "pixelsPerMeterChanged",
        "step",
        "clearForces",
        "rayCast",
        "Box2DRayCast*",
        "QPointF",
        "point1",
        "point2",
        "running",
        "timeStep",
        "velocityIterations",
        "positionIterations",
        "gravity",
        "autoClearForces",
        "profile",
        "Box2DProfile*",
        "pixelsPerMeter",
        "enableContactEvents"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'preSolve'
        QtMocHelpers::SignalData<void(Box2DContact *)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'postSolve'
        QtMocHelpers::SignalData<void(Box2DContact *)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'timeStepChanged'
        QtMocHelpers::SignalData<void()>(6, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'velocityIterationsChanged'
        QtMocHelpers::SignalData<void()>(7, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'positionIterationsChanged'
        QtMocHelpers::SignalData<void()>(8, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'gravityChanged'
        QtMocHelpers::SignalData<void()>(9, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'autoClearForcesChanged'
        QtMocHelpers::SignalData<void()>(10, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'runningChanged'
        QtMocHelpers::SignalData<void()>(11, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'stepped'
        QtMocHelpers::SignalData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'enableContactEventsChanged'
        QtMocHelpers::SignalData<void()>(13, 2, QMC::AccessPublic, QMetaType::Void),
        // Signal 'pixelsPerMeterChanged'
        QtMocHelpers::SignalData<void()>(14, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'step'
        QtMocHelpers::MethodData<void()>(15, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'clearForces'
        QtMocHelpers::MethodData<void()>(16, 2, QMC::AccessPublic, QMetaType::Void),
        // Method 'rayCast'
        QtMocHelpers::MethodData<void(Box2DRayCast *, const QPointF &, const QPointF &)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 18, 17 }, { 0x80000000 | 19, 20 }, { 0x80000000 | 19, 21 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'running'
        QtMocHelpers::PropertyData<bool>(22, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 7),
        // property 'timeStep'
        QtMocHelpers::PropertyData<float>(23, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'velocityIterations'
        QtMocHelpers::PropertyData<int>(24, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3),
        // property 'positionIterations'
        QtMocHelpers::PropertyData<int>(25, QMetaType::Int, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'gravity'
        QtMocHelpers::PropertyData<QPointF>(26, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5),
        // property 'autoClearForces'
        QtMocHelpers::PropertyData<bool>(27, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 6),
        // property 'profile'
        QtMocHelpers::PropertyData<Box2DProfile*>(28, 0x80000000 | 29, QMC::DefaultPropertyFlags | QMC::EnumOrFlag, 8),
        // property 'pixelsPerMeter'
        QtMocHelpers::PropertyData<float>(30, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 10),
        // property 'enableContactEvents'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 9),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<Box2DWorld, qt_meta_tag_ZN10Box2DWorldE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Box2DWorld::staticMetaObject = { {
    QMetaObject::SuperData::link<QObject::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Box2DWorldE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Box2DWorldE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Box2DWorldE_t>.metaTypes,
    nullptr
} };

void Box2DWorld::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Box2DWorld *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->preSolve((*reinterpret_cast<std::add_pointer_t<Box2DContact*>>(_a[1]))); break;
        case 1: _t->postSolve((*reinterpret_cast<std::add_pointer_t<Box2DContact*>>(_a[1]))); break;
        case 2: _t->timeStepChanged(); break;
        case 3: _t->velocityIterationsChanged(); break;
        case 4: _t->positionIterationsChanged(); break;
        case 5: _t->gravityChanged(); break;
        case 6: _t->autoClearForcesChanged(); break;
        case 7: _t->runningChanged(); break;
        case 8: _t->stepped(); break;
        case 9: _t->enableContactEventsChanged(); break;
        case 10: _t->pixelsPerMeterChanged(); break;
        case 11: _t->step(); break;
        case 12: _t->clearForces(); break;
        case 13: _t->rayCast((*reinterpret_cast<std::add_pointer_t<Box2DRayCast*>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QPointF>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<QPointF>>(_a[3]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)(Box2DContact * )>(_a, &Box2DWorld::preSolve, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)(Box2DContact * )>(_a, &Box2DWorld::postSolve, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::timeStepChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::velocityIterationsChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::positionIterationsChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::gravityChanged, 5))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::autoClearForcesChanged, 6))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::runningChanged, 7))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::stepped, 8))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::enableContactEventsChanged, 9))
            return;
        if (QtMocHelpers::indexOfMethod<void (Box2DWorld::*)()>(_a, &Box2DWorld::pixelsPerMeterChanged, 10))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 6:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Box2DProfile* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<bool*>(_v) = _t->isRunning(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->timeStep(); break;
        case 2: *reinterpret_cast<int*>(_v) = _t->velocityIterations(); break;
        case 3: *reinterpret_cast<int*>(_v) = _t->positionIterations(); break;
        case 4: *reinterpret_cast<QPointF*>(_v) = _t->gravity(); break;
        case 5: *reinterpret_cast<bool*>(_v) = _t->autoClearForces(); break;
        case 6: *reinterpret_cast<Box2DProfile**>(_v) = _t->profile(); break;
        case 7: *reinterpret_cast<float*>(_v) = _t->pixelsPerMeter(); break;
        case 8: *reinterpret_cast<bool*>(_v) = _t->enableContactEvents(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setRunning(*reinterpret_cast<bool*>(_v)); break;
        case 1: _t->setTimeStep(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setVelocityIterations(*reinterpret_cast<int*>(_v)); break;
        case 3: _t->setPositionIterations(*reinterpret_cast<int*>(_v)); break;
        case 4: _t->setGravity(*reinterpret_cast<QPointF*>(_v)); break;
        case 5: _t->setAutoClearForces(*reinterpret_cast<bool*>(_v)); break;
        case 7: _t->setPixelsPerMeter(*reinterpret_cast<float*>(_v)); break;
        case 8: _t->setEnableContactEvents(*reinterpret_cast<bool*>(_v)); break;
        default: break;
        }
    }
}

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

void *Box2DWorld::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Box2DWorldE_t>.strings))
        return static_cast<void*>(this);
    if (!strcmp(_clname, "QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    if (!strcmp(_clname, "b2DestructionListener"))
        return static_cast< b2DestructionListener*>(this);
    if (!strcmp(_clname, "org.qt-project.Qt.QQmlParserStatus"))
        return static_cast< QQmlParserStatus*>(this);
    return QObject::qt_metacast(_clname);
}

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

// SIGNAL 0
void Box2DWorld::preSolve(Box2DContact * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Box2DWorld::postSolve(Box2DContact * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

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

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

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

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

// SIGNAL 6
void Box2DWorld::autoClearForcesChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 6, nullptr);
}

// SIGNAL 7
void Box2DWorld::runningChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 7, nullptr);
}

// SIGNAL 8
void Box2DWorld::stepped()
{
    QMetaObject::activate(this, &staticMetaObject, 8, nullptr);
}

// SIGNAL 9
void Box2DWorld::enableContactEventsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 9, nullptr);
}

// SIGNAL 10
void Box2DWorld::pixelsPerMeterChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 10, nullptr);
}
QT_WARNING_POP
