/****************************************************************************
** Meta object code from reading C++ file 'qrendersettings.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/render/frontend/qrendersettings.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 'qrendersettings.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_ZN10Qt3DRender15QRenderSettingsE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QRenderSettings::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender15QRenderSettingsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QRenderSettings",
        "DefaultProperty",
        "activeFrameGraph",
        "activeFrameGraphChanged",
        "",
        "QFrameGraphNode*",
        "renderPolicyChanged",
        "RenderPolicy",
        "renderPolicy",
        "setActiveFrameGraph",
        "setRenderPolicy",
        "_q_onPickingMethodChanged",
        "QPickingSettings::PickMethod",
        "_q_onPickResultModeChanged",
        "QPickingSettings::PickResultMode",
        "_q_onFaceOrientationPickingModeChanged",
        "QPickingSettings::FaceOrientationPickingMode",
        "_q_onWorldSpaceToleranceChanged",
        "renderCapabilities",
        "Qt3DRender::QRenderCapabilities*",
        "pickingSettings",
        "Qt3DRender::QPickingSettings*",
        "Qt3DRender::QFrameGraphNode*",
        "OnDemand",
        "Always"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'activeFrameGraphChanged'
        QtMocHelpers::SignalData<void(QFrameGraphNode *)>(3, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Signal 'renderPolicyChanged'
        QtMocHelpers::SignalData<void(enum RenderPolicy)>(6, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot 'setActiveFrameGraph'
        QtMocHelpers::SlotData<void(QFrameGraphNode *)>(9, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 5, 2 },
        }}),
        // Slot 'setRenderPolicy'
        QtMocHelpers::SlotData<void(enum RenderPolicy)>(10, 4, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 7, 8 },
        }}),
        // Slot '_q_onPickingMethodChanged'
        QtMocHelpers::SlotData<void(QPickingSettings::PickMethod)>(11, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 12, 4 },
        }}),
        // Slot '_q_onPickResultModeChanged'
        QtMocHelpers::SlotData<void(QPickingSettings::PickResultMode)>(13, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 14, 4 },
        }}),
        // Slot '_q_onFaceOrientationPickingModeChanged'
        QtMocHelpers::SlotData<void(QPickingSettings::FaceOrientationPickingMode)>(15, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { 0x80000000 | 16, 4 },
        }}),
        // Slot '_q_onWorldSpaceToleranceChanged'
        QtMocHelpers::SlotData<void(float)>(17, 4, QMC::AccessPrivate, QMetaType::Void, {{
            { QMetaType::Float, 4 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'renderCapabilities'
        QtMocHelpers::PropertyData<Qt3DRender::QRenderCapabilities*>(18, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant, -1, 0x20f),
        // property 'pickingSettings'
        QtMocHelpers::PropertyData<Qt3DRender::QPickingSettings*>(20, 0x80000000 | 21, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'renderPolicy'
        QtMocHelpers::PropertyData<enum RenderPolicy>(8, 0x80000000 | 7, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'activeFrameGraph'
        QtMocHelpers::PropertyData<Qt3DRender::QFrameGraphNode*>(2, 0x80000000 | 22, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'RenderPolicy'
        QtMocHelpers::EnumData<enum RenderPolicy>(7, 7, QMC::EnumFlags{}).add({
            {   23, RenderPolicy::OnDemand },
            {   24, RenderPolicy::Always },
        }),
    };
    QtMocHelpers::UintData qt_constructors {};
    QtMocHelpers::ClassInfos qt_classinfo({
            {    1,    2 },
    });
    return QtMocHelpers::metaObjectData<QRenderSettings, qt_meta_tag_ZN10Qt3DRender15QRenderSettingsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums, qt_constructors, qt_classinfo);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QRenderSettings::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QComponent::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender15QRenderSettingsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender15QRenderSettingsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender15QRenderSettingsE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QRenderSettings::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QRenderSettings *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->activeFrameGraphChanged((*reinterpret_cast<std::add_pointer_t<QFrameGraphNode*>>(_a[1]))); break;
        case 1: _t->renderPolicyChanged((*reinterpret_cast<std::add_pointer_t<enum RenderPolicy>>(_a[1]))); break;
        case 2: _t->setActiveFrameGraph((*reinterpret_cast<std::add_pointer_t<QFrameGraphNode*>>(_a[1]))); break;
        case 3: _t->setRenderPolicy((*reinterpret_cast<std::add_pointer_t<enum RenderPolicy>>(_a[1]))); break;
        case 4: _t->d_func()->_q_onPickingMethodChanged((*reinterpret_cast<std::add_pointer_t<QPickingSettings::PickMethod>>(_a[1]))); break;
        case 5: _t->d_func()->_q_onPickResultModeChanged((*reinterpret_cast<std::add_pointer_t<QPickingSettings::PickResultMode>>(_a[1]))); break;
        case 6: _t->d_func()->_q_onFaceOrientationPickingModeChanged((*reinterpret_cast<std::add_pointer_t<QPickingSettings::FaceOrientationPickingMode>>(_a[1]))); break;
        case 7: _t->d_func()->_q_onWorldSpaceToleranceChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QRenderSettings::*)(QFrameGraphNode * )>(_a, &QRenderSettings::activeFrameGraphChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QRenderSettings::*)(RenderPolicy )>(_a, &QRenderSettings::renderPolicyChanged, 1))
            return;
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DRender::QPickingSettings* >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<Qt3DRender::QRenderCapabilities**>(_v) = _t->renderCapabilities(); break;
        case 1: *reinterpret_cast<Qt3DRender::QPickingSettings**>(_v) = _t->pickingSettings(); break;
        case 2: *reinterpret_cast<enum RenderPolicy*>(_v) = _t->renderPolicy(); break;
        case 3: *reinterpret_cast<Qt3DRender::QFrameGraphNode**>(_v) = _t->activeFrameGraph(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 2: _t->setRenderPolicy(*reinterpret_cast<enum RenderPolicy*>(_v)); break;
        case 3: _t->setActiveFrameGraph(*reinterpret_cast<Qt3DRender::QFrameGraphNode**>(_v)); break;
        default: break;
        }
    }
}

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

void *Qt3DRender::QRenderSettings::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender15QRenderSettingsE_t>.strings))
        return static_cast<void*>(this);
    return Qt3DCore::QComponent::qt_metacast(_clname);
}

int Qt3DRender::QRenderSettings::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QComponent::qt_metacall(_c, _id, _a);
    if (_id < 0)
        return _id;
    if (_c == QMetaObject::InvokeMetaMethod) {
        if (_id < 8)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 8;
    }
    if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 8)
            *reinterpret_cast<QMetaType *>(_a[0]) = QMetaType();
        _id -= 8;
    }
    if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::BindableProperty
            || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 4;
    }
    return _id;
}

// SIGNAL 0
void Qt3DRender::QRenderSettings::activeFrameGraphChanged(QFrameGraphNode * _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QRenderSettings::renderPolicyChanged(RenderPolicy _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}
QT_WARNING_POP
