|
|||||||||
| 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.scene.ViewerAffecter
public class ViewerAffecter
A model implementation that exerts an effect on the viewer.
| Field Summary | |
|---|---|
protected Box |
_bounds
The bounds of the system. |
protected ViewerAffecterConfig |
_config
The model configuration. |
protected GlContext |
_ctx
The application context. |
protected ViewerEffect |
_effect
The effect. |
protected int |
_influenceFlags
Flags indicating which influences can affect the model. |
protected Transform3D |
_localTransform
The local transform. |
protected Box |
_nbounds
Holds the bounds of the model when updating. |
protected Transform3D |
_parentWorldTransform
The parent world transform. |
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 | |
|---|---|
ViewerAffecter(GlContext ctx,
Scope parentScope,
ViewerAffecterConfig config)
Creates a new affecter implementation. |
|
| Method Summary | |
|---|---|
void |
drawBounds()
Draws the bounds of the model in immediate mode. |
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. |
boolean |
hasCompleted()
Determines whether the model (such as a transient effect) has completed. |
void |
reset()
Resets the state of this model. |
void |
setConfig(ViewerAffecterConfig config)
Sets the configuration of this model. |
void |
updateBounds()
Updates the bounds of the model. |
protected void |
updateFromConfig()
Updates the model to match its new or modified configuration. |
void |
wasAdded()
Notes that the model was added to a scene. |
void |
willBeRemoved()
Notes that the model will be removed from the scene. |
| Methods inherited from class com.threerings.opengl.model.Model.Implementation |
|---|
attach, composite, createAnimation, createSurface, createSurfaces, createSurfaces, detach, detachAll, getAnimation, getAnimations, getIntersection, getPlayingAnimations, getPointWorldTransform, getScopeName, getTickPolicy, isImplementation, setTickPolicy, tick |
| 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 ViewerAffecterConfig _config
protected ViewerEffect _effect
@Bound(value="worldTransform") protected Transform3D _parentWorldTransform
@Bound protected Transform3D _localTransform
@Scoped protected Transform3D _worldTransform
protected int _influenceFlags
@Scoped protected Box _bounds
protected Box _nbounds
| Constructor Detail |
|---|
public ViewerAffecter(GlContext ctx,
Scope parentScope,
ViewerAffecterConfig config)
| Method Detail |
|---|
public void setConfig(ViewerAffecterConfig config)
public 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 void wasAdded()
Model.Implementation
wasAdded in class Model.Implementationpublic void willBeRemoved()
Model.Implementation
willBeRemoved in class Model.Implementationprotected void updateFromConfig()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||