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
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
4#ifndef QQUICK3DPARTICLETRAILEMITTER_H
5#define QQUICK3DPARTICLETRAILEMITTER_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 <QtQuick3DParticles/private/qquick3dparticleemitter_p.h>
19#include <QtQuick3DParticles/private/qquick3dparticle_p.h>
20#include <QtQuick3DParticles/private/qquick3dparticledata_p.h>
21#include <QQmlEngine>
22#include <QList>
23
25
26class Q_QUICK3DPARTICLES_EXPORT QQuick3DParticleTrailEmitter : public QQuick3DParticleEmitter
27{
29 Q_PROPERTY(QQuick3DParticle *follow READ follow WRITE setFollow NOTIFY followChanged)
30 QML_NAMED_ELEMENT(TrailEmitter3D)
32
33public:
35
36 QQuick3DParticle *follow() const;
37
38 Q_INVOKABLE void burst(int count) override;
39
40public Q_SLOTS:
41 void setFollow(QQuick3DParticle *follow);
42
44 void followChanged();
45
46protected:
48 void emitTrailParticles(const QVector3D &centerPos, int emitAmount, int triggerType);
49 bool hasBursts() const;
50 void clearBursts();
51
53 QQuick3DParticle *m_follow = nullptr;
55
56};
57
59
60#endif // QQUICK3DPARTICLETRAILEMITTER_H
Definition qlist.h:75
The QVector3D class represents a vector or vertex in 3D space.
Definition qvectornd.h:171
Combined button and popup list for selecting options.
GLenum GLenum GLsizei count
#define QML_NAMED_ELEMENT(NAME)
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_PROPERTY(...)
#define Q_OBJECT
#define Q_INVOKABLE
#define Q_SLOTS
#define Q_SIGNALS