|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalCoreModel
public class CalCoreModel
The core model or prototype for animated character models.
| Field Summary | |
|---|---|
protected CalCoreSkeleton |
coreSkeleton
|
protected java.util.Map<java.lang.String,CalCoreAnimation> |
mapCoreAnimation
|
protected java.util.Map<java.lang.String,CalCoreMaterial> |
mapCoreMaterial
|
protected java.util.Vector<java.util.Map<java.lang.String,CalCoreMaterial>> |
mapCoreMaterialThread
|
protected java.util.Map<java.lang.String,CalCoreMesh> |
mapCoreMesh
|
protected java.util.Map<java.lang.String,CalCoreMorphAnimation> |
mapCoreMorphAnimation
|
protected java.lang.String |
name
|
protected java.util.Properties |
properties
|
protected java.lang.Object |
userData
|
| Constructor Summary | |
|---|---|
CalCoreModel(java.lang.String name)
Constructs the core model instance. |
|
CalCoreModel(java.lang.String name,
CalCoreSkeleton skeleton)
Constructs a core model with the supplied skeleton. |
|
| Method Summary | |
|---|---|
void |
addCoreAnimation(java.lang.String tag,
CalCoreAnimation coreAnimation)
/** Adds a core animation. |
void |
addCoreMaterial(java.lang.String tag,
CalCoreMaterial coreMaterial)
/** Adds a core material. |
void |
addCoreMesh(java.lang.String tag,
CalCoreMesh coreMesh)
/** Adds a core mesh. |
void |
addCoreMorphAnimation(java.lang.String tag,
CalCoreMorphAnimation coreAnimation)
/** Adds a core morph animation. |
int |
countMaterialThreadsNeeded()
Counts the number of core materials needed for this model. |
CalCoreAnimation |
getCoreAnimation(java.lang.String coreAnimationId)
/** Gets the core animation for a specified id tag. |
int |
getCoreAnimationCount()
/** The number of core animations. |
java.util.Collection<java.lang.String> |
getCoreAnimationIds()
|
java.util.Map<java.lang.String,CalCoreAnimation> |
getCoreAnimations()
|
CalCoreMaterial |
getCoreMaterial(int coreMaterialThreadId,
java.lang.String coreMaterialSetId)
Returns a specified core material ID. |
CalCoreMaterial |
getCoreMaterial(java.lang.String coreMaterialId)
/** Provides access to a core material. |
int |
getCoreMaterialCount()
This function returns the number of core materials in the core model instance. |
java.util.Collection<java.lang.String> |
getCoreMaterialIds()
|
java.util.Map<java.lang.String,CalCoreMaterial> |
getCoreMaterials()
|
java.util.Vector<java.util.Map<java.lang.String,CalCoreMaterial>> |
getCoreMaterialThreadMaps()
Gets the vector of maps from core material set to core material indexed by thread. |
CalCoreMesh |
getCoreMesh(java.lang.String coreMeshId)
Provides access to a core mesh. |
int |
getCoreMeshCount()
Returns the number of core meshes. |
java.util.Map<java.lang.String,CalCoreMesh> |
getCoreMeshes()
Gets all the core meshes in a single map |
java.util.Collection<java.lang.String> |
getCoreMeshIds()
|
CalCoreMorphAnimation |
getCoreMorphAnimation(java.lang.String coreAnimationId)
/** Gets the morph core animation for a specified id tag. |
int |
getCoreMorphAnimationCount()
/** The number of core animations. |
java.util.Map<java.lang.String,CalCoreMorphAnimation> |
getCoreMorphAnimations()
|
CalCoreSkeleton |
getCoreSkeleton()
Provides access to the core skeleton. |
java.lang.String |
getName()
|
int |
getNumCoreMaterialThreads()
Gets the number of core material threads. |
java.util.Properties |
getProperties()
Gets the properties (as key/value pairs) for this model supplied when it was loaded. |
java.lang.String |
getProperty(java.lang.String property)
|
java.lang.Object |
getUserData()
Provides access to the user data. |
void |
removeCoreAnimation(java.lang.String tag)
Removes a core animation from the core model. |
void |
removeCoreMorphAnimation(java.lang.String tag)
Removes a core morph animation from the core model. |
void |
setCoreMaterial(int coreMaterialThreadId,
java.lang.String coreMaterialSetId,
java.lang.String coreMaterialId)
Sets a core material ID. |
void |
setCoreSkeleton(CalCoreSkeleton coreSkeleton)
Sets the core skeleton. |
void |
setProperties(java.util.Properties properties)
Sets the properties for this model - usually when it is loaded. |
void |
setUserData(java.lang.Object userData)
Stores user data. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.lang.String name
protected CalCoreSkeleton coreSkeleton
protected java.util.Map<java.lang.String,CalCoreAnimation> mapCoreAnimation
protected java.util.Map<java.lang.String,CalCoreMorphAnimation> mapCoreMorphAnimation
protected java.util.Map<java.lang.String,CalCoreMesh> mapCoreMesh
protected java.util.Map<java.lang.String,CalCoreMaterial> mapCoreMaterial
protected java.util.Vector<java.util.Map<java.lang.String,CalCoreMaterial>> mapCoreMaterialThread
protected java.lang.Object userData
protected java.util.Properties properties
| Constructor Detail |
|---|
public CalCoreModel(java.lang.String name)
public CalCoreModel(java.lang.String name,
CalCoreSkeleton skeleton)
| Method Detail |
|---|
public void addCoreMesh(java.lang.String tag,
CalCoreMesh coreMesh)
tag - A name to refer to this subsequentlycoreMesh - A pointer to the core mesh that should be added.public java.util.Map<java.lang.String,CalCoreMesh> getCoreMeshes()
public java.util.Collection<java.lang.String> getCoreMeshIds()
public void addCoreAnimation(java.lang.String tag,
CalCoreAnimation coreAnimation)
tag - A name to refer to this subsequentlycoreAnimation - the core animation that should be added.public void removeCoreAnimation(java.lang.String tag)
tag - The name of the animation to remove.public java.util.Map<java.lang.String,CalCoreAnimation> getCoreAnimations()
public java.util.Collection<java.lang.String> getCoreAnimationIds()
public void addCoreMorphAnimation(java.lang.String tag,
CalCoreMorphAnimation coreAnimation)
tag - A name to refer to this subsequentlycoreAnimation - the core morph animation that should be added.public void removeCoreMorphAnimation(java.lang.String tag)
tag - The name of the animation to remove.
public void addCoreMaterial(java.lang.String tag,
CalCoreMaterial coreMaterial)
tag - A name to refer to this subsequentlycoreMaterial - A pointer to the core material that should be added.public java.util.Collection<java.lang.String> getCoreMaterialIds()
public CalCoreAnimation getCoreAnimation(java.lang.String coreAnimationId)
coreAnimationId - The ID of the core animation that should be returned.
public int getCoreAnimationCount()
public CalCoreMorphAnimation getCoreMorphAnimation(java.lang.String coreAnimationId)
coreAnimationId - The ID of the core animation that should be returned.
public java.util.Map<java.lang.String,CalCoreMorphAnimation> getCoreMorphAnimations()
public int getCoreMorphAnimationCount()
public CalCoreMaterial getCoreMaterial(java.lang.String coreMaterialId)
coreMaterialId - The ID of the core material that should be returned.
public java.util.Map<java.lang.String,CalCoreMaterial> getCoreMaterials()
public int getCoreMaterialCount()
public int countMaterialThreadsNeeded()
public CalCoreMaterial getCoreMaterial(int coreMaterialThreadId,
java.lang.String coreMaterialSetId)
coreMaterialThreadId - The ID of the core material thread.coreMaterialSetId - The ID of the core material set.
public CalCoreMesh getCoreMesh(java.lang.String coreMeshId)
coreMeshId - The ID of the core mesh that should be returned.
public int getCoreMeshCount()
public CalCoreSkeleton getCoreSkeleton()
public java.lang.Object getUserData()
public void setCoreMaterial(int coreMaterialThreadId,
java.lang.String coreMaterialSetId,
java.lang.String coreMaterialId)
coreMaterialThreadId - The ID of the core material thread.coreMaterialSetId - The ID of the core maetrial set.coreMaterialId - The ID of the core maetrial.public int getNumCoreMaterialThreads()
public java.util.Vector<java.util.Map<java.lang.String,CalCoreMaterial>> getCoreMaterialThreadMaps()
public void setCoreSkeleton(CalCoreSkeleton coreSkeleton)
coreSkeleton - The core skeleton that should be set.public void setUserData(java.lang.Object userData)
userData - The user data that should be stored.public java.util.Properties getProperties()
public java.lang.String getProperty(java.lang.String property)
public void setProperties(java.util.Properties properties)
public java.lang.String getName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||