Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
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
26
QT_BEGIN_NAMESPACE
27
28
class
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
35
public
:
36
QQuick3DParticleTrailEmitter(QQuick3DNode *parent =
nullptr
);
37
38
QQuick3DParticle *follow()
const
;
39
40
Q_INVOKABLE
void
burst(
int
count) override;
41
42
public
Q_SLOTS:
43
void
setFollow(QQuick3DParticle *follow);
44
45
Q_SIGNALS:
46
void
followChanged();
47
48
protected
:
49
friend
class
QQuick3DParticleSystem;
50
void
emitTrailParticles(
const
QVector3D ¢erPos,
int
emitAmount,
int
triggerType,
const
QVector3D &normal,
const
QVector3D &velocity);
51
bool
hasBursts()
const
;
52
void
clearBursts();
53
54
private
:
55
QQuick3DParticle *m_follow =
nullptr
;
56
QList<QQuick3DParticleEmitBurstData> m_bursts;
57
58
};
59
60
QT_END_NAMESPACE
61
62
#
endif
// QQUICK3DPARTICLETRAILEMITTER_H
QQuick3DParticleTrailEmitter
Definition
qquick3dparticletrailemitter_p.h:29
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_TRACE_POINT
Q_TRACE_POINT(qtcore, QCoreApplication_postEvent_exit)
Q_TRACE_POINT
Q_TRACE_POINT(qtquick3d, QSSG_particleUpdate_exit, int particleCount)
mix
static QVector3D mix(const QVector3D &a, const QVector3D &b, float f)
Definition
qquick3dparticlesystem.cpp:624
qtquick3d
src
quick3dparticles
qquick3dparticletrailemitter_p.h
Generated on
for Qt by
1.18.0