| 1 | // Copyright (C) 2021 The Qt Company Ltd. |
| 2 | // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only |
| 3 | |
| 4 | #ifndef QQUICK3DPARTICLEDIRECTION_H |
| 5 | #define QQUICK3DPARTICLEDIRECTION_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 <QVector3D> |
| 20 | #include <QtQml/qqml.h> |
| 21 | |
| 22 | #include <QtQuick3DParticles/qtquick3dparticlesglobal.h> |
| 23 | #include <QtQuick3DParticles/private/qquick3dparticledata_p.h> |
| 24 | |
| 25 | QT_BEGIN_NAMESPACE |
| 26 | |
| 27 | class QQuick3DParticleSystem; |
| 28 | |
| 29 | class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleDirection : public QObject |
| 30 | { |
| 31 | Q_OBJECT |
| 32 | QML_ANONYMOUS |
| 33 | QML_ADDED_IN_VERSION(6, 2) |
| 34 | |
| 35 | public: |
| 36 | QQuick3DParticleDirection(QObject *parent = nullptr); |
| 37 | virtual QVector3D sample(const QQuick3DParticleData &d) = 0; |
| 38 | |
| 39 | protected: |
| 40 | friend class QQuick3DParticleEmitter; |
| 41 | |
| 42 | QQuick3DParticleSystem *m_system = nullptr; |
| 43 | }; |
| 44 | |
| 45 | QT_END_NAMESPACE |
| 46 | |
| 47 | #endif // QQUICK3DPARTICLEDIRECTION_H |
| 48 | |