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

template <> constexpr inline auto Qt3DRender::QPickingSettings::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender16QPickingSettingsE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QPickingSettings",
        "pickMethodChanged",
        "",
        "QPickingSettings::PickMethod",
        "pickMethod",
        "pickResultModeChanged",
        "QPickingSettings::PickResultMode",
        "pickResult",
        "faceOrientationPickingModeChanged",
        "QPickingSettings::FaceOrientationPickingMode",
        "faceOrientationPickingMode",
        "worldSpaceToleranceChanged",
        "worldSpaceTolerance",
        "setPickMethod",
        "PickMethod",
        "setPickResultMode",
        "PickResultMode",
        "pickResultMode",
        "setFaceOrientationPickingMode",
        "FaceOrientationPickingMode",
        "setWorldSpaceTolerance",
        "BoundingVolumePicking",
        "TrianglePicking",
        "LinePicking",
        "PointPicking",
        "PrimitivePicking",
        "NearestPick",
        "AllPicks",
        "NearestPriorityPick",
        "FrontFace",
        "BackFace",
        "FrontAndBackFace"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'pickMethodChanged'
        QtMocHelpers::SignalData<void(QPickingSettings::PickMethod)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'pickResultModeChanged'
        QtMocHelpers::SignalData<void(QPickingSettings::PickResultMode)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 6, 7 },
        }}),
        // Signal 'faceOrientationPickingModeChanged'
        QtMocHelpers::SignalData<void(QPickingSettings::FaceOrientationPickingMode)>(8, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 9, 10 },
        }}),
        // Signal 'worldSpaceToleranceChanged'
        QtMocHelpers::SignalData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
        // Slot 'setPickMethod'
        QtMocHelpers::SlotData<void(enum PickMethod)>(13, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 14, 4 },
        }}),
        // Slot 'setPickResultMode'
        QtMocHelpers::SlotData<void(enum PickResultMode)>(15, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 16, 17 },
        }}),
        // Slot 'setFaceOrientationPickingMode'
        QtMocHelpers::SlotData<void(enum FaceOrientationPickingMode)>(18, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 19, 10 },
        }}),
        // Slot 'setWorldSpaceTolerance'
        QtMocHelpers::SlotData<void(float)>(20, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 12 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'pickMethod'
        QtMocHelpers::PropertyData<enum PickMethod>(4, 0x80000000 | 14, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'pickResultMode'
        QtMocHelpers::PropertyData<enum PickResultMode>(17, 0x80000000 | 16, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'faceOrientationPickingMode'
        QtMocHelpers::PropertyData<enum FaceOrientationPickingMode>(10, 0x80000000 | 19, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 2),
        // property 'worldSpaceTolerance'
        QtMocHelpers::PropertyData<float>(12, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 3, 0xff0a),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'PickMethod'
        QtMocHelpers::EnumData<enum PickMethod>(14, 14, QMC::EnumFlags{}).add({
            {   21, PickMethod::BoundingVolumePicking },
            {   22, PickMethod::TrianglePicking },
            {   23, PickMethod::LinePicking },
            {   24, PickMethod::PointPicking },
            {   25, PickMethod::PrimitivePicking },
        }),
        // enum 'PickResultMode'
        QtMocHelpers::EnumData<enum PickResultMode>(16, 16, QMC::EnumFlags{}).add({
            {   26, PickResultMode::NearestPick },
            {   27, PickResultMode::AllPicks },
            {   28, PickResultMode::NearestPriorityPick },
        }),
        // enum 'FaceOrientationPickingMode'
        QtMocHelpers::EnumData<enum FaceOrientationPickingMode>(19, 19, QMC::EnumFlags{}).add({
            {   29, FaceOrientationPickingMode::FrontFace },
            {   30, FaceOrientationPickingMode::BackFace },
            {   31, FaceOrientationPickingMode::FrontAndBackFace },
        }),
    };
    return QtMocHelpers::metaObjectData<QPickingSettings, qt_meta_tag_ZN10Qt3DRender16QPickingSettingsE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QPickingSettings::staticMetaObject = { {
    QMetaObject::SuperData::link<Qt3DCore::QNode::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender16QPickingSettingsE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender16QPickingSettingsE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender16QPickingSettingsE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QPickingSettings::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QPickingSettings *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->pickMethodChanged((*reinterpret_cast<std::add_pointer_t<QPickingSettings::PickMethod>>(_a[1]))); break;
        case 1: _t->pickResultModeChanged((*reinterpret_cast<std::add_pointer_t<QPickingSettings::PickResultMode>>(_a[1]))); break;
        case 2: _t->faceOrientationPickingModeChanged((*reinterpret_cast<std::add_pointer_t<QPickingSettings::FaceOrientationPickingMode>>(_a[1]))); break;
        case 3: _t->worldSpaceToleranceChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 4: _t->setPickMethod((*reinterpret_cast<std::add_pointer_t<enum PickMethod>>(_a[1]))); break;
        case 5: _t->setPickResultMode((*reinterpret_cast<std::add_pointer_t<enum PickResultMode>>(_a[1]))); break;
        case 6: _t->setFaceOrientationPickingMode((*reinterpret_cast<std::add_pointer_t<enum FaceOrientationPickingMode>>(_a[1]))); break;
        case 7: _t->setWorldSpaceTolerance((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QPickingSettings::*)(QPickingSettings::PickMethod )>(_a, &QPickingSettings::pickMethodChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPickingSettings::*)(QPickingSettings::PickResultMode )>(_a, &QPickingSettings::pickResultModeChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPickingSettings::*)(QPickingSettings::FaceOrientationPickingMode )>(_a, &QPickingSettings::faceOrientationPickingModeChanged, 2))
            return;
        if (QtMocHelpers::indexOfMethod<void (QPickingSettings::*)(float )>(_a, &QPickingSettings::worldSpaceToleranceChanged, 3))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<enum PickMethod*>(_v) = _t->pickMethod(); break;
        case 1: *reinterpret_cast<enum PickResultMode*>(_v) = _t->pickResultMode(); break;
        case 2: *reinterpret_cast<enum FaceOrientationPickingMode*>(_v) = _t->faceOrientationPickingMode(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->worldSpaceTolerance(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setPickMethod(*reinterpret_cast<enum PickMethod*>(_v)); break;
        case 1: _t->setPickResultMode(*reinterpret_cast<enum PickResultMode*>(_v)); break;
        case 2: _t->setFaceOrientationPickingMode(*reinterpret_cast<enum FaceOrientationPickingMode*>(_v)); break;
        case 3: _t->setWorldSpaceTolerance(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

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

int Qt3DRender::QPickingSettings::qt_metacall(QMetaObject::Call _c, int _id, void **_a)
{
    _id = Qt3DCore::QNode::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::QPickingSettings::pickMethodChanged(QPickingSettings::PickMethod _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QPickingSettings::pickResultModeChanged(QPickingSettings::PickResultMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QPickingSettings::faceOrientationPickingModeChanged(QPickingSettings::FaceOrientationPickingMode _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}

// SIGNAL 3
void Qt3DRender::QPickingSettings::worldSpaceToleranceChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 3, nullptr, _t1);
}
QT_WARNING_POP
