com.threerings.opengl.model
Class Articulated.MeshNode

java.lang.Object
  extended by com.threerings.expr.SimpleScope
      extended by com.threerings.opengl.model.Articulated.Node
          extended by com.threerings.opengl.model.Articulated.MeshNode
All Implemented Interfaces:
Scope, ScopeUpdateListener, Enqueueable
Enclosing class:
Articulated

public static class Articulated.MeshNode
extends Articulated.Node

A node that contains a (visible and/or collision) mesh.


Field Summary
 
Fields inherited from class com.threerings.opengl.model.Articulated.Node
lastUpdate, totalWeight
 
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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Articulated.MeshNode

public Articulated.MeshNode(GlContext ctx,
                            Scope parentScope,
                            ArticulatedConfig.MeshNode config,
                            Transform3D parentWorldTransform,
                            Transform3D parentViewTransform)
Creates a new mesh node.

Method Detail

createSurfaces

public void createSurfaces(GlContext ctx,
                           ModelConfig.Imported.MaterialMapping[] materialMappings,
                           Map<String,MaterialConfig> materialConfigs)
Description copied from class: Articulated.Node
Creates the surfaces of this node.

Overrides:
createSurfaces in class Articulated.Node

update

public void update()
Description copied from class: Articulated.Node
Updates the node for the current frame.

Overrides:
update in class Articulated.Node

getIntersection

public boolean getIntersection(Ray3D ray,
                               Vector3f result)
Description copied from class: Articulated.Node
Checks for an intersection between the mesh in this node (if any) and the supplied ray.

Overrides:
getIntersection in class Articulated.Node

composite

public void composite()
Description copied from class: Articulated.Node
Composites this node.

Overrides:
composite in class Articulated.Node

enqueue

public void enqueue()
Description copied from interface: Enqueueable
Enqueues this object for rendering.

Specified by:
enqueue in interface Enqueueable
Overrides:
enqueue in class Articulated.Node

dispose

public void dispose()
Description copied from class: SimpleScope
Releases the resources associated with this scope.

Overrides:
dispose in class SimpleScope


Copyright © 2011. All Rights Reserved.