1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
|
// Copyright (C) 2016 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
#include <math.h>
#include "qquickv4particledata_p.h"
#include <QDebug>
#include <private/qv4engine_p.h>
#include <private/qv4functionobject_p.h>
#include <QtCore/private/qnumeric_p.h>
QT_BEGIN_NAMESPACE
/*!
\qmltype Particle
\inqmlmodule QtQuick.Particles
\brief Represents particles manipulated by emitters and affectors.
\ingroup qtquick-particles
Particle elements are always managed internally by the ParticleSystem and cannot be created in QML.
However, sometimes they are exposed via signals so as to allow arbitrary changes to the particle state
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::initialX
The x coordinate of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather
than determining and changing the value at a given time. Change initial
values in CustomEmitters instead of the current values.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::initialVX
The x velocity of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather
than determining and changing the value at a given time. Change initial
values in CustomEmitters instead of the current values.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::initialAX
The x acceleration of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather
than determining and changing the value at a given time. Change initial
values in CustomEmitters instead of the current values.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::initialY
The y coordinate of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather
than determining and changing the value at a given time. Change initial
values in CustomEmitters instead of the current values.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::initialVY
The y velocity of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather
than determining and changing the value at a given time. Change initial
values in CustomEmitters instead of the current values.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::initialAY
The y acceleration of the particle at the beginning of its lifetime.
The method of simulation prefers to have the initial values changed, rather
than determining and changing the value at a given time. Change initial
values in CustomEmitters instead of the current values.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::x
The current x coordinate of the particle.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::vx
The current x velocity of the particle.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::ax
The current x acceleration of the particle.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::y
The current y coordinate of the particle.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::vy
The current y velocity of the particle.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::ay
The current y acceleration of the particle.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::t
The time, in seconds since the beginning of the simulation, that the particle was born.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::startSize
The size in pixels that the particle image is at the start
of its life.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::endSize
The size in pixels that the particle image is at the end
of its life. If this value is less than 0, then it is
disregarded and the particle will have its startSize for the
entire lifetime.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::lifeSpan
The time in seconds that the particle will live for.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::rotation
Degrees clockwise that the particle image is rotated at
the beginning of its life.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::rotationVelocity
Degrees clockwise per second that the particle image is rotated at while alive.
*/
/*!
\qmlproperty bool QtQuick.Particles::Particle::autoRotate
If autoRotate is true, then the particle's rotation will be
set so that it faces the direction of travel, plus any
rotation from the rotation or rotationVelocity properties.
*/
/*!
\qmlproperty bool QtQuick.Particles::Particle::update
Inside an Affector, the changes made to the particle will only be
applied if update is set to true.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::xDeformationVectorX
The x component of the deformation vector along the X axis. ImageParticle
can draw particles across non-square shapes. It will draw the texture rectangle
across the parallelogram drawn with the x and y deformation vectors.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::yDeformationVectorX
The y component of the deformation vector along the X axis. ImageParticle
can draw particles across non-square shapes. It will draw the texture rectangle
across the parallelogram drawn with the x and y deformation vectors.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::xDeformationVectorY
The x component of the deformation vector along the X axis. ImageParticle
can draw particles across non-square shapes. It will draw the texture rectangle
across the parallelogram drawn with the x and y deformation vectors.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::yDeformationVectorY
The y component of the deformation vector along the Y axis. ImageParticle
can draw particles across non-square shapes. It will draw the texture rectangle
across the parallelogram drawn with the x and y deformation vectors.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::red
ImageParticle can draw colorized particles. When it does so, red is used
as the red channel of the color applied to the source image.
Values are from 0.0 to 1.0.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::green
ImageParticle can draw colorized particles. When it does so, green is used
as the green channel of the color applied to the source image.
Values are from 0.0 to 1.0.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::blue
ImageParticle can draw colorized particles. When it does so, blue is used
as the blue channel of the color applied to the source image.
Values are from 0.0 to 1.0.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::alpha
ImageParticle can draw colorized particles. When it does so, alpha is used
as the alpha channel of the color applied to the source image.
Values are from 0.0 to 1.0.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::lifeLeft
The time in seconds that the particle has left to live at
the current point in time.
*/
/*!
\qmlproperty real QtQuick.Particles::Particle::currentSize
The currentSize of the particle, interpolating between startSize and endSize based on the currentTime.
*/
QT_END_NAMESPACE
|