コード例 #1
0
 public GType(GLib lib, GeomType geomType)
 {
     this.lib      = lib;
     id            = lib.GenerateId(this, ref updateAttr);
     priority      = lib.LastPriority;
     this.geomType = geomType;
     lib.Add(this);
     lib.Register(this);
 }
コード例 #2
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);
 }
コード例 #3
0
        internal GType(Context context, IDataReader dr)
        {
            this.lib = context.Lib;
            id       = dr.GetInt32((int)TypeField.Id);
            parentId = dr.GetInt32((int)TypeField.ParentId);
            priority = dr.GetInt32((int)TypeField.Priority);
            attr     = dr.GetInt32((int)TypeField.Attr);
            name     = dr.GetString((int)TypeField.Name);
//      DZ      16.01.09
//			context.SetStyle(dr.GetString(((int)TypeField.Style)),ref styleStr,ref style);
            context.SetStyle(
                dr.IsDBNull((int)TypeField.Style) ? "" : dr.GetString((int)TypeField.Style), ref styleStr, ref style);
            geomType = (GeomType)dr.GetInt32((int)TypeField.GeomType);
            smin     = dr.GetInt32((int)TypeField.SMin);
            smax     = dr.GetInt32((int)TypeField.SMax);
            lib.Register(this);
        }
コード例 #4
0
        internal GType(Context context, BinaryReader br)
        {
            this.lib = context.Lib;
            id       = br.ReadInt32();
//			lib.UpdateGen(this);
            parentId = br.ReadInt32();
            priority = br.ReadInt32();
            attr     = br.ReadInt32();
            name     = br.ReadString();
            context.SetStyle(br.ReadString(), ref styleStr, ref style);
            geomType = (GeomType)br.ReadInt32();
            smin     = br.ReadInt32();
            smax     = br.ReadInt32();
            if (parentId != 0)
            {
                parent = lib.GetType(parentId);
            }
            this.ParentComposite.Add(this);
            lib.Register(this);
        }