|
|||||||||
| 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 | |
|---|---|
protected Transform3D |
_boneTransform
The bone transform, for nodes used as bones. |
protected ArticulatedConfig.Node |
_config
The node configuration. |
protected GlContext |
_ctx
The renderer context. |
protected Transform3D |
_localTransform
The node's local transform. |
protected Transform3D |
_parentViewTransform
A reference to the parent view transform. |
protected Transform3D |
_parentWorldTransform
A reference to the parent world transform. |
protected Updater |
_updater
An updater to apply after updating the view transform. |
protected Transform3D |
_viewTransform
The node's view transform. |
protected Transform3D |
_worldTransform
The node's world transform. |
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 class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
protected |
Articulated.Node(GlContext ctx,
Scope parentScope)
Constructor for subclasses. |
|
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 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public int lastUpdate
public float totalWeight
protected GlContext _ctx
protected ArticulatedConfig.Node _config
protected Transform3D _parentWorldTransform
protected Transform3D _parentViewTransform
protected Transform3D _localTransform
@Scoped protected Transform3D _worldTransform
@Scoped protected Transform3D _viewTransform
protected Transform3D _boneTransform
protected Updater _updater
| Constructor Detail |
|---|
public Articulated.Node(GlContext ctx,
Scope parentScope,
ArticulatedConfig.Node config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
protected Articulated.Node(GlContext ctx,
Scope parentScope)
| 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 | ||||||||