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

#include <memory>
#include "../../../../qtquick3d/src/quick3d/qquick3dviewport_p.h"
#include <QtCore/qbytearray.h>
#include <QtCore/qmetatype.h>
#if !defined(Q_MOC_OUTPUT_REVISION)
#error "The header file 'qquick3dviewport_p.h' doesn't include <QObject>."
#elif Q_MOC_OUTPUT_REVISION != 67
#error "This file was generated using the moc from 5.15.7. It"
#error "cannot be used with the include files from this version of Qt."
#error "(The moc has changed too much.)"
#endif

QT_BEGIN_MOC_NAMESPACE
QT_WARNING_PUSH
QT_WARNING_DISABLE_DEPRECATED
struct qt_meta_stringdata_QQuick3DViewport_t {
    QByteArrayData data[44];
    char stringdata0[565];
};
#define QT_MOC_LITERAL(idx, ofs, len) \
    Q_STATIC_BYTE_ARRAY_DATA_HEADER_INITIALIZER_WITH_OFFSET(len, \
    qptrdiff(offsetof(qt_meta_stringdata_QQuick3DViewport_t, stringdata0) + ofs \
        - idx * sizeof(QByteArrayData)) \
    )
static const qt_meta_stringdata_QQuick3DViewport_t qt_meta_stringdata_QQuick3DViewport = {
    {
QT_MOC_LITERAL(0, 0, 16), // "QQuick3DViewport"
QT_MOC_LITERAL(1, 17, 15), // "DefaultProperty"
QT_MOC_LITERAL(2, 33, 4), // "data"
QT_MOC_LITERAL(3, 38, 13), // "cameraChanged"
QT_MOC_LITERAL(4, 52, 0), // ""
QT_MOC_LITERAL(5, 53, 18), // "environmentChanged"
QT_MOC_LITERAL(6, 72, 12), // "sceneChanged"
QT_MOC_LITERAL(7, 85, 18), // "importSceneChanged"
QT_MOC_LITERAL(8, 104, 17), // "renderModeChanged"
QT_MOC_LITERAL(9, 122, 21), // "shaderCacheLoadErrors"
QT_MOC_LITERAL(10, 144, 6), // "errors"
QT_MOC_LITERAL(11, 151, 19), // "shaderCacheExported"
QT_MOC_LITERAL(12, 171, 7), // "success"
QT_MOC_LITERAL(13, 179, 9), // "setCamera"
QT_MOC_LITERAL(14, 189, 15), // "QQuick3DCamera*"
QT_MOC_LITERAL(15, 205, 6), // "camera"
QT_MOC_LITERAL(16, 212, 14), // "setEnvironment"
QT_MOC_LITERAL(17, 227, 25), // "QQuick3DSceneEnvironment*"
QT_MOC_LITERAL(18, 253, 11), // "environment"
QT_MOC_LITERAL(19, 265, 14), // "setImportScene"
QT_MOC_LITERAL(20, 280, 13), // "QQuick3DNode*"
QT_MOC_LITERAL(21, 294, 7), // "inScene"
QT_MOC_LITERAL(22, 302, 13), // "setRenderMode"
QT_MOC_LITERAL(23, 316, 10), // "RenderMode"
QT_MOC_LITERAL(24, 327, 10), // "renderMode"
QT_MOC_LITERAL(25, 338, 21), // "cleanupDirectRenderer"
QT_MOC_LITERAL(26, 360, 20), // "invalidateSceneGraph"
QT_MOC_LITERAL(27, 381, 14), // "mapFrom3DScene"
QT_MOC_LITERAL(28, 396, 8), // "scenePos"
QT_MOC_LITERAL(29, 405, 12), // "mapTo3DScene"
QT_MOC_LITERAL(30, 418, 7), // "viewPos"
QT_MOC_LITERAL(31, 426, 4), // "pick"
QT_MOC_LITERAL(32, 431, 18), // "QQuick3DPickResult"
QT_MOC_LITERAL(33, 450, 1), // "x"
QT_MOC_LITERAL(34, 452, 1), // "y"
QT_MOC_LITERAL(35, 454, 25), // "QQmlListProperty<QObject>"
QT_MOC_LITERAL(36, 480, 5), // "scene"
QT_MOC_LITERAL(37, 486, 11), // "importScene"
QT_MOC_LITERAL(38, 498, 11), // "renderStats"
QT_MOC_LITERAL(39, 510, 20), // "QQuick3DRenderStats*"
QT_MOC_LITERAL(40, 531, 9), // "Offscreen"
QT_MOC_LITERAL(41, 541, 8), // "Underlay"
QT_MOC_LITERAL(42, 550, 7), // "Overlay"
QT_MOC_LITERAL(43, 558, 6) // "Inline"

    },
    "QQuick3DViewport\0DefaultProperty\0data\0"
    "cameraChanged\0\0environmentChanged\0"
    "sceneChanged\0importSceneChanged\0"
    "renderModeChanged\0shaderCacheLoadErrors\0"
    "errors\0shaderCacheExported\0success\0"
    "setCamera\0QQuick3DCamera*\0camera\0"
    "setEnvironment\0QQuick3DSceneEnvironment*\0"
    "environment\0setImportScene\0QQuick3DNode*\0"
    "inScene\0setRenderMode\0RenderMode\0"
    "renderMode\0cleanupDirectRenderer\0"
    "invalidateSceneGraph\0mapFrom3DScene\0"
    "scenePos\0mapTo3DScene\0viewPos\0pick\0"
    "QQuick3DPickResult\0x\0y\0QQmlListProperty<QObject>\0"
    "scene\0importScene\0renderStats\0"
    "QQuick3DRenderStats*\0Offscreen\0Underlay\0"
    "Overlay\0Inline"
};
#undef QT_MOC_LITERAL

static const uint qt_meta_data_QQuick3DViewport[] = {

 // content:
       8,       // revision
       0,       // classname
       1,   14, // classinfo
      16,   16, // methods
       7,  132, // properties
       1,  160, // enums/sets
       0,    0, // constructors
       0,       // flags
       7,       // signalCount

 // classinfo: key, value
       1,    2,

 // signals: name, argc, parameters, tag, flags
       3,    0,   96,    4, 0x06 /* Public */,
       5,    0,   97,    4, 0x06 /* Public */,
       6,    0,   98,    4, 0x06 /* Public */,
       7,    0,   99,    4, 0x06 /* Public */,
       8,    0,  100,    4, 0x06 /* Public */,
       9,    1,  101,    4, 0x06 /* Public */,
      11,    1,  104,    4, 0x06 /* Public */,

 // slots: name, argc, parameters, tag, flags
      13,    1,  107,    4, 0x0a /* Public */,
      16,    1,  110,    4, 0x0a /* Public */,
      19,    1,  113,    4, 0x0a /* Public */,
      22,    1,  116,    4, 0x0a /* Public */,
      25,    0,  119,    4, 0x0a /* Public */,
      26,    0,  120,    4, 0x08 /* Private */,

 // methods: name, argc, parameters, tag, flags
      27,    1,  121,    4, 0x02 /* Public */,
      29,    1,  124,    4, 0x02 /* Public */,
      31,    2,  127,    4, 0x02 /* Public */,

 // signals: parameters
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void,
    QMetaType::Void, QMetaType::QByteArray,   10,
    QMetaType::Void, QMetaType::Bool,   12,

 // slots: parameters
    QMetaType::Void, 0x80000000 | 14,   15,
    QMetaType::Void, 0x80000000 | 17,   18,
    QMetaType::Void, 0x80000000 | 20,   21,
    QMetaType::Void, 0x80000000 | 23,   24,
    QMetaType::Void,
    QMetaType::Void,

 // methods: parameters
    QMetaType::QVector3D, QMetaType::QVector3D,   28,
    QMetaType::QVector3D, QMetaType::QVector3D,   30,
    0x80000000 | 32, QMetaType::Float, QMetaType::Float,   33,   34,

 // properties: name, type, flags
       2, 0x80000000 | 35, 0x00094809,
      15, 0x80000000 | 14, 0x0049590b,
      18, 0x80000000 | 17, 0x0049590b,
      36, 0x80000000 | 20, 0x00495009,
      37, 0x80000000 | 20, 0x0049590b,
      24, 0x80000000 | 23, 0x0049590b,
      38, 0x80000000 | 39, 0x00095409,

 // properties: notify_signal_id
       0,
       0,
       1,
       2,
       3,
       4,
       0,

 // enums: name, alias, flags, count, data
      23,   23, 0x0,    4,  165,

 // enum data: key, value
      40, uint(QQuick3DViewport::Offscreen),
      41, uint(QQuick3DViewport::Underlay),
      42, uint(QQuick3DViewport::Overlay),
      43, uint(QQuick3DViewport::Inline),

       0        // eod
};

void QQuick3DViewport::qt_static_metacall(QObject *_o, QMetaObject::Call _c, int _id, void **_a)
{
    if (_c == QMetaObject::InvokeMetaMethod) {
        auto *_t = static_cast<QQuick3DViewport *>(_o);
        (void)_t;
        switch (_id) {
        case 0: _t->cameraChanged(); break;
        case 1: _t->environmentChanged(); break;
        case 2: _t->sceneChanged(); break;
        case 3: _t->importSceneChanged(); break;
        case 4: _t->renderModeChanged(); break;
        case 5: _t->shaderCacheLoadErrors((*reinterpret_cast< const QByteArray(*)>(_a[1]))); break;
        case 6: _t->shaderCacheExported((*reinterpret_cast< bool(*)>(_a[1]))); break;
        case 7: _t->setCamera((*reinterpret_cast< QQuick3DCamera*(*)>(_a[1]))); break;
        case 8: _t->setEnvironment((*reinterpret_cast< QQuick3DSceneEnvironment*(*)>(_a[1]))); break;
        case 9: _t->setImportScene((*reinterpret_cast< QQuick3DNode*(*)>(_a[1]))); break;
        case 10: _t->setRenderMode((*reinterpret_cast< RenderMode(*)>(_a[1]))); break;
        case 11: _t->cleanupDirectRenderer(); break;
        case 12: _t->invalidateSceneGraph(); break;
        case 13: { QVector3D _r = _t->mapFrom3DScene((*reinterpret_cast< const QVector3D(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVector3D*>(_a[0]) = std::move(_r); }  break;
        case 14: { QVector3D _r = _t->mapTo3DScene((*reinterpret_cast< const QVector3D(*)>(_a[1])));
            if (_a[0]) *reinterpret_cast< QVector3D*>(_a[0]) = std::move(_r); }  break;
        case 15: { QQuick3DPickResult _r = _t->pick((*reinterpret_cast< float(*)>(_a[1])),(*reinterpret_cast< float(*)>(_a[2])));
            if (_a[0]) *reinterpret_cast< QQuick3DPickResult*>(_a[0]) = std::move(_r); }  break;
        default: ;
        }
    } else if (_c == QMetaObject::IndexOfMethod) {
        int *result = reinterpret_cast<int *>(_a[0]);
        {
            using _t = void (QQuick3DViewport::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::cameraChanged)) {
                *result = 0;
                return;
            }
        }
        {
            using _t = void (QQuick3DViewport::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::environmentChanged)) {
                *result = 1;
                return;
            }
        }
        {
            using _t = void (QQuick3DViewport::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::sceneChanged)) {
                *result = 2;
                return;
            }
        }
        {
            using _t = void (QQuick3DViewport::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::importSceneChanged)) {
                *result = 3;
                return;
            }
        }
        {
            using _t = void (QQuick3DViewport::*)();
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::renderModeChanged)) {
                *result = 4;
                return;
            }
        }
        {
            using _t = void (QQuick3DViewport::*)(const QByteArray & );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::shaderCacheLoadErrors)) {
                *result = 5;
                return;
            }
        }
        {
            using _t = void (QQuick3DViewport::*)(bool );
            if (*reinterpret_cast<_t *>(_a[1]) == static_cast<_t>(&QQuick3DViewport::shaderCacheExported)) {
                *result = 6;
                return;
            }
        }
    } else if (_c == QMetaObject::RegisterPropertyMetaType) {
        switch (_id) {
        default: *reinterpret_cast<int*>(_a[0]) = -1; break;
        case 0:
            *reinterpret_cast<int*>(_a[0]) = qRegisterMetaType< QQmlListProperty<QObject> >(); break;
        }
    }

#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty) {
        auto *_t = static_cast<QQuick3DViewport *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 0: *reinterpret_cast< QQmlListProperty<QObject>*>(_v) = _t->data(); break;
        case 1: *reinterpret_cast< QQuick3DCamera**>(_v) = _t->camera(); break;
        case 2: *reinterpret_cast< QQuick3DSceneEnvironment**>(_v) = _t->environment(); break;
        case 3: *reinterpret_cast< QQuick3DNode**>(_v) = _t->scene(); break;
        case 4: *reinterpret_cast< QQuick3DNode**>(_v) = _t->importScene(); break;
        case 5: *reinterpret_cast< RenderMode*>(_v) = _t->renderMode(); break;
        case 6: *reinterpret_cast< QQuick3DRenderStats**>(_v) = _t->renderStats(); break;
        default: break;
        }
    } else if (_c == QMetaObject::WriteProperty) {
        auto *_t = static_cast<QQuick3DViewport *>(_o);
        (void)_t;
        void *_v = _a[0];
        switch (_id) {
        case 1: _t->setCamera(*reinterpret_cast< QQuick3DCamera**>(_v)); break;
        case 2: _t->setEnvironment(*reinterpret_cast< QQuick3DSceneEnvironment**>(_v)); break;
        case 4: _t->setImportScene(*reinterpret_cast< QQuick3DNode**>(_v)); break;
        case 5: _t->setRenderMode(*reinterpret_cast< RenderMode*>(_v)); break;
        default: break;
        }
    } else if (_c == QMetaObject::ResetProperty) {
    }
#endif // QT_NO_PROPERTIES
}

QT_INIT_METAOBJECT const QMetaObject QQuick3DViewport::staticMetaObject = { {
    QMetaObject::SuperData::link<QQuickItem::staticMetaObject>(),
    qt_meta_stringdata_QQuick3DViewport.data,
    qt_meta_data_QQuick3DViewport,
    qt_static_metacall,
    nullptr,
    nullptr
} };


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

void *QQuick3DViewport::qt_metacast(const char *_clname)
{
    if (!_clname) return nullptr;
    if (!strcmp(_clname, qt_meta_stringdata_QQuick3DViewport.stringdata0))
        return static_cast<void*>(this);
    return QQuickItem::qt_metacast(_clname);
}

int QQuick3DViewport::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 < 16)
            qt_static_metacall(this, _c, _id, _a);
        _id -= 16;
    } else if (_c == QMetaObject::RegisterMethodArgumentMetaType) {
        if (_id < 16)
            *reinterpret_cast<int*>(_a[0]) = -1;
        _id -= 16;
    }
#ifndef QT_NO_PROPERTIES
    else if (_c == QMetaObject::ReadProperty || _c == QMetaObject::WriteProperty
            || _c == QMetaObject::ResetProperty || _c == QMetaObject::RegisterPropertyMetaType) {
        qt_static_metacall(this, _c, _id, _a);
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyDesignable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyScriptable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyStored) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyEditable) {
        _id -= 7;
    } else if (_c == QMetaObject::QueryPropertyUser) {
        _id -= 7;
    }
#endif // QT_NO_PROPERTIES
    return _id;
}

// SIGNAL 0
void QQuick3DViewport::cameraChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 0, nullptr);
}

// SIGNAL 1
void QQuick3DViewport::environmentChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 1, nullptr);
}

// SIGNAL 2
void QQuick3DViewport::sceneChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 2, nullptr);
}

// SIGNAL 3
void QQuick3DViewport::importSceneChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 3, nullptr);
}

// SIGNAL 4
void QQuick3DViewport::renderModeChanged()
{
    QMetaObject::activate(this, &staticMetaObject, 4, nullptr);
}

// SIGNAL 5
void QQuick3DViewport::shaderCacheLoadErrors(const QByteArray & _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 5, _a);
}

// SIGNAL 6
void QQuick3DViewport::shaderCacheExported(bool _t1)
{
    void *_a[] = { nullptr, const_cast<void*>(reinterpret_cast<const void*>(std::addressof(_t1))) };
    QMetaObject::activate(this, &staticMetaObject, 6, _a);
}
QT_WARNING_POP
QT_END_MOC_NAMESPACE
