![]() | 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 | |
---|---|---|
![]() | Do<KeyValuePair<String, Single>>(Action<KeyValuePair<String, Single>>) | Overloaded.
Performs the given action on each element in a sequence when it is enumerated.
(Defined by LinqHelper.) |
![]() | Do<KeyValuePair<String, Single>>(Action<KeyValuePair<String, Single>, Int32>) | Overloaded.
Performs the given action on each element (incorporating its index) in a sequence when it is
enumerated.
(Defined by LinqHelper.) |
![]() | ForEach<KeyValuePair<String, Single>>(Action<KeyValuePair<String, Single>>) | Overloaded.
Immediately performs the given action on each element in a sequence.
(Defined by LinqHelper.) |
![]() | ForEach<KeyValuePair<String, Single>>(Action<KeyValuePair<String, Single>, Int32>) | Overloaded.
Immediately performs the given action on each element (incorporating its index) in a
sequence.
(Defined by LinqHelper.) |
![]() | IndexOf<KeyValuePair<String, 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 | |
---|---|---|
![]() ![]() | IEnumerable<KeyValuePair<String, Single>>.GetEnumerator | Returns an enumerator that iterates through the collection. |
![]() ![]() | IEnumerable.GetEnumerator |
Returns an enumerator that iterates through a collection.
|
![]() ![]() | IAnimatableObject.GetAnimatableProperty<T> |
Gets the property with given name and type which can be animated.
|
![]() ![]() | IAnimatableObject.GetAnimatedProperties |
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
GetAnimatableProperty< T> (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.