|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalModel
public class CalModel
An instance of a core model with its own positions for the bones. The Cal3d structure is very open but it is my intention to close this off and move much of the data into native storage so an optimised mechanism can do the bone transforms - either using the vector co-pro or on the graphics hardware with a vertex program. In the meantime avoid manipulating CalBones directly. For multithreading purposes this is usually the object to synchronize on.
| Field Summary | |
|---|---|
protected CalCoreModel |
coreModel
|
protected java.lang.String |
currentMaterialSet
|
protected java.util.List<CalMesh> |
meshes
|
protected CalMixer |
mixer
|
protected CalPhysique |
physique
|
protected CalSkeleton |
skeleton
|
protected CalSpringSystem |
springSystem
|
protected java.lang.Object |
userData
|
| Constructor Summary | |
|---|---|
CalModel(CalCoreModel coreModel)
Constructs the model instance. |
|
CalModel(CalModel other)
Constructs a near clone of the supplied model. |
|
| Method Summary | |
|---|---|
void |
attachMesh(java.lang.String coreMeshId)
Attachs a mesh. |
void |
detachAllMeshes()
|
boolean |
detachMesh(java.lang.String coreMeshId)
Detaches a mesh. |
void |
finalize()
Destructs the model instance. |
CalCoreModel |
getCoreModel()
Provides access to the core model. |
java.lang.String |
getMaterialSet()
|
CalMesh |
getMesh(java.lang.String coreMeshId)
Provides access to an attached mesh. |
java.util.List<CalMesh> |
getMeshes()
Returns the mesh vector. |
CalMixer |
getMixer()
Provides access to the mixer. |
CalPhysique |
getPhysique()
Provides access to the physique. |
CalSkeleton |
getSkeleton()
Provides access to the skeleton. |
CalSpringSystem |
getSpringSystem()
Provides access to the spring system. |
java.lang.Object |
getUserData()
Provides access to the user data. |
void |
setCoreSkeleton(CalCoreSkeleton coreSkeleton)
Sets the skeleton to a new instance of the coreSkeleton. |
void |
setLodLevel(float lodLevel)
Sets the LOD level. |
void |
setMaterialSet(java.util.List<CalCoreMaterial> materials)
|
void |
setMaterialSet(java.lang.String setId)
Sets the material set. |
void |
setUserData(java.lang.Object userData)
Stores user data. |
void |
update(float deltaTime)
Updates the model instance. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalCoreModel coreModel
protected CalSkeleton skeleton
protected CalMixer mixer
protected CalPhysique physique
protected CalSpringSystem springSystem
protected java.lang.Object userData
protected java.util.List<CalMesh> meshes
protected java.lang.String currentMaterialSet
| Constructor Detail |
|---|
public CalModel(CalCoreModel coreModel)
public CalModel(CalModel other)
| Method Detail |
|---|
public void finalize()
finalize in class java.lang.Objectpublic void attachMesh(java.lang.String coreMeshId)
coreMeshId - The ID of the mesh that should be attached.public boolean detachMesh(java.lang.String coreMeshId)
coreMeshId - The ID of the mesh that should be detached.
public void detachAllMeshes()
public CalCoreModel getCoreModel()
public CalMesh getMesh(java.lang.String coreMeshId)
coreMeshId - The core mesh ID of the mesh that should be returned.
public CalMixer getMixer()
public CalPhysique getPhysique()
public CalSkeleton getSkeleton()
public void setCoreSkeleton(CalCoreSkeleton coreSkeleton)
coreSkeleton - public CalSpringSystem getSpringSystem()
public java.lang.Object getUserData()
public java.util.List<CalMesh> getMeshes()
public void setLodLevel(float lodLevel)
lodLevel - The LOD level in the range [0.0, 1.0].public void setMaterialSet(java.lang.String setId)
setId - The ID of the material set.public void setMaterialSet(java.util.List<CalCoreMaterial> materials)
public java.lang.String getMaterialSet()
public void setUserData(java.lang.Object userData)
userData - The user data that should be stored.public void update(float deltaTime)
deltaTime - The elapsed time in seconds since the last update.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||