|
|||||||||
| 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.model.Static
public class Static
A static model implementation.
| Field Summary | |
|---|---|
protected Box |
_bounds
The bounds of the model. |
protected StaticConfig.Resolved |
_config
The model configuration. |
protected GlContext |
_ctx
The application context. |
protected Transform3D |
_localTransform
The local transform. |
protected Box |
_nbounds
Holds the new bounds of the model when updating. |
protected Transform3D |
_parentViewTransform
The parent view transform. |
protected Transform3D |
_parentWorldTransform
The parent world transform. |
protected Surface[] |
_surfaces
The surfaces corresponding to each visible mesh. |
protected TransformState |
_transformState
The shared transform state. |
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 | |
|---|---|
Static(GlContext ctx,
Scope parentScope,
StaticConfig.Resolved config)
Creates a new static implementation. |
|
| Method Summary | |
|---|---|
void |
composite()
Adds this object's Dependencys and Enqueueables to the compositor in
preparation for rendering. |
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. |
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). |
void |
setConfig(StaticConfig.Resolved 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. |
| Methods inherited from class com.threerings.opengl.model.Model.Implementation |
|---|
attach, createAnimation, createSurface, createSurfaces, createSurfaces, detach, detachAll, getAnimation, getAnimations, getPlayingAnimations, getPointWorldTransform, getScopeName, getTickPolicy, hasCompleted, isImplementation, reset, setTickPolicy, tick, 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 StaticConfig.Resolved _config
protected Surface[] _surfaces
@Bound(value="worldTransform") protected Transform3D _parentWorldTransform
@Bound(value="viewTransform") protected Transform3D _parentViewTransform
@Bound protected Transform3D _localTransform
@Scoped protected Transform3D _worldTransform
@Scoped protected TransformState _transformState
@Scoped protected Box _bounds
protected Box _nbounds
| Constructor Detail |
|---|
public Static(GlContext ctx,
Scope parentScope,
StaticConfig.Resolved config)
| Method Detail |
|---|
public void setConfig(StaticConfig.Resolved config)
public void enqueue()
Enqueueable
enqueue in interface Enqueueablepublic 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.Implementation
public boolean getIntersection(Ray3D ray,
Vector3f result)
Intersectable
getIntersection in interface IntersectablegetIntersection 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()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||