Example #1
0
 internal GRange(Context context, GType type, IDataReader dr)
 {
     id        = dr.GetInt32((int)RangeField.Id);
     bounds    = context.Buf.GetRect(dr, (int)RangeField.Code);
     this.type = type;
     type.Add(this);
     Lib.Register(this);
 }
Example #2
0
 internal GRange(GType type, Rect bounds)
 {
     id          = type.Lib.GenerateId(this, ref updateAttr);
     this.type   = type;
     this.bounds = bounds;
     type.Add(this);
     Lib.Register(this);
 }
Example #3
0
        internal GRange(Context context, IDataReader dr)
        {
            id = dr.GetInt32((int)RangeField.Id);
            int typeId = dr.GetInt32((int)RangeField.TypeId);

            bounds = context.Buf.GetRect(dr, (int)RangeField.Code);
            type   = context.Lib.GetType(typeId);
            type.Add(this);
            Lib.Register(this);
        }
Example #4
0
 public GType(GType parent)
 {
     lib           = parent.Lib;
     id            = lib.GenerateId(this, ref updateAttr);
     parentId      = parent.Id;
     priority      = parent.LastPriority;
     this.geomType = parent.geomType;
     this.parent   = parent;
     parent.Add(this);
     lib.Register(this);
 }
Example #5
0
        internal GRange(Context context, BinaryReader br)
        {
            id = br.ReadInt32();
//			context.Lib.UpdateGen(this);
            int typeId = br.ReadInt32();

            bounds = context.Buf.ReadRect(br);
            type   = context.Lib.GetType(typeId);
            type.Add(this);
            Lib.Register(this);
        }