Example #1
0
        /// <summary>
        /// Creates a copy of the specified <see cref="MorphWeightCollection"/> instance.
        /// </summary>
        /// <param name="source">The source <see cref="MorphWeightCollection"/>.</param>
        private MorphWeightCollection(MorphWeightCollection source)
        {
            Name   = source.Name;
            _names = source._names;

            var weights = source._weights;

            _weights = new MorphWeight[weights.Length];
            for (int i = 0; i < weights.Length; i++)
            {
                _weights[i] = new MorphWeight {
                    Value = weights[i].Value
                }
            }
            ;
        }
Example #2
0
 public MorphWeightCollectionView(MorphWeightCollection morphWeights)
 {
     _morphWeights = morphWeights;
 }
Example #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Enumerator"/> struct.
 /// </summary>
 /// <param name="morphWeights">The <see cref="MorphWeightCollection"/> to be enumerated.</param>
 internal Enumerator(MorphWeightCollection morphWeights)
 {
     _morphWeights = morphWeights;
     _index        = -1;
     _current      = new KeyValuePair <string, float>();
 }