Beispiel #1
0
        /// <summary>
        /// Removes a QuaternionKeyFrame from the collection.
        /// </summary>
        public void Remove(QuaternionKeyFrame keyFrame)
        {
            WritePreamble();

            if (_keyFrames.Contains(keyFrame))
            {
                OnFreezablePropertyChanged(keyFrame, null);
                _keyFrames.Remove(keyFrame);

                WritePostscript();
            }
        }
Beispiel #2
0
        protected virtual void AddChild(object child)
        {
            QuaternionKeyFrame keyFrame = child as QuaternionKeyFrame;

            if (keyFrame != null)
            {
                KeyFrames.Add(keyFrame);
            }
            else
            {
                throw new ArgumentException(SR.Get(SRID.Animation_ChildMustBeKeyFrame), "child");
            }
        }
Beispiel #3
0
        /// <summary>
        /// Inserts a QuaternionKeyFrame into a specific location in the collection.
        /// </summary>
        public void Insert(int index, QuaternionKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Insert(index, keyFrame);

            WritePostscript();
        }
Beispiel #4
0
        /// <summary>
        /// Adds a QuaternionKeyFrame to the collection.
        /// </summary>
        public int Add(QuaternionKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Add(keyFrame);

            WritePostscript();

            return(_keyFrames.Count - 1);
        }
Beispiel #5
0
        /// <summary>
        /// Implementation of <see cref="System.Windows.Freezable.CloneCore(System.Windows.Freezable)">Freezable.CloneCore</see>.
        /// </summary>
        protected override void CloneCore(Freezable sourceFreezable)
        {
            QuaternionKeyFrameCollection sourceCollection = (QuaternionKeyFrameCollection)sourceFreezable;

            base.CloneCore(sourceFreezable);

            int count = sourceCollection._keyFrames.Count;

            _keyFrames = new List <QuaternionKeyFrame>(count);

            for (int i = 0; i < count; i++)
            {
                QuaternionKeyFrame keyFrame = (QuaternionKeyFrame)sourceCollection._keyFrames[i].Clone();
                _keyFrames.Add(keyFrame);
                OnFreezablePropertyChanged(null, keyFrame);
            }
        }
        /// <summary>
        /// Adds a QuaternionKeyFrame to the collection.
        /// </summary>
        public int Add(QuaternionKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Add(keyFrame);

            WritePostscript();

            return _keyFrames.Count - 1;
        }
        /// <summary>
        /// Copies all of the QuaternionKeyFrames in the collection to an
        /// array of QuaternionKeyFrames.
        /// </summary>
        public void CopyTo(QuaternionKeyFrame[] array, int index)
        {
            ReadPreamble();

            _keyFrames.CopyTo(array, index);
        }
 public int IndexOf(QuaternionKeyFrame keyFrame)
 {
     return(default(int));
 }
 public bool Contains(QuaternionKeyFrame keyFrame)
 {
     return(default(bool));
 }
 public int Add(QuaternionKeyFrame keyFrame)
 {
     return(default(int));
 }
        /// <summary>
        /// Inserts a QuaternionKeyFrame into a specific location in the collection. 
        /// </summary>
        public void Insert(int index, QuaternionKeyFrame keyFrame)
        {
            if (keyFrame == null)
            {
                throw new ArgumentNullException("keyFrame");
            }

            WritePreamble();

            OnFreezablePropertyChanged(null, keyFrame);
            _keyFrames.Insert(index, keyFrame);

            WritePostscript();
        }
 public int IndexOf(QuaternionKeyFrame keyFrame)
 {
   return default(int);
 }
Beispiel #13
0
        /// <summary>
        /// Returns true of the collection contains the given QuaternionKeyFrame.
        /// </summary>
        public bool Contains(QuaternionKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.Contains(keyFrame));
        }
 public bool Contains(QuaternionKeyFrame keyFrame)
 {
   return default(bool);
 }
 public void CopyTo(QuaternionKeyFrame[] array, int index)
 {
 }
 public int Add(QuaternionKeyFrame keyFrame)
 {
   return default(int);
 }
 public void Remove(QuaternionKeyFrame keyFrame)
 {
 }
 public void Insert(int index, QuaternionKeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Returns true of the collection contains the given QuaternionKeyFrame.
        /// </summary>
        public bool Contains(QuaternionKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.Contains(keyFrame);
        }
 public void Insert(int index, QuaternionKeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Returns the index of a given QuaternionKeyFrame in the collection. 
        /// </summary>
        public int IndexOf(QuaternionKeyFrame keyFrame)
        {
            ReadPreamble();

            return _keyFrames.IndexOf(keyFrame);
        }
 public void Remove(QuaternionKeyFrame keyFrame)
 {
 }
        /// <summary>
        /// Removes a QuaternionKeyFrame from the collection.
        /// </summary>
        public void Remove(QuaternionKeyFrame keyFrame)
        {
            WritePreamble();

            if (_keyFrames.Contains(keyFrame))
            {
                OnFreezablePropertyChanged(keyFrame, null);
                _keyFrames.Remove(keyFrame);

                WritePostscript();
            }
        }
Beispiel #24
0
        /// <summary>
        /// Returns the index of a given QuaternionKeyFrame in the collection.
        /// </summary>
        public int IndexOf(QuaternionKeyFrame keyFrame)
        {
            ReadPreamble();

            return(_keyFrames.IndexOf(keyFrame));
        }