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
qquick3dparticletrailemitter_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 QQUICK3DPARTICLETRAILEMITTER_H
7#define QQUICK3DPARTICLETRAILEMITTER_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 <QtQuick3DParticles/private/qquick3dparticleemitter_p.h>
21#include <QtQuick3DParticles/private/qquick3dparticle_p.h>
22#include <QtQuick3DParticles/private/qquick3dparticledata_p.h>
23#include <QQmlEngine>
24#include <QList>
25
27
28class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleTrailEmitter : public QQuick3DParticleEmitter
29{
30 Q_OBJECT
31 Q_PROPERTY(QQuick3DParticle *follow READ follow WRITE setFollow NOTIFY followChanged)
32 QML_NAMED_ELEMENT(TrailEmitter3D)
33 QML_ADDED_IN_VERSION(6, 2)
34
35public:
36 QQuick3DParticleTrailEmitter(QQuick3DNode *parent = nullptr);
37
38 QQuick3DParticle *follow() const;
39
40 Q_INVOKABLE void burst(int count) override;
41
42public Q_SLOTS:
43 void setFollow(QQuick3DParticle *follow);
44
45Q_SIGNALS:
46 void followChanged();
47
48protected:
49 friend class QQuick3DParticleSystem;
50 void emitTrailParticles(const QVector3D &centerPos, int emitAmount, int triggerType, const QVector3D &normal, const QVector3D &velocity);
51 bool hasBursts() const;
52 void clearBursts();
53
54private:
55 QQuick3DParticle *m_follow = nullptr;
56 QList<QQuick3DParticleEmitBurstData> m_bursts;
57
58};
59
60QT_END_NAMESPACE
61
62#endif // QQUICK3DPARTICLETRAILEMITTER_H
Combined button and popup list for selecting options.
Q_TRACE_POINT(qtcore, QCoreApplication_postEvent_exit)
Q_TRACE_POINT(qtquick3d, QSSG_particleUpdate_exit, int particleCount)
static QVector3D mix(const QVector3D &a, const QVector3D &b, float f)