Exemplo n.º 1
0
        /// <summary>
        /// Unserializes a BinaryStream into the Attributes of this Instance
        /// </summary>
        /// <param name="reader">The Stream that contains the FileData</param>
        public void Unserialize(System.IO.BinaryReader reader)
        {
            int count = reader.ReadInt32();

            transforms.Clear();
            for (int i = 0; i < count; i++)
            {
                VectorTransformation t = new VectorTransformation(VectorTransformation.TransformOrder.RotateTranslate);
                t.Unserialize(reader);
                transforms.Add(t);
            }

            count = reader.ReadInt32();
            names.Clear();
            for (int i = 0; i < count; i++)
            {
                GmdcNamePair p = new GmdcNamePair();
                p.Unserialize(reader);
                names.Add(p);
            }

            subset.Unserialize(reader);
        }
Exemplo n.º 2
0
 /// <summary>
 /// Checks wether or not the object is already stored in the List
 /// </summary>
 /// <param name="item">The Object you are looking for</param>
 /// <returns>true, if it was found</returns>
 public bool Contains(GmdcNamePair item)
 {
     return(base.Contains(item));
 }
Exemplo n.º 3
0
 /// <summary>
 /// remove an Element
 /// </summary>
 /// <param name="item">The object that should be removed</param>
 public void Remove(GmdcNamePair item)
 {
     base.Remove(item);
 }
Exemplo n.º 4
0
 /// <summary>
 /// insert a new Element
 /// </summary>
 /// <param name="index">The Index where the Element should be stored</param>
 /// <param name="item">The object that should be inserted</param>
 public void Insert(int index, GmdcNamePair item)
 {
     base.Insert(index, item);
 }
Exemplo n.º 5
0
 /// <summary>
 /// add a new Element
 /// </summary>
 /// <param name="item">The object you want to add</param>
 /// <returns>The index it was added on</returns>
 public int Add(GmdcNamePair item)
 {
     return(base.Add(item));
 }