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
|
#include "pluginmain.h"
#include "spritestate.h"
#include "spriteengine.h"
#include "particleaffector.h"
#include "wanderaffector.h"
//#include "rockingaffector.h"
//#include "scalingaffector.h"
#include "gravityaffector.h"
#include "driftaffector.h"
#include "gravitationalsingularityaffector.h"
#include "frictionaffector.h"
#include "meanderaffector.h"
#include "attractoraffector.h"
#include "speedlimitaffector.h"
#include "killaffector.h"
//#include "zoneaffector.h"
//#include "toggleaffector.h"
#include "spritegoalaffector.h"
#include "swarmaffector.h"
#include "turbulenceaffector.h"
#include "particlesystem.h"
#include "particleemitter.h"
//#include "spriteemitter.h"
#include "trailsemitter.h"
#include "particle.h"
#include "coloredparticle.h"
#include "spriteparticle.h"
//#include "pairedparticle.h"
#include "spriteimage.h"
#include "followemitter.h"
#include "particleextruder.h"
#include "ellipseextruder.h"
#include "maskextruder.h"
#include "varyingvector.h"
#include "pointvector.h"
#include "angledvector.h"
#include "directedvector.h"
//#include "followaffector.h"
#include "V1/qdeclarativeparticles_p.h"
QT_BEGIN_NAMESPACE
void ParticlesPlugin::registerTypes(const char *uri)
{
Q_ASSERT(QLatin1String(uri) == QLatin1String("Qt.labs.particles"));
qmlRegisterType<QDeclarativeParticles>(uri, 1, 0, "Particles");
qmlRegisterType<QDeclarativeParticleMotion>(uri,1,0,"ParticleMotion");
qmlRegisterType<QDeclarativeParticleMotionGravity>(uri,1,0,"ParticleMotionGravity");
qmlRegisterType<QDeclarativeParticleMotionLinear>(uri,1,0,"ParticleMotionLinear");
qmlRegisterType<QDeclarativeParticleMotionWander>(uri,1,0,"ParticleMotionWander");
qmlRegisterType<SpriteState>(uri, 2, 0, "Sprite");
qmlRegisterType<SpriteEngine>(uri, 2, 0, "SpriteEngine");
qmlRegisterType<SpriteImage>(uri, 2, 0, "SpriteImage");
qmlRegisterType<ParticleSystem>(uri, 2, 0, "ParticleSystem");
qmlRegisterType<ParticleType>(uri, 2, 0, "Particle");
qmlRegisterType<ColoredParticle>(uri, 2, 0, "ColoredParticle");
qmlRegisterType<SpriteParticle>(uri, 2, 0, "SpriteParticle");
//qmlRegisterType<PairedParticle>(uri, 2, 0, "PairedParticle");
qmlRegisterType<ParticleEmitter>(uri, 2, 0, "ParticleEmitter");
qmlRegisterType<TrailsEmitter>(uri, 2, 0, "TrailEmitter");
qmlRegisterType<FollowEmitter>(uri, 2, 0, "FollowEmitter");
qmlRegisterType<ParticleExtruder>(uri, 2, 0, "Box");
qmlRegisterType<EllipseExtruder>(uri, 2, 0, "Ellipse");
qmlRegisterType<MaskExtruder>(uri, 2, 0, "Mask");
qmlRegisterType<VaryingVector>(uri, 2, 0, "NullVector");
qmlRegisterType<PointVector>(uri, 2, 0, "PointVector");
qmlRegisterType<AngledVector>(uri, 2, 0, "AngleVector");
qmlRegisterType<DirectedVector>(uri, 2, 0, "DirectedVector");
qmlRegisterType<ParticleAffector>(uri, 2, 0, "ParticleAffector");
qmlRegisterType<WanderAffector>(uri, 2, 0, "Wander");
//qmlRegisterType<ScalingAffector>(uri, 2, 0, "Scale");
//qmlRegisterType<RockingAffector>(uri, 2, 0, "Rocking");
qmlRegisterType<DriftAffector>(uri, 2, 0, "Drift");
qmlRegisterType<FrictionAffector>(uri, 2, 0, "Friction");
qmlRegisterType<GravitationalSingularityAffector>(uri, 2, 0, "GravitationalSingularity");
qmlRegisterType<AttractorAffector>(uri, 2, 0, "Attractor");
qmlRegisterType<MeanderAffector>(uri, 2, 0, "Meander");
qmlRegisterType<SpeedLimitAffector>(uri, 2, 0, "SpeedLimit");
qmlRegisterType<GravityAffector>(uri, 2, 0, "Gravity");
//qmlRegisterType<ZoneAffector>(uri, 2, 0, "Zone");
//qmlRegisterType<ToggleAffector>(uri, 2, 0, "Toggle");
qmlRegisterType<KillAffector>(uri, 2, 0, "Kill");
qmlRegisterType<SpriteGoalAffector>(uri, 2, 0, "SpriteGoal");
qmlRegisterType<SwarmAffector>(uri, 2, 0 , "Swarm");
qmlRegisterType<TurbulenceAffector>(uri, 2, 0 , "Turbulence");
}
Q_EXPORT_PLUGIN2(Particles, ParticlesPlugin);
QT_END_NAMESPACE
|