|
|||||||||
| 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
com.threerings.opengl.model.Articulated.MeshNode
public static class Articulated.MeshNode
A node that contains a (visible and/or collision) mesh.
| Field Summary | |
|---|---|
protected Box |
_bounds
The bounds of the mesh. |
protected Box |
_parentBounds
The bounds of the parent. |
protected Surface |
_surface
The surface. |
protected TransformState |
_transformState
The surface transform state. |
| Fields inherited from class com.threerings.opengl.model.Articulated.Node |
|---|
_boneTransform, _config, _ctx, _localTransform, _parentViewTransform, _parentWorldTransform, _updater, _viewTransform, _worldTransform, lastUpdate, totalWeight |
| Fields inherited from class com.threerings.expr.SimpleScope |
|---|
_parentScope |
| Fields inherited from interface com.threerings.expr.Scope |
|---|
EPOCH, NOW |
| Constructor Summary | |
|---|---|
Articulated.MeshNode(GlContext ctx,
Scope parentScope,
ArticulatedConfig.MeshNode config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
Creates a new mesh 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 |
dispose()
Releases the resources associated with this scope. |
void |
enqueue()
Enqueues this object for rendering. |
boolean |
getIntersection(Ray3D ray,
Vector3f result)
Checks for an intersection between the mesh in this node (if any) and the supplied ray. |
void |
update()
Updates the node for the current frame. |
| Methods inherited from class com.threerings.opengl.model.Articulated.Node |
|---|
getBoneMatrix, getConfig, getLocalTransform, getParentViewTransform, getParentWorldTransform, getScopeName, getViewTransform, getWorldTransform, setConfig, setUpdater |
| Methods inherited from class com.threerings.expr.SimpleScope |
|---|
addListener, get, getParentScope, removeListener, scopeUpdated |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
@Bound(value="nbounds") protected Box _parentBounds
@Scoped protected Box _bounds
@Scoped protected TransformState _transformState
protected Surface _surface
| Constructor Detail |
|---|
public Articulated.MeshNode(GlContext ctx,
Scope parentScope,
ArticulatedConfig.MeshNode config,
Transform3D parentWorldTransform,
Transform3D parentViewTransform)
| Method Detail |
|---|
public void createSurfaces(GlContext ctx,
ModelConfig.Imported.MaterialMapping[] materialMappings,
Map<String,MaterialConfig> materialConfigs)
Articulated.Node
createSurfaces in class Articulated.Nodepublic void update()
Articulated.Node
update in class Articulated.Node
public boolean getIntersection(Ray3D ray,
Vector3f result)
Articulated.Node
getIntersection in class Articulated.Nodepublic void composite()
Articulated.Node
composite in class Articulated.Nodepublic void enqueue()
Enqueueable
enqueue in interface Enqueueableenqueue in class Articulated.Nodepublic void dispose()
SimpleScope
dispose in class SimpleScope
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||