Package com.jme3.anim
Class SingleLayerInfluenceMask
java.lang.Object
com.jme3.anim.ArmatureMask
com.jme3.anim.SingleLayerInfluenceMask
- All Implemented Interfaces:
AnimationMask,Savable
Mask that excludes joints from participating in the layer if a higher layer
is using those joints in an animation.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedFor serialization only.SingleLayerInfluenceMask(String targetLayer, AnimComposer animComposer) Instantiate a mask that affects no joints.SingleLayerInfluenceMask(String targetLayer, AnimComposer animComposer, Armature armature) Instantiate a mask that affects all joints in the specified Armature. -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if the specified target is contained within this mask.Get the layer this mask is targeted for.voidread(JmeImporter im) voidsetAnimComposer(AnimComposer animComposer) Sets the animation composer for this mask.voidwrite(JmeExporter ex) Methods inherited from class com.jme3.anim.ArmatureMask
addAncestors, addBones, addFromJoint, createMask, createMask, remove, removeAncestors, removeJoints
-
Constructor Details
-
SingleLayerInfluenceMask
protected SingleLayerInfluenceMask()For serialization only. Do not use -
SingleLayerInfluenceMask
Instantiate a mask that affects all joints in the specified Armature.- Parameters:
targetLayer- The layer this mask is targeted for.animComposer- The animation composer associated with this mask.armature- The Armature containing the joints.
-
SingleLayerInfluenceMask
Instantiate a mask that affects no joints.- Parameters:
targetLayer- The layer this mask is targeted for.animComposer- The animation composer associated with this mask.
-
-
Method Details
-
getTargetLayer
Get the layer this mask is targeted for.- Returns:
- The target layer
-
setAnimComposer
Sets the animation composer for this mask.- Parameters:
animComposer- The new animation composer.
-
contains
Checks if the specified target is contained within this mask.- Specified by:
containsin interfaceAnimationMask- Overrides:
containsin classArmatureMask- Parameters:
target- The target to check.- Returns:
- True if the target is contained within this mask, false otherwise.
-
write
- Specified by:
writein interfaceSavable- Overrides:
writein classArmatureMask- Throws:
IOException
-
read
- Specified by:
readin interfaceSavable- Overrides:
readin classArmatureMask- Throws:
IOException
-