|
|||||||||
| 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.model.Model.Implementation
com.threerings.opengl.effect.BaseParticleSystem
public abstract class BaseParticleSystem
Base class for ParticleSystem and MetaParticleSystem.
| Nested Class Summary | |
|---|---|
static class |
BaseParticleSystem.Layer
A single layer of the system. |
| Field Summary | |
|---|---|
protected Box |
_bounds
The bounds of the system. |
protected boolean |
_completed
If true, the particle system has completed. |
protected BaseParticleSystemConfig |
_config
The system configuration. |
protected GlContext |
_ctx
The application context. |
protected Box[] |
_groupBounds
World space bounds of each group. |
protected int |
_influenceFlags
Flags indicating which influences can affect the system. |
protected BaseParticleSystem.Layer[] |
_layers
The layers of the system. |
protected Transform3D |
_localTransform
The local transform. |
protected Box |
_nbounds
Holds the bounds of the model when updating. |
protected Transform3D |
_parentViewTransform
The parent view transform. |
protected Transform3D |
_parentWorldTransform
The parent world transform. |
protected SceneElement.TickPolicy |
_tickPolicy
The model's tick policy. |
protected static Vector3f |
_vector
Working vector. |
protected Transform3D |
_viewTransform
The view transform. |
protected boolean |
_warmed
If true, the particle system has warmed up. |
protected Transform3D |
_worldTransform
The world transform. |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
BaseParticleSystem(GlContext ctx,
Scope parentScope)
Creates a new particle system implementation. |
|
| Method Summary | |
|---|---|
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
protected abstract BaseParticleSystem.Layer |
createLayer(BaseParticleSystemConfig.Layer config)
Creates a new layer for the supplied config. |
void |
drawBounds()
Draws the bounds of the model in immediate mode. |
void |
enqueue()
Enqueues this object for rendering. |
Box |
getBounds()
Returns a reference to the bounds of the model. |
int |
getInfluenceFlags()
Returns a set of flags indicating the types of influences that affect the model. |
SceneElement.TickPolicy |
getTickPolicy()
Returns the tick policy of the model. |
boolean |
hasCompleted()
Determines whether the model (such as a transient effect) has completed. |
void |
reset()
Resets the state of this model. |
protected void |
resetBounds()
Resets the bounds before the tick. |
void |
setConfig(BaseParticleSystemConfig config)
Sets the configuration of this system. |
void |
tick(float elapsed)
Updates the state of this object based on the elapsed time in seconds. |
void |
updateBounds()
Updates the bounds of the model. |
protected void |
updateFromConfig()
Updates the model to match its new or modified configuration. |
| Methods inherited from class com.threerings.opengl.model.Model.Implementation |
|---|
attach, createAnimation, createSurface, createSurfaces, createSurfaces, detach, detachAll, getAnimation, getAnimations, getIntersection, getPlayingAnimations, getPointWorldTransform, getScopeName, isImplementation, setTickPolicy, wasAdded, willBeRemoved |
| 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
protected BaseParticleSystemConfig _config
protected BaseParticleSystem.Layer[] _layers
@Bound(value="worldTransform") protected Transform3D _parentWorldTransform
@Bound(value="viewTransform") protected Transform3D _parentViewTransform
@Bound protected Transform3D _localTransform
@Scoped protected Transform3D _worldTransform
@Scoped protected Transform3D _viewTransform
protected int _influenceFlags
@Scoped protected Box _bounds
@Scoped protected Box _nbounds
protected Box[] _groupBounds
protected SceneElement.TickPolicy _tickPolicy
protected boolean _warmed
protected boolean _completed
protected static Vector3f _vector
| Constructor Detail |
|---|
public BaseParticleSystem(GlContext ctx,
Scope parentScope)
| Method Detail |
|---|
public void setConfig(BaseParticleSystemConfig config)
public void enqueue()
Enqueueable
enqueue in interface Enqueueablepublic boolean hasCompleted()
Model.Implementation
hasCompleted in class Model.Implementationpublic void reset()
Model.Implementation
reset in class Model.Implementationpublic int getInfluenceFlags()
Model.Implementation
getInfluenceFlags in class Model.Implementationpublic Box getBounds()
Model.Implementation
getBounds in class Model.Implementationpublic void updateBounds()
Model.Implementation
updateBounds in class Model.Implementationpublic void drawBounds()
Model.Implementation
drawBounds in class Model.Implementationpublic SceneElement.TickPolicy getTickPolicy()
Model.Implementation
getTickPolicy in class Model.Implementationpublic void tick(float elapsed)
Tickable
tick in interface Tickabletick in class Model.Implementationpublic void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablecomposite in class Model.Implementationprotected void updateFromConfig()
protected abstract BaseParticleSystem.Layer createLayer(BaseParticleSystemConfig.Layer config)
protected void resetBounds()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||