|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.threerings.opengl.model.tools.ModelDef.SpatialDef
public abstract static class ModelDef.SpatialDef
The abstract base class of the nodes stored in the model definition.
| Field Summary | |
|---|---|
boolean |
bone
Whether or not this node is used as a bone. |
ArrayList<ModelDef.SpatialDef> |
childDefs
The definitions of the node's children. |
String |
name
The node's name. |
String |
parent
The name of the node's parent. |
ModelDef.SpatialDef |
parentDef
The definition of the node's parent. |
boolean |
point
Whether or not this node is used as an attachment point. |
float[] |
rotation
|
float[] |
scale
|
float[] |
translation
The node's transformation. |
| Constructor Summary | |
|---|---|
ModelDef.SpatialDef()
|
|
| Method Summary | |
|---|---|
ArticulatedConfig.Node[] |
createChildNodes(ArticulatedConfig config,
boolean haveCollisionMesh)
Creates nodes for the children of this one. |
ModelConfig.MeshSet |
createMeshes(ModelConfig.Imported config)
Creates a set of meshes for this node. |
abstract ArticulatedConfig.Node |
createNode(ArticulatedConfig config,
boolean haveCollisionMesh)
Creates an articulation node. |
Matrix4f |
getTransformMatrix()
Returns the transform matrix (which includes the parent matrix). |
void |
mergeMeshes(HashMap<Object,ModelDef.TriMeshDef> meshes)
Merges meshes with the same properties under this node. |
void |
mergeMeshes(ModelDef.TriMeshDef mesh)
Merges all of the meshes under this node. |
void |
mergeSkinMeshes(HashMap<Object,ModelDef.SkinMeshDef> meshes,
HashSet<String> bones)
Finds the names of all nodes referenced as bones, merges skin meshes with the same properties. |
void |
mergeSkinMeshes(ModelDef.TriMeshDef mesh)
Merges all of the skin meshes under this node. |
void |
removeBoneWeights(String bone)
Removes influences from the named bone. |
void |
update(ArticulatedConfig config)
Updates the supplied configuration with the contents of this node. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public String name
public String parent
public float[] translation
public float[] rotation
public float[] scale
public ModelDef.SpatialDef parentDef
public ArrayList<ModelDef.SpatialDef> childDefs
public boolean bone
public boolean point
| Constructor Detail |
|---|
public ModelDef.SpatialDef()
| Method Detail |
|---|
public ModelConfig.MeshSet createMeshes(ModelConfig.Imported config)
public void update(ArticulatedConfig config)
public void mergeSkinMeshes(HashMap<Object,ModelDef.SkinMeshDef> meshes,
HashSet<String> bones)
public void removeBoneWeights(String bone)
public void mergeSkinMeshes(ModelDef.TriMeshDef mesh)
public abstract ArticulatedConfig.Node createNode(ArticulatedConfig config,
boolean haveCollisionMesh)
public ArticulatedConfig.Node[] createChildNodes(ArticulatedConfig config,
boolean haveCollisionMesh)
public void mergeMeshes(HashMap<Object,ModelDef.TriMeshDef> meshes)
public void mergeMeshes(ModelDef.TriMeshDef mesh)
public Matrix4f getTransformMatrix()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||