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) |
static ArmatureMask |
createMask(Armature armature,
java.lang.String... joints) |
static ArmatureMask |
createMask(Armature armature,
java.lang.String fromJoint) |
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)
contains
in interface AnimationMask
public static ArmatureMask createMask(Armature armature, java.lang.String fromJoint)
public static ArmatureMask createMask(Armature armature, java.lang.String... joints)
public 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)