|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jagatoo.loaders.models.cal3d.core.CalSubmesh
public class CalSubmesh
The submesh class.
| Nested Class Summary | |
|---|---|
class |
CalSubmesh.PhysicalProperty
|
| Field Summary | |
|---|---|
protected CalCoreMaterial |
coreMaterial
|
protected CalCoreSubmesh |
coreSubmesh
|
protected int |
faceCount
|
protected IndexBuffer |
faceIndices
|
protected boolean |
internalData
|
protected float[] |
vectorMorphTargetWeight
|
protected CalSubmesh.PhysicalProperty[] |
vectorPhysicalProperty
|
protected int |
vertexCount
|
protected Vector3fBuffer |
vertexNormals
|
protected Vector3fBuffer |
vertexPositions
|
protected ScalarfBuffer[] |
vertexTangentCrossFactors
|
protected Vector3fBuffer[] |
vertexTangents
|
| Constructor Summary | |
|---|---|
CalSubmesh(CalCoreSubmesh coreSubmesh)
Creates a submesh based on a core submesh. |
|
| Method Summary | |
|---|---|
void |
disableInternalData()
Disable internal data (and thus springs system) |
float |
getBaseWeight()
Gets weight of the base vertices. |
CalCoreMaterial |
getCoreMaterial()
|
CalCoreSubmesh |
getCoreSubmesh()
Provides access to the core submesh. |
int |
getFaceCount()
Returns the number of faces. |
IndexBuffer |
getFaceIndices()
Provides access to the face data. |
float |
getMorphTargetWeight(int blendId)
Gets weight of a morph target with the given id. |
int |
getMorphTargetWeightCount()
|
float[] |
getVectorMorphTargetWeight()
|
CalSubmesh.PhysicalProperty[] |
getVectorPhysicalProperty()
Returns the physical property vector. |
int |
getVertexCount()
Returns the number of vertices. |
Vector3fBuffer |
getVertexNormals()
Returns the normal vector. |
Vector3fBuffer |
getVertexPositions()
Returns the vertex vector. |
Vector3fBuffer |
getVertexTangents(int mapId)
|
int |
getVertexTangentsMapCount()
|
boolean |
hasInternalData()
Returns if the submesh instance handles vertex data internally. |
boolean |
isTangentsEnabled(int mapId)
Returns true if tangent vectors are enabled. |
void |
setCoreMaterial(CalCoreMaterial coreMaterial)
Sets the core material ID. |
void |
setLodLevel(float lodLevel)
Sets the LOD level. |
void |
setMorphTargetWeight(int blendId,
float weight)
Sets weight of a morph target with the given id. |
void |
setTangentsEnabled(int mapId,
boolean enabled)
Enables (and calculates) or disables the storage of tangent spaces. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected CalCoreSubmesh coreSubmesh
protected Vector3fBuffer vertexPositions
protected Vector3fBuffer vertexNormals
protected Vector3fBuffer[] vertexTangents
protected ScalarfBuffer[] vertexTangentCrossFactors
protected IndexBuffer faceIndices
protected float[] vectorMorphTargetWeight
protected CalSubmesh.PhysicalProperty[] vectorPhysicalProperty
protected int vertexCount
protected int faceCount
protected CalCoreMaterial coreMaterial
protected boolean internalData
| Constructor Detail |
|---|
public CalSubmesh(CalCoreSubmesh coreSubmesh)
coreSubmesh - A pointer to the core submesh on which this submesh
instance should be based on.| Method Detail |
|---|
public CalCoreMaterial getCoreMaterial()
public CalCoreSubmesh getCoreSubmesh()
public int getFaceCount()
public IndexBuffer getFaceIndices()
public Vector3fBuffer getVertexNormals()
public Vector3fBuffer getVertexTangents(int mapId)
public int getVertexTangentsMapCount()
public CalSubmesh.PhysicalProperty[] getVectorPhysicalProperty()
public Vector3fBuffer getVertexPositions()
public int getVertexCount()
public boolean hasInternalData()
public void disableInternalData()
public boolean isTangentsEnabled(int mapId)
public void setTangentsEnabled(int mapId,
boolean enabled)
public void setCoreMaterial(CalCoreMaterial coreMaterial)
coreMaterial - The core material ID that should be set.public void setLodLevel(float lodLevel)
lodLevel - The LOD level in the range [0.0, 1.0].
public void setMorphTargetWeight(int blendId,
float weight)
blendId - The morph target id.weight - The weight to be set.public float getMorphTargetWeight(int blendId)
blendId - The morph target id.
public float getBaseWeight()
public float[] getVectorMorphTargetWeight()
public int getMorphTargetWeightCount()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||