|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.expr.SimpleScope
com.threerings.opengl.effect.BaseParticleSystem.Layer
public abstract static class BaseParticleSystem.Layer
A single layer of the system.
| Field Summary | |
|---|---|
protected Box |
_bounds
The bounds of the layer. |
protected ColorState |
_colorState
The inherited color state. |
protected boolean |
_completed
Whether or not the layer has completed. |
protected BaseParticleSystemConfig.Layer |
_config
The layer configuration. |
protected Counter |
_counter
The particle counter. |
protected GlContext |
_ctx
The application context. |
protected float |
_geometryRadius
The radius of the geometry (used to expand the bounds). |
protected Influence[] |
_influences
The particle influences. |
protected MutableInteger |
_living
The number of particles currently alive. |
protected Box |
_parentBounds
The parent bounds. |
protected Transform3D |
_parentViewTransform
The parent view transform. |
protected Transform3D |
_parentWorldTransform
The parent world transform. |
protected Particle[] |
_particles
The particles in the layer (first the living particles, then the pre-living particles, then the dead particles). |
protected Placer |
_placer
The particle placer. |
protected int |
_preliving
The number of particles currently "pre-alive." |
protected Shooter |
_shooter
The particle shooter. |
protected float |
_total
The total time elapsed since reset. |
protected Transform3D |
_worldTransform
The layer's transform in world space. |
protected Transform3D |
_worldTransformInv
The inverse of the world space transform. |
protected Quaternion |
_wrot
Holds the world/world inverse rotation. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
BaseParticleSystem.Layer(GlContext ctx,
Scope parentScope)
Creates a new layer. |
|
| Method Summary | |
|---|---|
protected void |
addBounds()
Adds this layer's bounds to those of its parent. |
abstract void |
composite()
Composites the layer for rendering. |
void |
drawBounds()
Draws the bounds of the layer. |
Camera |
getCamera()
Returns a reference to the camera. |
BaseParticleSystemConfig.Layer |
getConfig()
Returns a reference to the layer's config. |
String |
getScopeName()
Returns the name of this scope for purposes of qualification. |
protected void |
initParticle(int idx)
Initializes the particle at the specified index. |
Vector3f |
pointToLayer(Vector3f point,
boolean emitter)
Transforms a point in-place from world space or emitter space into the space of the layer (either world space or emitter space, depending on the value of BaseParticleSystemConfig.Layer.moveParticlesWithEmitter). |
void |
reset()
Resets the state of the layer. |
Quaternion |
rotationToLayer(Quaternion rot,
boolean emitter)
Transforms a rotation in-place from world space or emitter space into the space of the layer (either world space or emitter space, depending on the value of BaseParticleSystemConfig.Layer.moveParticlesWithEmitter). |
void |
setConfig(BaseParticleSystemConfig.Layer config)
Sets the layer's config. |
protected void |
swapParticles(int idx0,
int idx1)
Swaps the two particles at the specified indices. |
boolean |
tick(float elapsed)
Updates the current particle state based on the elapsed time in seconds. |
Vector3f |
vectorToLayer(Vector3f vector,
boolean emitter)
Transforms a vector in-place from world space or emitter space into the space of the layer (either world space or emitter space, depending on the value of BaseParticleSystemConfig.Layer.moveParticlesWithEmitter). |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, dispose, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected GlContext _ctx
@Scoped protected BaseParticleSystemConfig.Layer _config
@Bound(value="viewTransform") protected Transform3D _parentViewTransform
@Bound(value="worldTransform") protected Transform3D _parentWorldTransform
@Bound(value="nbounds") protected Box _parentBounds
@Bound protected ColorState _colorState
@Scoped protected Transform3D _worldTransform
protected Transform3D _worldTransformInv
@Scoped protected Box _bounds
protected float _geometryRadius
@Scoped protected Particle[] _particles
protected Counter _counter
protected Placer _placer
protected Shooter _shooter
protected Influence[] _influences
@Scoped protected MutableInteger _living
protected int _preliving
protected float _total
protected boolean _completed
protected Quaternion _wrot
| Constructor Detail |
|---|
public BaseParticleSystem.Layer(GlContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void setConfig(BaseParticleSystemConfig.Layer config)
public BaseParticleSystemConfig.Layer getConfig()
public Camera getCamera()
public void reset()
public boolean tick(float elapsed)
public Vector3f pointToLayer(Vector3f point,
boolean emitter)
BaseParticleSystemConfig.Layer.moveParticlesWithEmitter).
emitter - if true, transform from emitter space (else from world space).
public Vector3f vectorToLayer(Vector3f vector,
boolean emitter)
BaseParticleSystemConfig.Layer.moveParticlesWithEmitter).
emitter - if true, transform from emitter space (else from world space).
public Quaternion rotationToLayer(Quaternion rot,
boolean emitter)
BaseParticleSystemConfig.Layer.moveParticlesWithEmitter).
emitter - if true, transform from emitter space (else from world space).
public void drawBounds()
public abstract void composite()
public String getScopeName()
Scopenull
if qualified symbols cannot specifically address this scope.
getScopeName in interface ScopegetScopeName in class SimpleScope
protected void swapParticles(int idx0,
int idx1)
protected void initParticle(int idx)
protected void addBounds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||