|
||||||||||
| 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.Articulated.Node
public static class Articulated.Node
A node in the model.
| Field Summary | |
|---|---|
int |
lastUpdate
The value of the update counter at the last update (used when applying animation transforms to determine which transform is being applied first). |
float |
totalWeight
The total weight of the animation transforms applied to this node. |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Articulated.Node(GlContext ctx,
Scope parentScope,
ArticulatedConfig.Node config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
Creates a new node. |
|
| Method Summary | |
|---|---|
void |
composite()
Composites this node. |
void |
createSurfaces(GlContext ctx,
ModelConfig.Imported.MaterialMapping[] materialMappings,
Map<String,MaterialConfig> materialConfigs)
Creates the surfaces of this node. |
void |
enqueue()
Enqueues this object for rendering. |
Matrix4f |
getBoneMatrix()
Returns this node's bone matrix (and flags it as a bone, if not already flagged). |
ArticulatedConfig.Node |
getConfig()
Returns a reference to the configuration of this node. |
boolean |
getIntersection(Ray3D ray,
Vector3f result)
Checks for an intersection between the mesh in this node (if any) and the supplied ray. |
Transform3D |
getLocalTransform()
Returns a reference to this node's local transform. |
Transform3D |
getParentViewTransform()
Returns a reference to the parent view transform. |
Transform3D |
getParentWorldTransform()
Returns a reference to the parent world transform. |
String |
getScopeName()
Returns the name of this scope for purposes of qualification. |
Transform3D |
getViewTransform()
Returns a reference to this node's view transform. |
Transform3D |
getWorldTransform()
Returns a reference to this node's world transform. |
void |
setConfig(ArticulatedConfig.Node config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
Sets the configuration of this node. |
void |
setUpdater(Updater updater)
Sets the updater to call after updating the view transform. |
void |
update()
Updates the node for the current frame. |
| 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 |
| Field Detail |
|---|
public int lastUpdate
public float totalWeight
| Constructor Detail |
|---|
public Articulated.Node(GlContext ctx,
Scope parentScope,
ArticulatedConfig.Node config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
| Method Detail |
|---|
public void setConfig(ArticulatedConfig.Node config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
public ArticulatedConfig.Node getConfig()
public Transform3D getParentWorldTransform()
public Transform3D getParentViewTransform()
public Transform3D getLocalTransform()
public Transform3D getWorldTransform()
public Transform3D getViewTransform()
public Matrix4f getBoneMatrix()
public void setUpdater(Updater updater)
public void createSurfaces(GlContext ctx,
ModelConfig.Imported.MaterialMapping[] materialMappings,
Map<String,MaterialConfig> materialConfigs)
public void update()
public boolean getIntersection(Ray3D ray,
Vector3f result)
public void composite()
public void enqueue()
Enqueueable
enqueue in interface Enqueueablepublic 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 | |||||||||