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

#include "../../../../../qt3d/src/extras/geometries/qcuboidgeometry.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 'qcuboidgeometry.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.12.0. 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_ZN10Qt3DExtras15QCuboidGeometryE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DExtras::QCuboidGeometry::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DExtras15QCuboidGeometryE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DExtras::QCuboidGeometry",
        "xExtentChanged",
        "",
        "xExtent",
        "yExtentChanged",
        "yExtent",
        "zExtentChanged",
        "zExtent",
        "yzMeshResolutionChanged",
        "QSize",
        "yzMeshResolution",
        "xzMeshResolutionChanged",
        "xzMeshResolution",
        "xyMeshResolutionChanged",
        "xyMeshResolution",
        "setXExtent",
        "setYExtent",
        "setZExtent",
        "setYZMeshResolution",
        "resolution",
        "setXZMeshResolution",
        "setXYMeshResolution",
        "positionAttribute",
        "Qt3DCore::QAttribute*",
        "normalAttribute",
        "texCoordAttribute",
        "tangentAttribute",
        "indexAttribute"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'xExtentChanged'
        QtMocHelpers::SignalData<void(float)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 3 },
        }}),
        // Signal 'yExtentChanged'
        QtMocHelpers::SignalData<void(float)>(4, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Signal 'zExtentChanged'
        QtMocHelpers::SignalData<void(float)>(6, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 7 },
        }}),
        // Signal 'yzMeshResolutionChanged'
        QtMocHelpers::SignalData<void(const QSize &)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'xzMeshResolutionChanged'
        QtMocHelpers::SignalData<void(const QSize &)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 12 },
        }}),
        // Signal 'xyMeshResolutionChanged'
        QtMocHelpers::SignalData<void(const QSize &)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 14 },
        }}),
        // Slot 'setXExtent'
        QtMocHelpers::SlotData<void(float)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 3 },
        }}),
        // Slot 'setYExtent'
        QtMocHelpers::SlotData<void(float)>(16, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 5 },
        }}),
        // Slot 'setZExtent'
        QtMocHelpers::SlotData<void(float)>(17, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 7 },
        }}),
        // Slot 'setYZMeshResolution'
        QtMocHelpers::SlotData<void(const QSize &)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 19 },
        }}),
        // Slot 'setXZMeshResolution'
        QtMocHelpers::SlotData<void(const QSize &)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 19 },
        }}),
        // Slot 'setXYMeshResolution'
        QtMocHelpers::SlotData<void(const QSize &)>(21, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 19 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'xExtent'
        QtMocHelpers::PropertyData<float>(3, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'yExtent'
        QtMocHelpers::PropertyData<float>(5, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 1),
        // property 'zExtent'
        QtMocHelpers::PropertyData<float>(7, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'xyMeshResolution'
        QtMocHelpers::PropertyData<QSize>(14, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 5),
        // property 'yzMeshResolution'
        QtMocHelpers::PropertyData<QSize>(10, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 3),
        // property 'xzMeshResolution'
        QtMocHelpers::PropertyData<QSize>(12, 0x80000000 | 9, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag, 4),
        // property 'positionAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(22, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'normalAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(24, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'texCoordAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(25, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'tangentAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(26, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'indexAttribute'
        QtMocHelpers::PropertyData<Qt3DCore::QAttribute*>(27, 0x80000000 | 23, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QCuboidGeometry, qt_meta_tag_ZN10Qt3DExtras15QCuboidGeometryE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DExtras::QCuboidGeometry::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QGeometry::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras15QCuboidGeometryE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras15QCuboidGeometryE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DExtras15QCuboidGeometryE_t>.metaTypes,
    nullptr
} };

void Qt3DExtras::QCuboidGeometry::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QCuboidGeometry *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->xExtentChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 1: _t->yExtentChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 2: _t->zExtentChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->yzMeshResolutionChanged((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 4: _t->xzMeshResolutionChanged((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 5: _t->xyMeshResolutionChanged((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 6: _t->setXExtent((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 7: _t->setYExtent((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 8: _t->setZExtent((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 9: _t->setYZMeshResolution((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 10: _t->setXZMeshResolution((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        case 11: _t->setXYMeshResolution((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QCuboidGeometry::*)(float )>(_a, &QCuboidGeometry::xExtentChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QCuboidGeometry::*)(float )>(_a, &QCuboidGeometry::yExtentChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QCuboidGeometry::*)(float )>(_a, &QCuboidGeometry::zExtentChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QCuboidGeometry::*)(const QSize & )>(_a, &QCuboidGeometry::yzMeshResolutionChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (QCuboidGeometry::*)(const QSize & )>(_a, &QCuboidGeometry::xzMeshResolutionChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (QCuboidGeometry::*)(const QSize & )>(_a, &QCuboidGeometry::xyMeshResolutionChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 10:
        case 9:
        case 8:
        case 7:
        case 6:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QAttribute* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<float*>(_v) = _t->xExtent(); break;
        case 1: *reinterpret_cast<float*>(_v) = _t->yExtent(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->zExtent(); break;
        case 3: *reinterpret_cast<QSize*>(_v) = _t->xyMeshResolution(); break;
        case 4: *reinterpret_cast<QSize*>(_v) = _t->yzMeshResolution(); break;
        case 5: *reinterpret_cast<QSize*>(_v) = _t->xzMeshResolution(); break;
        case 6: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->positionAttribute(); break;
        case 7: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->normalAttribute(); break;
        case 8: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->texCoordAttribute(); break;
        case 9: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->tangentAttribute(); break;
        case 10: *reinterpret_cast<Qt3DCore::QAttribute**>(_v) = _t->indexAttribute(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setXExtent(*reinterpret_cast<float*>(_v)); break;
        case 1: _t->setYExtent(*reinterpret_cast<float*>(_v)); break;
        case 2: _t->setZExtent(*reinterpret_cast<float*>(_v)); break;
        case 3: _t->setXYMeshResolution(*reinterpret_cast<QSize*>(_v)); break;
        case 4: _t->setYZMeshResolution(*reinterpret_cast<QSize*>(_v)); break;
        case 5: _t->setXZMeshResolution(*reinterpret_cast<QSize*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DExtras::QCuboidGeometry::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DExtras15QCuboidGeometryE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QGeometry::qt_metacast(_clname);
}

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

// SIGNAL 0
void Qt3DExtras::QCuboidGeometry::xExtentChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DExtras::QCuboidGeometry::yExtentChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DExtras::QCuboidGeometry::zExtentChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DExtras::QCuboidGeometry::yzMeshResolutionChanged(const QSize & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DExtras::QCuboidGeometry::xzMeshResolutionChanged(const QSize & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 4, nullptr, _t1);
}

// SIGNAL 5
void Qt3DExtras::QCuboidGeometry::xyMeshResolutionChanged(const QSize & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 5, nullptr, _t1);
}
QT_WARNING_POP
