org.jagatoo.loaders.models.cal3d.core
Class CalSaver

java.lang.Object
  extended by org.jagatoo.loaders.models.cal3d.core.CalSaver

public class CalSaver
extends java.lang.Object

Provides static methods for writing Cal3D elements to backing store.


Constructor Summary
CalSaver()
           
 
Method Summary
static void saveCoreAnimation(java.io.OutputStream file, CalCoreAnimation coreAnimation)
          Saves a core animation instance.
protected static void saveCoreBones(java.io.DataOutput file, CalCoreBone coreBone)
          Saves a core bone instance.
protected static void saveCoreKeyframe(java.io.DataOutput file, CalCoreKeyframe coreKeyframe)
          Saves a core keyframe instance.
static void saveCoreMaterial(java.io.OutputStream file, CalCoreMaterial coreMaterial)
          Saves a core material instance.
static void saveCoreMesh(java.io.OutputStream file, CalCoreMesh coreMesh)
          Saves a core mesh instance.
static void saveCoreSkeleton(java.io.OutputStream file, CalCoreSkeleton coreSkeleton)
          Saves a core skeleton instance.
protected static void saveCoreSubmesh(java.io.DataOutput out, CalCoreSubmesh coreSubmesh)
          Saves a core submesh instance.
protected static void saveCoreTrack(java.io.DataOutput file, CalCoreTrack coreTrack)
          Saves a core track instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CalSaver

public CalSaver()
Method Detail

saveCoreAnimation

public static void saveCoreAnimation(java.io.OutputStream file,
                                     CalCoreAnimation coreAnimation)
                              throws java.io.IOException
Saves a core animation instance. This function saves a core animation instance to a stream.

Throws:
java.io.IOException

saveCoreBones

protected static void saveCoreBones(java.io.DataOutput file,
                                    CalCoreBone coreBone)
                             throws java.io.IOException
Saves a core bone instance. This function saves a core bone instance to a file stream.

Parameters:
file - The file stream to save the core bone instance to.
coreBone - A pointer to the core bone instance that should be saved.
Throws:
java.io.IOException

saveCoreKeyframe

protected static void saveCoreKeyframe(java.io.DataOutput file,
                                       CalCoreKeyframe coreKeyframe)
                                throws java.io.IOException
Saves a core keyframe instance. This function saves a core keyframe instance to a file stream.

Parameters:
file - The file stream to save the core keyframe instance to.
coreKeyframe - A pointer to the core keyframe instance that should be saved.
Throws:
java.io.IOException

saveCoreMaterial

public static void saveCoreMaterial(java.io.OutputStream file,
                                    CalCoreMaterial coreMaterial)
                             throws java.io.IOException
Saves a core material instance. This function saves a core material instance to a file.

Parameters:
file - The name of the file to save the core material instance to.
coreMaterial - A pointer to the core material instance that should be saved.
Throws:
java.io.IOException

saveCoreMesh

public static void saveCoreMesh(java.io.OutputStream file,
                                CalCoreMesh coreMesh)
                         throws java.io.IOException
Saves a core mesh instance. This function saves a core mesh instance to a file.

Parameters:
file - The name of the file to save the core mesh instance to.
coreMesh - A pointer to the core mesh instance that should be saved.
Throws:
java.io.IOException

saveCoreSkeleton

public static void saveCoreSkeleton(java.io.OutputStream file,
                                    CalCoreSkeleton coreSkeleton)
                             throws java.io.IOException
Saves a core skeleton instance. This function saves a core skeleton instance to a file.

Parameters:
file - The name of the file to save the core skeleton instance to.
coreSkeleton - A pointer to the core skeleton instance that should be saved.
Throws:
java.io.IOException

saveCoreSubmesh

protected static void saveCoreSubmesh(java.io.DataOutput out,
                                      CalCoreSubmesh coreSubmesh)
                               throws java.io.IOException
Saves a core submesh instance. This function saves a core submesh instance to a file stream.

Parameters:
out - The file stream to save the core submesh instance to.
coreSubmesh - A pointer to the core submesh instance that should be saved.
Throws:
java.io.IOException

saveCoreTrack

protected static void saveCoreTrack(java.io.DataOutput file,
                                    CalCoreTrack coreTrack)
                             throws java.io.IOException
Saves a core track instance. This function saves a core track instance to a file stream.

Parameters:
file - The file stream to save the core track instance to.
coreTrack - A pointer to the core track instance that should be saved.
Throws:
java.io.IOException