AnimationMask class final
The joints one animation layer writes, by node index.
Immutable: a mask is built once from a skeleton and read every frame by every layer that shares it. One that could be edited underneath a running layer would change which joints a pose covers halfway through a blend.
Constructors
-
AnimationMask(Iterable<
int> indices) -
A mask over exactly
indices. -
AnimationMask.below(List<
int> parents, int root) -
Node
rootand everything below it, byparents— each node's parent index, -1 for a root, as a pose holds them: an upper body from its spine, an arm from its shoulder.factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- isEmpty → bool
-
Whether the mask covers no joint at all; false for everything.
no setter
- length → int
-
How many joints it names. Zero for everything, which names none and
covers all — see covers.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
covers(
int nodeIndex) → bool -
Whether a layer holding this may write the joint at
nodeIndex. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
- everything → const AnimationMask
- The mask that stops nothing, for a layer meant to cover the whole skeleton.