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

#include "../../../../../qt3d/src/render/picking/qraycaster.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 'qraycaster.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 69
#error "This file was generated using the moc from 6.11.2. 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_ZN10Qt3DRender10QRayCasterE_t {};
} // unnamed namespace

template <> constexpr inline auto Qt3DRender::QRayCaster::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender10QRayCasterE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QRayCaster",
        "originChanged",
        "",
        "QVector3D",
        "origin",
        "directionChanged",
        "direction",
        "lengthChanged",
        "length",
        "setOrigin",
        "setDirection",
        "setLength",
        "trigger",
        "pick",
        "Qt3DRender::QAbstractRayCaster::Hits"
    };

    QtMocHelpers::UintData qt_methods {
        // Signal 'originChanged'
        QtMocHelpers::SignalData<void(const QVector3D &)>(1, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Signal 'directionChanged'
        QtMocHelpers::SignalData<void(const QVector3D &)>(5, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Signal 'lengthChanged'
        QtMocHelpers::SignalData<void(float)>(7, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 8 },
        }}),
        // Slot 'setOrigin'
        QtMocHelpers::SlotData<void(const QVector3D &)>(9, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 },
        }}),
        // Slot 'setDirection'
        QtMocHelpers::SlotData<void(const QVector3D &)>(10, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 6 },
        }}),
        // Slot 'setLength'
        QtMocHelpers::SlotData<void(float)>(11, 2, QMC::AccessPublic, QMetaType::Void, {{
            { QMetaType::Float, 8 },
        }}),
        // Slot 'trigger'
        QtMocHelpers::SlotData<void()>(12, 2, QMC::AccessPublic, QMetaType::Void),
        // Slot 'trigger'
        QtMocHelpers::SlotData<void(const QVector3D &, const QVector3D &, float)>(12, 2, QMC::AccessPublic, QMetaType::Void, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 6 }, { QMetaType::Float, 8 },
        }}),
        // Slot 'pick'
        QtMocHelpers::SlotData<Qt3DRender::QAbstractRayCaster::Hits(const QVector3D &, const QVector3D &, float)>(13, 2, QMC::AccessPublic, 0x80000000 | 14, {{
            { 0x80000000 | 3, 4 }, { 0x80000000 | 3, 6 }, { QMetaType::Float, 8 },
        }}),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'origin'
        QtMocHelpers::PropertyData<QVector3D>(4, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 0),
        // property 'direction'
        QtMocHelpers::PropertyData<QVector3D>(6, 0x80000000 | 3, QMC::DefaultPropertyFlags | QMC::Writable | QMC::EnumOrFlag | QMC::StdCppSet, 1),
        // property 'length'
        QtMocHelpers::PropertyData<float>(8, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Writable | QMC::StdCppSet, 2),
    };
    QtMocHelpers::UintData qt_enums {
    };
    return QtMocHelpers::metaObjectData<QRayCaster, qt_meta_tag_ZN10Qt3DRender10QRayCasterE_t>(QMC::MetaObjectFlag{}, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QRayCaster::staticMetaObject = { {
    QMetaObject::SuperData::link<QAbstractRayCaster::staticMetaObject>(),
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QRayCasterE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender10QRayCasterE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender10QRayCasterE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QRayCaster::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = static_cast<QRayCaster *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: _t->originChanged((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1]))); break;
        case 1: _t->directionChanged((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1]))); break;
        case 2: _t->lengthChanged((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 3: _t->setOrigin((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1]))); break;
        case 4: _t->setDirection((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1]))); break;
        case 5: _t->setLength((*reinterpret_cast<std::add_pointer_t<float>>(_a[1]))); break;
        case 6: _t->trigger(); break;
        case 7: _t->trigger((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<float>>(_a[3]))); break;
        case 8: { Qt3DRender::QAbstractRayCaster::Hits _r = _t->pick((*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[1])),(*reinterpret_cast<std::add_pointer_t<QVector3D>>(_a[2])),(*reinterpret_cast<std::add_pointer_t<float>>(_a[3])));
            if (_a[0]) *reinterpret_cast<Qt3DRender::QAbstractRayCaster::Hits*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::IndexOfMethod) {
        if (QtMocHelpers::indexOfMethod<void (QRayCaster::*)(const QVector3D & )>(_a, &QRayCaster::originChanged, 0))
            return;
        if (QtMocHelpers::indexOfMethod<void (QRayCaster::*)(const QVector3D & )>(_a, &QRayCaster::directionChanged, 1))
            return;
        if (QtMocHelpers::indexOfMethod<void (QRayCaster::*)(float )>(_a, &QRayCaster::lengthChanged, 2))
            return;
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QVector3D*>(_v) = _t->origin(); break;
        case 1: *reinterpret_cast<QVector3D*>(_v) = _t->direction(); break;
        case 2: *reinterpret_cast<float*>(_v) = _t->length(); break;
        default: break;
        }
    }
    if (_c == QMetaObject::WriteProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: _t->setOrigin(*reinterpret_cast<QVector3D*>(_v)); break;
        case 1: _t->setDirection(*reinterpret_cast<QVector3D*>(_v)); break;
        case 2: _t->setLength(*reinterpret_cast<float*>(_v)); break;
        default: break;
        }
    }
}

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

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

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

// SIGNAL 0
void Qt3DRender::QRayCaster::originChanged(const QVector3D & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 0, nullptr, _t1);
}

// SIGNAL 1
void Qt3DRender::QRayCaster::directionChanged(const QVector3D & _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 1, nullptr, _t1);
}

// SIGNAL 2
void Qt3DRender::QRayCaster::lengthChanged(float _t1)
{
    QMetaObject::activate<void>(this, &staticMetaObject, 2, nullptr, _t1);
}
QT_WARNING_POP
