Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquick3dparticledirection_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// Qt-Security score:significant reason:default
4
5
6#ifndef QQUICK3DPARTICLEDIRECTION_H
7#define QQUICK3DPARTICLEDIRECTION_H
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QObject>
21#include <QVector3D>
22#include <QtQml/qqml.h>
23
24#include <QtQuick3DParticles/qtquick3dparticlesglobal.h>
25#include <QtQuick3DParticles/private/qquick3dparticledata_p.h>
26
27QT_BEGIN_NAMESPACE
28
29class QQuick3DParticleSystem;
30
31class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleDirection : public QObject
32{
33 Q_OBJECT
34 QML_ANONYMOUS
35 QML_ADDED_IN_VERSION(6, 2)
36
37public:
38 QQuick3DParticleDirection(QObject *parent = nullptr);
39 virtual QVector3D sample(const QQuick3DParticleData &d) = 0;
40
41protected:
42 friend class QQuick3DParticleEmitter;
43
44 QQuick3DParticleSystem *m_system = nullptr;
45};
46
47QT_END_NAMESPACE
48
49#endif // QQUICK3DPARTICLEDIRECTION_H
Combined button and popup list for selecting options.