/****************************************************************************
** Meta object code from reading C++ file 'scene3ditem_p.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/quick3d/quick3dscene3d/scene3ditem_p.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 'scene3ditem_p.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_ZN10Qt3DRender11Scene3DItemE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::Scene3DItem::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender11Scene3DItemE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::Scene3DItem",
        "QML.Element",
        "Scene3D",
        "QML.AddedInVersion",
        "512",
        "DefaultProperty",
        "entity",
        "aspectsChanged",
        "",
        "entityChanged",
        "multisampleChanged",
        "cameraAspectRatioModeChanged",
        "CameraAspectRatioMode",
        "mode",
        "hoverEnabledChanged",
        "compositingModeChanged",
        "setAspects",
        "aspects",
        "setEntity",
        "Qt3DCore::QEntity*",
        "setCameraAspectRatioMode",
        "setHoverEnabled",
        "enabled",
        "setCompositingMode",
        "CompositingMode",
        "applyRootEntityChange",
        "requestUpdate",
        "setItemAreaAndDevicePixelRatio",
        "QSize",
        "area",
        "devicePixelRatio",
        "multisample",
        "cameraAspectRatioMode",
        "hoverEnabled",
        "compositingMode",
        "AutomaticAspectRatio",
        "UserAspectRatio",
        "FBO",
        "Underlay"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'aspectsChanged'
        QtMocHelpers::SignalData<void()>(7, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'entityChanged'
        QtMocHelpers::SignalData<void()>(9, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'multisampleChanged'
        QtMocHelpers::SignalData<void()>(10, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'cameraAspectRatioModeChanged'
        QtMocHelpers::SignalData<void(enum CameraAspectRatioMode)>(11, 8, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Signal 'hoverEnabledChanged'
        QtMocHelpers::SignalData<void()>(14, 8, QMC::AccessPublic, QMetaType::Void),
        // Signal 'compositingModeChanged'
        QtMocHelpers::SignalData<void()>(15, 8, QMC::AccessPublic, QMetaType::Void),
        // Slot 'setAspects'
        QtMocHelpers::SlotData<void(const QStringList &)>(16, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::QStringList, 17 },
        }}),
        // Slot 'setEntity'
        QtMocHelpers::SlotData<void(Qt3DCore::QEntity *)>(18, 8, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 6 },
        }}),
        // Slot 'setCameraAspectRatioMode'
        QtMocHelpers::SlotData<void(enum CameraAspectRatioMode)>(20, 8, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 12, 13 },
        }}),
        // Slot 'setHoverEnabled'
        QtMocHelpers::SlotData<void(bool)>(21, 8, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Bool, 22 },
        }}),
        // Slot 'setCompositingMode'
        QtMocHelpers::SlotData<void(enum CompositingMode)>(23, 8, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 24, 13 },
        }}),
        // Slot 'applyRootEntityChange'
        QtMocHelpers::SlotData<void()>(25, 8, QMC::AccessPrivate, QMetaType::Void),
        // Slot 'requestUpdate'
        QtMocHelpers::SlotData<void()>(26, 8, QMC::AccessPrivate, QMetaType::Void),
        // Method 'setItemAreaAndDevicePixelRatio'
        QtMocHelpers::MethodData<void(QSize, qreal)>(27, 8, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 28, 29 }, { QMetaType::QReal, 30 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'entity'
        QtMocHelpers::PropertyData<Qt3DCore::QEntity*>(6, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'aspects'
        QtMocHelpers::PropertyData<QStringList>(17, QMetaType::QStringList, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 0),
        // property 'multisample'
        QtMocHelpers::PropertyData<bool>(31, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
        // property 'cameraAspectRatioMode'
        QtMocHelpers::PropertyData<enum CameraAspectRatioMode>(32, 0x80000000 | 12, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 3),
        // property 'hoverEnabled'
        QtMocHelpers::PropertyData<bool>(33, QMetaType::Bool, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 4),
        // property 'compositingMode'
        QtMocHelpers::PropertyData<enum CompositingMode>(34, 0x80000000 | 24, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 5, 0x20e),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'CameraAspectRatioMode'
        QtMocHelpers::EnumData<enum CameraAspectRatioMode>(12, 12, QMC::EnumFlags{}).add({
            {   35, CameraAspectRatioMode::AutomaticAspectRatio },
            {   36, CameraAspectRatioMode::UserAspectRatio },
        }),
        // enum 'CompositingMode'
        QtMocHelpers::EnumData<enum CompositingMode>(24, 24, QMC::EnumFlags{}).add({
            {   37, CompositingMode::FBO },
            {   38, CompositingMode::Underlay },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
            {    3,    4 },
            {    5,    6 },
    });
    return QtMocHelpers::metaObjectData<Scene3DItem, void>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Qt3DRender::Scene3DItem::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickItem::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender11Scene3DItemE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender11Scene3DItemE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender11Scene3DItemE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::Scene3DItem::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<Scene3DItem *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->aspectsChanged(); break;
        case 1: _t->entityChanged(); break;
        case 2: _t->multisampleChanged(); break;
        case 3: _t->cameraAspectRatioModeChanged((*reinterpret_cast<std::add_pointer_t<enum CameraAspectRatioMode>>(_a[1]))); break;
        case 4: _t->hoverEnabledChanged(); break;
        case 5: _t->compositingModeChanged(); break;
        case 6: _t->setAspects((*reinterpret_cast<std::add_pointer_t<QStringList>>(_a[1]))); break;
        case 7: _t->setEntity((*reinterpret_cast<std::add_pointer_t<Qt3DCore::QEntity*>>(_a[1]))); break;
        case 8: _t->setCameraAspectRatioMode((*reinterpret_cast<std::add_pointer_t<enum CameraAspectRatioMode>>(_a[1]))); break;
        case 9: _t->setHoverEnabled((*reinterpret_cast<std::add_pointer_t<bool>>(_a[1]))); break;
        case 10: _t->setCompositingMode((*reinterpret_cast<std::add_pointer_t<enum CompositingMode>>(_a[1]))); break;
        case 11: _t->applyRootEntityChange(); break;
        case 12: _t->requestUpdate(); break;
        case 13: _t->setItemAreaAndDevicePixelRatio((*reinterpret_cast<std::add_pointer_t<QSize>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<qreal>>(_a[2]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        switch (_id) {
        default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
        case 7:
            switch (*reinterpret_cast<int*>(_a[1])) {
            default: *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType(); break;
            case 0:
                *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType::fromType< Qt3DCore::QEntity* >(); break;
            }
            break;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (Scene3DItem::*)()>(_a, &Scene3DItem::aspectsChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (Scene3DItem::*)()>(_a, &Scene3DItem::entityChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (Scene3DItem::*)()>(_a, &Scene3DItem::multisampleChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (Scene3DItem::*)(CameraAspectRatioMode )>(_a, &Scene3DItem::cameraAspectRatioModeChanged, 3))
            return;
        if (QtMocHelpers::indexOfMethod<void (Scene3DItem::*)()>(_a, &Scene3DItem::hoverEnabledChanged, 4))
            return;
        if (QtMocHelpers::indexOfMethod<void (Scene3DItem::*)()>(_a, &Scene3DItem::compositingModeChanged, 5))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QEntity* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DCore::QEntity**>(_v) = _t->entity(); break;
        case 1: *reinterpret_cast<QStringList*>(_v) = _t->aspects(); break;
        case 2: *reinterpret_cast<bool*>(_v) = _t->multisample(); break;
        case 3: *reinterpret_cast<enum CameraAspectRatioMode*>(_v) = _t->cameraAspectRatioMode(); break;
        case 4: *reinterpret_cast<bool*>(_v) = _t->isHoverEnabled(); break;
        case 5: *reinterpret_cast<enum CompositingMode*>(_v) = _t->compositingMode(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setEntity(*reinterpret_cast<Qt3DCore::QEntity**>(_v)); break;
        case 1: _t->setAspects(*reinterpret_cast<QStringList*>(_v)); break;
        case 2: _t->setMultisample(*reinterpret_cast<bool*>(_v)); break;
        case 3: _t->setCameraAspectRatioMode(*reinterpret_cast<enum CameraAspectRatioMode*>(_v)); break;
        case 4: _t->setHoverEnabled(*reinterpret_cast<bool*>(_v)); break;
        case 5: _t->setCompositingMode(*reinterpret_cast<enum CompositingMode*>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DRender::Scene3DItem::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender11Scene3DItemE_t>.strings))
        return static_cast<void*>(this);
    return QQuickItem::qt_metacast(_clname);
}

int Qt3DRender::Scene3DItem::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = QQuickItem::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)
            qt_static_metacall(this, _c, _id, _a);
        _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 -= 6;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::Scene3DItem::aspectsChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void Qt3DRender::Scene3DItem::entityChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void Qt3DRender::Scene3DItem::multisampleChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void Qt3DRender::Scene3DItem::cameraAspectRatioModeChanged(CameraAspectRatioMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}

// SIGNAL 4
void Qt3DRender::Scene3DItem::hoverEnabledChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void Qt3DRender::Scene3DItem::compositingModeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 5, nullptr);
}
QT_WARNING_POP
