public class ArmatureMask extends java.lang.Object implements AnimationMask
Constructor and Description |
---|
ArmatureMask()
Instantiate a mask that affects no joints.
|
ArmatureMask(Armature armature)
Instantiate a mask that affects all joints in the specified Armature.
|
Modifier and Type | Method and Description |
---|---|
ArmatureMask |
addAncestors(Joint start)
Add the specified Joint and all its ancestors.
|
void |
addBones(Armature armature,
java.lang.String... jointNames)
Add joints to be influenced by this animation mask.
|
void |
addFromJoint(Armature armature,
java.lang.String jointName)
Add a joint and all its sub armature joints to be influenced by this animation mask.
|
boolean |
contains(java.lang.Object target)
Test whether the animation should be applied to the specified element.
|
static ArmatureMask |
createMask(Armature armature,
java.lang.String... joints)
Create an ArmatureMask that selects the named joints.
|
static ArmatureMask |
createMask(Armature armature,
java.lang.String fromJoint)
Create an ArmatureMask that selects the named Joint and all its
descendants.
|
ArmatureMask |
remove(ArmatureMask removeMask)
Remove all joints affected by the specified ArmatureMask.
|
ArmatureMask |
removeAncestors(Joint start)
Remove the specified Joint and all its ancestors.
|
ArmatureMask |
removeJoints(Armature armature,
java.lang.String... jointNames)
Remove the named joints.
|
public ArmatureMask()
public ArmatureMask(Armature armature)
armature
- the Armature containing the joints (not null, unaffected)public ArmatureMask remove(ArmatureMask removeMask)
removeMask
- the set of joints to remove (not null, unaffected)public ArmatureMask removeJoints(Armature armature, java.lang.String... jointNames)
armature
- the Armature containing the joints (not null, unaffected)jointNames
- the names of the joints to be removedpublic boolean contains(java.lang.Object target)
AnimationMask
contains
in interface AnimationMask
target
- the target elementpublic static ArmatureMask createMask(Armature armature, java.lang.String fromJoint)
armature
- the Armature containing the joints (not null)fromJoint
- the name of the ancestor jointpublic static ArmatureMask createMask(Armature armature, java.lang.String... joints)
armature
- the Armature containing the joints (not null)joints
- the names of the joints to be includedpublic void addBones(Armature armature, java.lang.String... jointNames)
armature
- the Armature containing the jointsjointNames
- the names of the joints to be influencedpublic void addFromJoint(Armature armature, java.lang.String jointName)
armature
- the Armature containing the ancestor jointjointName
- the names of the ancestor jointpublic ArmatureMask addAncestors(Joint start)
start
- the starting point (may be null, unaffected)public ArmatureMask removeAncestors(Joint start)
start
- the starting point (may be null, unaffected)