|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jme.scene.Spatial
com.jme.scene.Node
com.jme.animation.SkinNode
com.jme.animation.SkinTransferNode
public class SkinTransferNode
A non-parented SkinNode which is enforced to be used only for holding SkinNode Geometry skins.
Specifically, this SkinNode will throw if you attempt to parent it, or if you attempt to set skeleton, controller, animation, or other non-skin-geometry properties.
This class is intended to be used for classes dedicated for usage as a SkinNode.assimilate() targets.
Especially useful is the skinRegion attribute. Unlike normal SkinNodes, this class does not allow different skinRegions per Geometry, but the skinRegion of this SkinTransferNode applies to all its Geometries. When a SkinTransferNode is assimilated which has a non-null skinRegion, it will replace all currently loaded skin Geometries of that same skinRegion. (Except for same-named Geometries, which are retained instead of replaced).
SkinNode.assimilate(SkinNode),
Serialized Form| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.jme.scene.Spatial |
|---|
Spatial.CullHint, Spatial.LightCombineMode, Spatial.NormalsMode, Spatial.TextureCombineMode |
| Field Summary | |
|---|---|
protected java.lang.String |
skinRegion
|
| Fields inherited from class com.jme.animation.SkinNode |
|---|
bindMatrix, cache, connectionPoints, geometryRegions, needsRefresh, newSkeletonAssigned, normal, skeleton, skins, vertex |
| Fields inherited from class com.jme.scene.Node |
|---|
children |
| Fields inherited from class com.jme.scene.Spatial |
|---|
collisionBits, cullHint, frustrumIntersects, geometricalControllers, lightCombineMode, localRotation, localScale, localTranslation, LOCKED_BOUNDS, LOCKED_BRANCH, LOCKED_MESH_DATA, LOCKED_NONE, LOCKED_SHADOWS, LOCKED_TRANSFORMS, lockedMode, name, normalsMode, parent, queueDistance, renderQueueMode, renderStateList, textureCombineMode, worldBound, worldRotation, worldScale, worldTranslation, zOrder |
| Constructor Summary | |
|---|---|
SkinTransferNode()
Empty Constructor to be used internally only. |
|
SkinTransferNode(java.lang.String name)
|
|
| Method Summary | |
|---|---|
void |
addBoneInfluence(int geomIndex,
int vert,
Bone bone,
float weight)
Do not use thos method with SkinTransferNodes. |
void |
assignSkeletonBoneInfluences()
Do not use thos method with SkinTransferNodes. |
protected void |
assimilate(Geometry newSkinGeo,
java.util.ArrayList<BoneInfluence>[] newInfluences)
Do not use thos method with SkinTransferNodes. |
java.lang.String |
getAnimationString()
|
Bone |
getSkeleton()
|
java.lang.String |
getSkinRegion()
|
boolean |
hasSkinGeometry(java.lang.String geoName,
java.lang.String matchSkinRegion)
|
void |
read(JMEImporter e)
|
void |
regenInfluenceOffsets()
Do not use thos method with SkinTransferNodes. |
void |
remapInfluences(VertMap mappings,
int geomIndex)
Do not use thos method with SkinTransferNodes. |
void |
setAnimation(BoneAnimation anim)
Do not use thos method with SkinTransferNodes. |
void |
setAnimation(int index)
Do not use thos method with SkinTransferNodes. |
void |
setAnimation(java.lang.String name)
Do not use thos method with SkinTransferNodes. |
void |
setBindMatrix(Matrix4f mat)
Do not use thos method with SkinTransferNodes. |
protected void |
setParent(Node parent)
Do not use thos method with SkinTransferNodes. |
void |
setSkeleton(Bone b)
Do not use thos method with SkinTransferNodes. |
void |
setSkinRegion(Geometry skinGeometry,
java.lang.String skinRegion)
Do not use thos method with SkinTransferNodes. |
void |
setSkinRegion(java.lang.String skinRegion)
Sets the target skin region. |
void |
updateSkin()
Do not use thos method with SkinTransferNodes. |
void |
write(JMEExporter e)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface com.jme.util.export.Savable |
|---|
getClassTag |
| Field Detail |
|---|
protected java.lang.String skinRegion
| Constructor Detail |
|---|
public SkinTransferNode()
public SkinTransferNode(java.lang.String name)
| Method Detail |
|---|
public java.lang.String getSkinRegion()
public void setSkinRegion(java.lang.String skinRegion)
protected void setParent(Node parent)
setParent in class Spatialparent - the parent of this node.
public void addBoneInfluence(int geomIndex,
int vert,
Bone bone,
float weight)
addBoneInfluence in class SkinNodegeomIndex - the geometry child that contains the vertex to be affected.vert - the index to the vertex.bone - the bone that affects the vertex.weight - the weight that the bone will affect the vertex.public void setAnimation(BoneAnimation anim)
setAnimation in class SkinNodepublic void setAnimation(int index)
setAnimation in class SkinNodepublic void setAnimation(java.lang.String name)
setAnimation in class SkinNodepublic java.lang.String getAnimationString()
getAnimationString in class SkinNodepublic void setSkeleton(Bone b)
setSkeleton in class SkinNodepublic Bone getSkeleton()
getSkeleton in class SkinNodepublic void assignSkeletonBoneInfluences()
assignSkeletonBoneInfluences in class SkinNodepublic void regenInfluenceOffsets()
regenInfluenceOffsets in class SkinNodepublic void updateSkin()
updateSkin in class SkinNodepublic void setBindMatrix(Matrix4f mat)
setBindMatrix in class SkinNode
public void remapInfluences(VertMap mappings,
int geomIndex)
remapInfluences in class SkinNode
protected void assimilate(Geometry newSkinGeo,
java.util.ArrayList<BoneInfluence>[] newInfluences)
public void write(JMEExporter e)
throws java.io.IOException
write in interface Savablewrite in class SkinNodejava.io.IOException
public void read(JMEImporter e)
throws java.io.IOException
read in interface Savableread in class SkinNodejava.io.IOException
public void setSkinRegion(Geometry skinGeometry,
java.lang.String skinRegion)
setSkinRegion in class SkinNodeskinGeometry - Should already be a skin geometry of this SkinNode.
If it isn't, it will have no effect and no indication will be given.
(The entry will get lazily culled in the future).
public boolean hasSkinGeometry(java.lang.String geoName,
java.lang.String matchSkinRegion)
hasSkinGeometry in class SkinNodematchSkinRegion - null means match any (including no) skin region
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||