MorphWeightCollection Class |
Namespace: DigitalRune.Graphics
The MorphWeightCollection type exposes the following members.
Name | Description | |
---|---|---|
MorphWeightCollection(String) |
Initializes a new instance of the MorphWeightCollection class for the specified morph
targets.
| |
MorphWeightCollection(Mesh) |
Initializes a new instance of the MorphWeightCollection class for the specified mesh.
|
Name | Description | |
---|---|---|
Clone |
Creates a new MorphWeightCollection that is a clone (deep copy) of the current
instance.
| |
Contains |
Determines whether the MorphWeightCollection contains a morph target with the specified
name.
| |
Equals | (Inherited from Object.) | |
GetEnumerator |
Returns an enumerator that iterates through the morph target weights.
| |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
Reset |
Clears the weights of all morph targets.
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) | |
TryGetValue |
Gets the weight for the specified morph target.
|
Name | Description | |
---|---|---|
DoKeyValuePairString, Single(ActionKeyValuePairString, Single) | Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.) | |
DoKeyValuePairString, Single(ActionKeyValuePairString, Single, Int32) | Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is
enumerated.
(Defined by LinqHelper.) | |
ForEachKeyValuePairString, Single(ActionKeyValuePairString, Single) | Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.) | |
ForEachKeyValuePairString, Single(ActionKeyValuePairString, Single, Int32) | Overloaded.
Immediately performs the given action on each element (incorporating its index) in a
sequence.
(Defined by LinqHelper.) | |
IndexOfKeyValuePairString, Single |
Returns the index of the first element in a sequence that satisfies the specified condition.
(Defined by LinqHelper.) |
Name | Description | |
---|---|---|
Count |
Gets the number of morph targets.
| |
Item |
Gets or sets the weight of the specified morph target.
| |
Name |
Gets or sets the name of the MorphWeightCollection.
|
Name | Description | |
---|---|---|
IEnumerableKeyValuePairString, SingleGetEnumerator | Returns an enumerator that iterates through the collection. | |
IEnumerableGetEnumerator |
Returns an enumerator that iterates through a collection.
| |
IAnimatableObjectGetAnimatablePropertyT |
Gets the property with given name and type which can be animated.
| |
IAnimatableObjectGetAnimatedProperties |
Gets either the properties which are currently animated, or all properties which can be
animated. (See remarks.)
|
A mesh may include morph targets (see MorphTargets). Each morph target is controlled by a weight, which is usually a value in the range [0, 1] or [-1, 1]. The MorphWeightCollection stores the weights for a set of morph targets.
Morph targets are identified by their name. The extension method GetMorphTargetNames(Mesh) can be used to get a list of all morph targets of a specific mesh.
Animation:
The class MorphWeightCollection implements the interface
IAnimatableObject, which means that the weights can be animated using
DigitalRune Animation. The animatable properties can be accessed by calling the method
GetAnimatablePropertyT(String) passing the name of the morph target
as the parameter.
Note: The IAnimatablePropertys (the morph target weights) do not have a base value and therefore cannot be used in some from-to-by animations or similar animations that require a base value.