|
||||||||||
| 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
public abstract static class Model.Implementation
The actual model implementation.
| Field Summary |
|---|
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Model.Implementation(Scope parentScope)
Creates a new implementation. |
|
| Method Summary | |
|---|---|
void |
attach(String point,
Model model,
boolean replace)
Attaches the specified model at the given point. |
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
Animation |
createAnimation()
Creates an animation for the model or returns null if not supported. |
void |
detach(Model model)
Detaches an attached model. |
void |
detachAll(String point)
Detaches any models attached to the specified point. |
void |
drawBounds()
Draws the bounds of the model in immediate mode. |
Animation |
getAnimation(String name)
Retrieves an animation by name. |
Animation[] |
getAnimations()
Returns the model's list of animations. |
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 |
getIntersection(Ray3D ray,
Vector3f result)
Finds the intersection of a ray with this object and places it in the supplied vector (if it exists). |
List<Animation> |
getPlayingAnimations()
Returns a list of all animations currently playing. |
Transform3D |
getPointWorldTransform(String point)
Returns a reference to the world transform of the given point. |
String |
getScopeName()
Returns the name of this scope for purposes of qualification. |
SceneElement.TickPolicy |
getTickPolicy()
Returns the tick policy of the model. |
boolean |
hasCompleted()
Determines whether the model (such as a transient effect) has completed. |
boolean |
isImplementation(Model.Implementation impl)
Returns true if this is the implementation. |
void |
reset()
Resets the state of this model. |
void |
setTickPolicy(SceneElement.TickPolicy policy)
Sets the tick policy of the model. |
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. |
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.expr.SimpleScope |
|---|
addListener, dispose, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Model.Implementation(Scope parentScope)
| Method Detail |
|---|
public Transform3D getPointWorldTransform(String point)
public void attach(String point,
Model model,
boolean replace)
replace - if true, replace any existing attachments at the point.public void detach(Model model)
public void detachAll(String point)
public List<Animation> getPlayingAnimations()
public Animation getAnimation(String name)
public Animation[] getAnimations()
public Animation createAnimation()
null if not supported.
public boolean hasCompleted()
public void reset()
public int getInfluenceFlags()
public Box getBounds()
public void updateBounds()
public void drawBounds()
public void setTickPolicy(SceneElement.TickPolicy policy)
public SceneElement.TickPolicy getTickPolicy()
public void wasAdded()
public void willBeRemoved()
public boolean isImplementation(Model.Implementation impl)
public void tick(float elapsed)
Tickable
tick in interface Tickable
public boolean getIntersection(Ray3D ray,
Vector3f result)
Intersectable
getIntersection in interface Intersectablepublic void composite()
CompositableDependencys and Enqueueables to the compositor in
preparation for rendering.
composite in interface Compositablepublic String getScopeName()
Scopenull
if qualified symbols cannot specifically address this scope.
getScopeName in interface ScopegetScopeName in class SimpleScope
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||