com.threerings.opengl.model.config
Class ArticulatedConfig.Node

java.lang.Object
  extended by com.threerings.util.DeepObject
      extended by com.threerings.opengl.model.config.ArticulatedConfig.Node
All Implemented Interfaces:
Exportable, Copyable, Cloneable
Direct Known Subclasses:
ArticulatedConfig.MeshNode
Enclosing class:
ArticulatedConfig

public static class ArticulatedConfig.Node
extends DeepObject
implements Exportable

A node within an Articulated model.


Field Summary
 ArticulatedConfig.Node[] children
          The children of the node.
 Transform3D invRefTransform
          The inverse of the reference space transform.
 String name
          The name of the node.
 Transform3D transform
          The initial transform of the node.
 
Constructor Summary
ArticulatedConfig.Node()
           
ArticulatedConfig.Node(String name, Transform3D transform, ArticulatedConfig.Node[] children)
           
 
Method Summary
 void getArticulatedNodes(GlContext ctx, Scope scope, IdentityHashMap<ArticulatedConfig.Node,Articulated.Node> onodes, ArrayList<Articulated.Node> nnodes, Transform3D parentWorldTransform, Transform3D parentViewTransform)
          (Re)creates the list of articulated nodes for this config.
 Box getBounds()
          Returns the bounds of the node's geometry.
 void getNames(ArrayList<String> names)
          Populates the supplied list with the names of all nodes.
 void getTextures(TreeSet<String> textures)
          Populates the supplied set with the names of all textures.
 void getTextureTagPairs(TreeSet<ComparableTuple<String,String>> pairs)
          Populates the supplied set with the names of all texture/tag pairs.
 void updateRefTransforms(Transform3D parentRefTransform)
          Updates the nodes' reference transforms.
 
Methods inherited from class com.threerings.util.DeepObject
clone, copy, copy, equals, hashCode, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

name

public String name
The name of the node.


transform

public Transform3D transform
The initial transform of the node.


children

public ArticulatedConfig.Node[] children
The children of the node.


invRefTransform

public transient Transform3D invRefTransform
The inverse of the reference space transform.

Constructor Detail

ArticulatedConfig.Node

public ArticulatedConfig.Node(String name,
                              Transform3D transform,
                              ArticulatedConfig.Node[] children)

ArticulatedConfig.Node

public ArticulatedConfig.Node()
Method Detail

getNames

public void getNames(ArrayList<String> names)
Populates the supplied list with the names of all nodes.


getTextures

public void getTextures(TreeSet<String> textures)
Populates the supplied set with the names of all textures.


getTextureTagPairs

public void getTextureTagPairs(TreeSet<ComparableTuple<String,String>> pairs)
Populates the supplied set with the names of all texture/tag pairs.


getBounds

public Box getBounds()
Returns the bounds of the node's geometry.


updateRefTransforms

public void updateRefTransforms(Transform3D parentRefTransform)
Updates the nodes' reference transforms.


getArticulatedNodes

public void getArticulatedNodes(GlContext ctx,
                                Scope scope,
                                IdentityHashMap<ArticulatedConfig.Node,Articulated.Node> onodes,
                                ArrayList<Articulated.Node> nnodes,
                                Transform3D parentWorldTransform,
                                Transform3D parentViewTransform)
(Re)creates the list of articulated nodes for this config.

Parameters:
onodes - the existing nodes to reuse.
nnodes - the list to contain the new nodes.


Copyright © 2011. All Rights Reserved.