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

template <> constexpr inline auto Qt3DRender::QRayCasterHit::qt_create_metaobjectdata<qt_meta_tag_ZN10Qt3DRender13QRayCasterHitE_t>()
{
    namespace QMC = QtMocConstants;
    QtMocHelpers::StringRefStorage qt_stringData {
        "Qt3DRender::QRayCasterHit",
        "toString",
        "",
        "type",
        "QRayCasterHit::HitType",
        "entityId",
        "Qt3DCore::QNodeId",
        "entity",
        "Qt3DCore::QEntity*",
        "distance",
        "localIntersection",
        "QVector3D",
        "worldIntersection",
        "primitiveIndex",
        "vertex1Index",
        "vertex2Index",
        "vertex3Index",
        "HitType",
        "TriangleHit",
        "LineHit",
        "PointHit",
        "EntityHit"
    };

    QtMocHelpers::UintData qt_methods {
        // Method 'toString'
        QtMocHelpers::MethodData<QString()>(1, 2, QMC::AccessPublic, QMetaType::QString),
    };
    QtMocHelpers::UintData qt_properties {
        // property 'type'
        QtMocHelpers::PropertyData<QRayCasterHit::HitType>(3, 0x80000000 | 4, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'entityId'
        QtMocHelpers::PropertyData<Qt3DCore::QNodeId>(5, 0x80000000 | 6, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'entity'
        QtMocHelpers::PropertyData<Qt3DCore::QEntity*>(7, 0x80000000 | 8, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'distance'
        QtMocHelpers::PropertyData<float>(9, QMetaType::Float, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'localIntersection'
        QtMocHelpers::PropertyData<QVector3D>(10, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'worldIntersection'
        QtMocHelpers::PropertyData<QVector3D>(12, 0x80000000 | 11, QMC::DefaultPropertyFlags | QMC::EnumOrFlag | QMC::Constant),
        // property 'primitiveIndex'
        QtMocHelpers::PropertyData<uint>(13, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'vertex1Index'
        QtMocHelpers::PropertyData<uint>(14, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'vertex2Index'
        QtMocHelpers::PropertyData<uint>(15, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Constant),
        // property 'vertex3Index'
        QtMocHelpers::PropertyData<uint>(16, QMetaType::UInt, QMC::DefaultPropertyFlags | QMC::Constant),
    };
    QtMocHelpers::UintData qt_enums {
        // enum 'HitType'
        QtMocHelpers::EnumData<enum HitType>(17, 17, QMC::EnumFlags{}).add({
            {   18, HitType::TriangleHit },
            {   19, HitType::LineHit },
            {   20, HitType::PointHit },
            {   21, HitType::EntityHit },
        }),
    };
    return QtMocHelpers::metaObjectData<QRayCasterHit, qt_meta_tag_ZN10Qt3DRender13QRayCasterHitE_t>(QMC::PropertyAccessInStaticMetaCall, qt_stringData,
            qt_methods, qt_properties, qt_enums);
}
Q_CONSTINIT const QMetaObject Qt3DRender::QRayCasterHit::staticMetaObject = { {
    nullptr,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QRayCasterHitE_t>.stringdata,
    qt_staticMetaObjectStaticContent<qt_meta_tag_ZN10Qt3DRender13QRayCasterHitE_t>.data,
    qt_static_metacall,
    nullptr,
    qt_staticMetaObjectRelocatingContent<qt_meta_tag_ZN10Qt3DRender13QRayCasterHitE_t>.metaTypes,
    nullptr
} };

void Qt3DRender::QRayCasterHit::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    auto *_t = reinterpret_cast<QRayCasterHit *>(_o);
    if (_c == QMetaObject::InvokeMetaMethod) {
        switch (_id) {
        case 0: { QString _r = _t->toString();
            if (_a[0]) *reinterpret_cast<QString*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    }
    if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 2:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QEntity* >(); break;
        case 1:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< Qt3DCore::QNodeId >(); break;
        }
    }
    if (_c == QMetaObject::ReadProperty) {
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast<QRayCasterHit::HitType*>(_v) = _t->type(); break;
        case 1: *reinterpret_cast<Qt3DCore::QNodeId*>(_v) = _t->entityId(); break;
        case 2: *reinterpret_cast<Qt3DCore::QEntity**>(_v) = _t->entity(); break;
        case 3: *reinterpret_cast<float*>(_v) = _t->distance(); break;
        case 4: *reinterpret_cast<QVector3D*>(_v) = _t->localIntersection(); break;
        case 5: *reinterpret_cast<QVector3D*>(_v) = _t->worldIntersection(); break;
        case 6: *reinterpret_cast<uint*>(_v) = _t->primitiveIndex(); break;
        case 7: *reinterpret_cast<uint*>(_v) = _t->vertex1Index(); break;
        case 8: *reinterpret_cast<uint*>(_v) = _t->vertex2Index(); break;
        case 9: *reinterpret_cast<uint*>(_v) = _t->vertex3Index(); break;
        default: break;
        }
    }
}
QT_WARNING_POP
