|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.SubMesh
public class SubMesh
| Nested Class Summary | |
|---|---|
static class |
SubMesh.AliasTextureIterator
|
static class |
SubMesh.BoneAssignmentIterator
|
static class |
SubMesh.IndexMap
|
static class |
SubMesh.VertexBoneAssignmentList
|
| Nested classes/interfaces inherited from interface org.ogre4j.ISubMesh |
|---|
ISubMesh.IAliasTextureIterator, ISubMesh.IBoneAssignmentIterator, ISubMesh.IIndexMap, ISubMesh.IVertexBoneAssignmentList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
SubMesh()
|
|
SubMesh(InstancePointer p)
This constructor is public for internal useage only! |
protected |
SubMesh(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
SubMesh(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_compileBoneAssignments()
Must be called once to compile bone assignments into geometry buffer. |
void |
_getRenderOperation(IRenderOperation rend,
int lodIndex)
Returns a structure required to render this mesh. |
void |
addBoneAssignment(IVertexBoneAssignment_s vertBoneAssign)
Assigns a vertex to a bone with a given weight, for skeletal animation. |
void |
addTextureAlias(java.lang.String aliasName,
java.lang.String textureName)
Adds the alias or replaces an existing one and associates the texture name to it. |
void |
clearBoneAssignments()
Removes all bone assignments for this mesh. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
void |
generateExtremes(int count)
Generate the submesh extremes ( |
void |
getAliasTextureIterator(ISubMesh.IAliasTextureIterator returnValue)
Gets an constant iterator to access all texture alias names assigned to this submesh. |
void |
getblendIndexToBoneIndexMap(ISubMesh.IIndexMap returnValue)
|
void |
getBoneAssignmentIterator(ISubMesh.IBoneAssignmentIterator returnValue)
Gets an iterator for access all bone assignments. |
ISubMesh.IVertexBoneAssignmentList |
getBoneAssignments()
Gets a const reference to the list of bone assignments |
void |
getextremityPoints(Ivector<IVector3> returnValue)
|
IIndexData |
getindexData()
|
java.lang.String |
getMaterialName()
|
void |
getmLodFaceList(IProgressiveMesh.ILODFaceList returnValue)
|
RenderOperation.OperationType |
getoperationType()
|
IMesh |
getparent()
|
int |
getTextureAliasCount()
Gets the number of texture aliases assigned to the sub mesh. |
boolean |
getuseSharedVertices()
|
VertexAnimationType |
getVertexAnimationType()
Get the type of any vertex animation used by dedicated geometry. |
IVertexData |
getvertexData()
|
boolean |
hasTextureAliases()
returns true if the sub mesh has texture aliases |
boolean |
isBuildEdgesEnabled()
Returns true(by default) if the submesh should be included in the mesh EdgeList, otherwise returns false. |
boolean |
isMatInitialised()
Returns true if a material has been assigned to the submesh, otherwise returns false. |
void |
removeAllTextureAliases()
removes all texture aliases from the sub mesh |
void |
removeTextureAlias(java.lang.String aliasName)
Remove a specific texture alias name from the sub mesh |
void |
setblendIndexToBoneIndexMap(ISubMesh.IIndexMap _jni_value_)
|
void |
setBuildEdgesEnabled(boolean b)
|
void |
setextremityPoints(Ivector<IVector3> _jni_value_)
|
void |
setindexData(IIndexData _jni_value_)
|
void |
setMaterialName(java.lang.String matName)
|
void |
setmLodFaceList(IProgressiveMesh.ILODFaceList _jni_value_)
|
void |
setoperationType(RenderOperation.OperationType _jni_value_)
|
void |
setparent(IMesh _jni_value_)
|
void |
setuseSharedVertices(boolean _jni_value_)
|
void |
setvertexData(IVertexData _jni_value_)
|
boolean |
updateMaterialUsingTextureAliases()
The current material used by the submesh is copied into a new material and the submesh's texture aliases are applied if the current texture alias names match those found in the original material. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public SubMesh(InstancePointer p)
protected SubMesh(InstancePointer p,
boolean remote)
public SubMesh(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public SubMesh()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObjectpublic void setMaterialName(java.lang.String matName)
setMaterialName in interface ISubMeshpublic java.lang.String getMaterialName()
getMaterialName in interface ISubMeshpublic boolean isMatInitialised()
isMatInitialised in interface ISubMesh
public void _getRenderOperation(IRenderOperation rend,
int lodIndex)
_getRenderOperation in interface ISubMeshpublic void addBoneAssignment(IVertexBoneAssignment_s vertBoneAssign)
addBoneAssignment in interface ISubMeshpublic void clearBoneAssignments()
clearBoneAssignments in interface ISubMeshpublic void getBoneAssignmentIterator(ISubMesh.IBoneAssignmentIterator returnValue)
getBoneAssignmentIterator in interface ISubMeshpublic ISubMesh.IVertexBoneAssignmentList getBoneAssignments()
getBoneAssignments in interface ISubMeshpublic void _compileBoneAssignments()
_compileBoneAssignments in interface ISubMeshpublic void getAliasTextureIterator(ISubMesh.IAliasTextureIterator returnValue)
getAliasTextureIterator in interface ISubMesh
public void addTextureAlias(java.lang.String aliasName,
java.lang.String textureName)
addTextureAlias in interface ISubMeshpublic void removeTextureAlias(java.lang.String aliasName)
removeTextureAlias in interface ISubMeshpublic void removeAllTextureAliases()
removeAllTextureAliases in interface ISubMeshpublic boolean hasTextureAliases()
hasTextureAliases in interface ISubMeshpublic int getTextureAliasCount()
getTextureAliasCount in interface ISubMeshpublic boolean updateMaterialUsingTextureAliases()
updateMaterialUsingTextureAliases in interface ISubMeshpublic VertexAnimationType getVertexAnimationType()
getVertexAnimationType in interface ISubMeshpublic void generateExtremes(int count)
generateExtremes in interface ISubMeshpublic boolean isBuildEdgesEnabled()
isBuildEdgesEnabled in interface ISubMeshpublic void setBuildEdgesEnabled(boolean b)
setBuildEdgesEnabled in interface ISubMeshpublic boolean getuseSharedVertices()
getuseSharedVertices in interface ISubMeshpublic void setuseSharedVertices(boolean _jni_value_)
setuseSharedVertices in interface ISubMeshpublic RenderOperation.OperationType getoperationType()
getoperationType in interface ISubMeshpublic void setoperationType(RenderOperation.OperationType _jni_value_)
setoperationType in interface ISubMeshpublic IVertexData getvertexData()
getvertexData in interface ISubMeshpublic void setvertexData(IVertexData _jni_value_)
setvertexData in interface ISubMeshpublic IIndexData getindexData()
getindexData in interface ISubMeshpublic void setindexData(IIndexData _jni_value_)
setindexData in interface ISubMeshpublic void getblendIndexToBoneIndexMap(ISubMesh.IIndexMap returnValue)
getblendIndexToBoneIndexMap in interface ISubMeshpublic void setblendIndexToBoneIndexMap(ISubMesh.IIndexMap _jni_value_)
setblendIndexToBoneIndexMap in interface ISubMeshpublic void getmLodFaceList(IProgressiveMesh.ILODFaceList returnValue)
getmLodFaceList in interface ISubMeshpublic void setmLodFaceList(IProgressiveMesh.ILODFaceList _jni_value_)
setmLodFaceList in interface ISubMeshpublic void getextremityPoints(Ivector<IVector3> returnValue)
getextremityPoints in interface ISubMeshpublic void setextremityPoints(Ivector<IVector3> _jni_value_)
setextremityPoints in interface ISubMeshpublic IMesh getparent()
getparent in interface ISubMeshpublic void setparent(IMesh _jni_value_)
setparent in interface ISubMesh
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||