55 Q_PROPERTY(
bool paused READ isPaused WRITE setPaused NOTIFY pausedChanged)
58 Q_PROPERTY(
bool useRandomSeed READ useRandomSeed WRITE setUseRandomSeed NOTIFY useRandomSeedChanged)
60 Q_PROPERTY(
bool logging READ logging WRITE setLogging NOTIFY loggingChanged)
70 bool isPaused() const;
73 bool useRandomSeed() const;
76 int particleCount() const;
103 void setPaused(
bool paused);
105 void setTime(
int time);
106 void setUseRandomSeed(
bool randomize);
107 void setSeed(
int seed);
108 void setLogging(
bool logging);
110 void setEditorTime(
int time);
123 void componentComplete()
override;
128 void updateLoggingData();
129 void resetLoggingVariables();
130 void doSeedRandomization();
139 static bool isGloballyDisabled();
140 static bool isEditorModeOn();
152 bool m_componentComplete;
159 QList<QQuick3DParticle *> m_particles;
160 QList<QQuick3DParticleEmitter *> m_emitters;
161 QList<QQuick3DParticleTrailEmitter *> m_trailEmitters;
162 QList<QQuick3DParticleAffector *> m_affectors;
163 QMap<QQuick3DParticleAffector *, QMetaObject::Connection> m_connections;
168 int m_currentTime = 0;
171 int m_editorTime = 0;
175 qint64 m_timeAnimation = 0;
176 int m_particlesMax = 0;
177 int m_particlesUsed = 0;
179 bool m_useRandomSeed =
true;
184 int m_particleIdIndex = 0;
void updateCurrentTime(int t) override
This pure virtual function is called every time the animation's currentTime changes.
int duration() const override
This pure virtual function returns the duration of the animation, and defines for how long QAbstractA...
QQuick3DParticleSystemAnimation(QQuick3DParticleSystem *system)
void updateCurrentTime(int t) override
This pure virtual function is called every time the animation's currentTime changes.
int duration() const override
This pure virtual function returns the duration of the animation, and defines for how long QAbstractA...
void setDirty(bool dirty)
QQuick3DParticleSystemUpdate(QQuick3DParticleSystem *system)
void loggingDataChanged()
void updateCurrentTime(int currentTime)
void useRandomSeedChanged()