org.jagatoo.loaders.models.collada.stax
Class XMLSkin

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.stax.XMLSkin

public class XMLSkin
extends java.lang.Object

A Skin. It defines how skeletal animation should be computed. Child of Controller.


Field Summary
 XMLMatrix4x4 bindShapeMatrix
           
 java.util.ArrayList<XMLInput> jointsInputs
           
 java.lang.String source
           
 java.util.ArrayList<XMLSource> sources
           
 XMLVertexWeights vertexWeights
           
 
Constructor Summary
XMLSkin()
           
 
Method Summary
 void buildInfluences(Skeleton skeleton, int numVertices)
           
 Influence[] getInfluencesForVertex(int vertexIndex)
          Build an array of BoneWeight for easy skinning manipulation
 java.util.ArrayList<XMLInput> getJointInputs(javax.xml.stream.XMLStreamReader parser)
           
 XMLSource getJointsSource()
          Search the "skin-joints" source.
 XMLSource getWeightsSource()
          Search the "skin-weights" source.
 void parse(javax.xml.stream.XMLStreamReader parser)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

source

public java.lang.String source

bindShapeMatrix

public XMLMatrix4x4 bindShapeMatrix

sources

public java.util.ArrayList<XMLSource> sources

jointsInputs

public java.util.ArrayList<XMLInput> jointsInputs

vertexWeights

public XMLVertexWeights vertexWeights
Constructor Detail

XMLSkin

public XMLSkin()
Method Detail

getJointsSource

public XMLSource getJointsSource()
Search the "skin-joints" source. Maybe there is a better way get that


getWeightsSource

public XMLSource getWeightsSource()
Search the "skin-weights" source. Maybe there is a better way get that


buildInfluences

public void buildInfluences(Skeleton skeleton,
                            int numVertices)

getInfluencesForVertex

public Influence[] getInfluencesForVertex(int vertexIndex)
Build an array of BoneWeight for easy skinning manipulation


parse

public void parse(javax.xml.stream.XMLStreamReader parser)
           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException

getJointInputs

public java.util.ArrayList<XMLInput> getJointInputs(javax.xml.stream.XMLStreamReader parser)
                                             throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException