md3.md3view
Class MD3GLModel

java.lang.Object
  |
  +--md3.md3model.MD3Model
        |
        +--md3.md3view.MD3GLModel

public class MD3GLModel
extends MD3Model

This class extends MD3Model objects with animation state data.

Author:
Erwin Vervaet (erwin@cs.kuleuven.ac.be)
See Also:
Serialized Form

Field Summary
 int currentFrame
          Currently rendered animation key frame of this model.
 float interpolationFraction
          Interpolation position between currentFrame and nextFrame.
 int nextFrame
          Next animation key frame of the model.
 
Fields inherited from class md3.md3model.MD3Model
boneFrameNum, boneFrames, boneFrameStart, filename, fileSize, id, linkedModels, loadFilename, maxTextureNum, meshes, meshNum, meshStart, tagNum, tagStart, version
 
Constructor Summary
protected MD3GLModel(java.lang.String filename)
           
protected MD3GLModel(java.lang.String name, java.io.InputStream in)
           
 
Method Summary
 void accept(MD3GLModelVisitor v)
           
 
Methods inherited from class md3.md3model.MD3Model
accept, addLinkedModel, animated, getParent, getParentTagIndex, getTagIndexByName, linkedModels, removeLinkedModel
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

currentFrame

public int currentFrame

Currently rendered animation key frame of this model. Note that this model could actually be only a part of a larger model. Every part has its own current frame!


nextFrame

public int nextFrame

Next animation key frame of the model.


interpolationFraction

public transient float interpolationFraction

Interpolation position between currentFrame and nextFrame. The value should be in the interval [0,1]!

Constructor Detail

MD3GLModel

protected MD3GLModel(java.lang.String filename)
              throws java.io.IOException

MD3GLModel

protected MD3GLModel(java.lang.String name,
                     java.io.InputStream in)
              throws java.io.IOException
Method Detail

accept

public void accept(MD3GLModelVisitor v)