Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquick3dparticleabstractshape_p.h
Go to the documentation of this file.
1// Copyright (C) 2021 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4#ifndef QQUICK3DPARTICLEABSTRACTSHAPE_H
5#define QQUICK3DPARTICLEABSTRACTSHAPE_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QObject>
19#include <QtQml/qqmlparserstatus.h>
20#include <QtQml/qqml.h>
21#include <QtQuick3DParticles/qtquick3dparticlesglobal.h>
22#include <private/qglobal_p.h>
23
25
27class QQuick3DNode;
28
29class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleAbstractShape : public QObject, public QQmlParserStatus
30{
35
36public:
37 explicit QQuick3DParticleAbstractShape(QObject *parent = nullptr);
38 // Returns position inside the shape
39 virtual QVector3D getPosition(int particleIndex) = 0;
40
41protected:
42 // These need access to m_system
45
46 // From QQmlParserStatus
47 void componentComplete() override;
48 void classBegin() override {}
49 QQuick3DNode *parentNode();
50
51 QQuick3DNode *m_parentNode = nullptr;
52 QQuick3DParticleSystem *m_system = nullptr;
53};
54
56
57#endif // QQUICK3DPARTICLEABSTRACTSHAPE_H
\inmodule QtCore
Definition qobject.h:103
The QQmlParserStatus class provides updates on the QML parser state.
void classBegin() override
Invoked after class creation, but before any properties have been set.
virtual QVector3D getPosition(int particleIndex)=0
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
#define QML_ANONYMOUS
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_OBJECT
#define Q_INTERFACES(x)