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

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

public class CalCoreMesh
extends java.lang.Object

The core mesh class.


Field Summary
 java.net.URL material
           
protected  java.lang.String name
           
 java.lang.String skin
           
protected  java.util.Vector<CalCoreSubmesh> vectorCoreSubmesh
           
 
Constructor Summary
CalCoreMesh()
          Constructs the core mesh instance.
 
Method Summary
 int addAsMorphTarget(CalCoreMesh coreMesh)
          Adds a core submesh as a morph target.
 int addCoreSubmesh(CalCoreSubmesh coreSubmesh)
          Adds a core submesh.
 CalCoreSubmesh getCoreSubmesh(int id)
          Provides access to a core submesh.
 int getCoreSubmeshCount()
          Returns the number of core submeshes.
 java.lang.String getName()
          The mesh's name is mostly used as a resouce handle.
 java.util.Vector<CalCoreSubmesh> getVectorCoreSubmesh()
          Returns the core submesh vector.
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected java.lang.String name

skin

public java.lang.String skin

material

public java.net.URL material

vectorCoreSubmesh

protected java.util.Vector<CalCoreSubmesh> vectorCoreSubmesh
Constructor Detail

CalCoreMesh

public CalCoreMesh()
Constructs the core mesh instance. This function is the default constructor of the core mesh instance.

Method Detail

addCoreSubmesh

public int addCoreSubmesh(CalCoreSubmesh coreSubmesh)
Adds a core submesh. This function adds a core submesh to the core mesh instance.

Parameters:
coreSubmesh - A pointer to the core submesh that should be added.
Returns:
the assigned submesh ID of the added core submesh

addAsMorphTarget

public int addAsMorphTarget(CalCoreMesh coreMesh)
Adds a core submesh as a morph target. This function adds a core mesh as a blend target. It adds appropriate CalCoreSubMorphTargets to each of the core sub meshes.

Parameters:
coreMesh - A pointer to the core mesh that shoulb become a blend target.
Returns:
the assigned morph target ID of the added blend target

getCoreSubmesh

public CalCoreSubmesh getCoreSubmesh(int id)
Provides access to a core submesh. This function returns the core submesh with the given ID.

Parameters:
id - The ID of the core submesh that should be returned.
Returns:
One of the following values: \li a pointer to the core submesh \li \b 0 if an error happend

getCoreSubmeshCount

public int getCoreSubmeshCount()
Returns the number of core submeshes. This function returns the number of core submeshes in the core mesh instance.

Returns:
The number of core submeshes.

getVectorCoreSubmesh

public java.util.Vector<CalCoreSubmesh> getVectorCoreSubmesh()
Returns the core submesh vector. This function returns the vector that contains all core submeshes of the core mesh instance.

Returns:
A reference to the core submesh vector.

getName

public java.lang.String getName()
The mesh's name is mostly used as a resouce handle.


setName

public void setName(java.lang.String name)