@JsType(isNative=true, namespace="Cesium", name="ParticleSystem") public class ParticleSystem extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ParticleSystem.UpdateCallback |
Modifier and Type | Field and Description |
---|---|
Event |
complete
Fires an event when the particle system has reached the end of its lifetime.
|
double |
emissionRate
The number of particles to emit per second.
|
ParticleEmitter |
emitter
The particle emitter for this system.
|
Matrix4 |
emitterModelMatrix
The 4x4 transformation matrix that transforms the particle system emitter within the particle systems local coordinate system.
|
Color |
endColor
The color of a particle when it dies.
|
double |
endScale
The scale of the particle when it dies.
|
Object |
image
The URI, HTMLImageElement, or HTMLCanvasElement to use for the billboard.
|
boolean |
isComplete
When true, the particle system has reached the end of its lifetime; false otherwise.
|
double |
lifetime
How long the particle system will emit particles, in seconds.
|
boolean |
loop
Whether the particle system should loop it's bursts when it is complete.
|
Cartesian2 |
maximumImageSize
Sets the maximum bound, width by height, below which to randomly scale the particle image's dimensions in pixels.
|
double |
maximumMass
Sets the maximum mass of particles in kilograms.
|
double |
maximumParticleLife
Sets the maximum bound in seconds for the possible duration of a particle's life below which a particle's actual
life will be randomly chosen.
|
double |
maximumSpeed
Sets the maximum speed in meters per second.
|
Cartesian2 |
minimumImageSize
Sets the minimum bound, width by height, above which to randomly scale the particle image's dimensions in pixels.
|
double |
minimumMass
Sets the minimum mass of particles in kilograms.
|
double |
minimumParticleLife
Sets the minimum bound in seconds for the possible duration of a particle's life above which a particle's actual
life will be randomly chosen.
|
double |
minimumSpeed
Sets the minimum speed in meters per second.
|
Matrix4 |
modelMatrix
The 4x4 transformation matrix that transforms the particle system from model to world coordinates.
|
boolean |
show
Whether to display the particle system.
|
Color |
startColor
The color of a particle when it is born.
|
double |
startScale
The scale of the particle when it is born.
|
Constructor and Description |
---|
ParticleSystem()
A ParticleSystem manages the updating and display of a collection of particles.
|
ParticleSystem(ParticleSystemOptions options)
A ParticleSystem manages the updating and display of a collection of particles.
|
Modifier and Type | Method and Description |
---|---|
void |
destroy()
Destroys the WebGL resources held by this object.
|
boolean |
isDestroyed()
Returns true if this object was destroyed; otherwise, false.
|
@JsProperty public Event complete
@JsProperty public ParticleEmitter emitter
@JsProperty public Matrix4 emitterModelMatrix
Matrix4.IDENTITY()
.@JsProperty public Color endColor
Color.WHITE()
.@JsProperty public double endScale
@JsProperty public Object image
@JsProperty public boolean isComplete
@JsProperty public double lifetime
Double.MAX_VALUE
@JsProperty public boolean loop
@JsProperty public Cartesian2 maximumImageSize
@JsProperty public double maximumMass
@JsProperty public double maximumParticleLife
@JsProperty public double maximumSpeed
@JsProperty public Cartesian2 minimumImageSize
@JsProperty public double minimumMass
@JsProperty public double minimumParticleLife
@JsProperty public double minimumSpeed
@JsProperty public Matrix4 modelMatrix
Matrix4.IDENTITY()
.@JsProperty public double emissionRate
@JsProperty public boolean show
@JsProperty public Color startColor
Color.WHITE()
.@JsProperty public double startScale
@JsConstructor public ParticleSystem()
@JsConstructor public ParticleSystem(ParticleSystemOptions options)
options
- ParticleSystemOptions
.@JsMethod public void destroy()
isDestroyed()
@JsMethod public boolean isDestroyed()
Copyright © 2019. All rights reserved.