예제 #1
0
파일: Lib.cs 프로젝트: AlexAbramov/gis
 public GLib(ConnectionFactory connFactory, Rect bounds, IIndexer indexer)
 {
     Init(connFactory);
     this.indexer = indexer == null ? new Indexer() : indexer;
     this.bounds  = bounds;
     this.SMax    = (int)(Math.Max(bounds.Width, bounds.Height) * unitMeasure * 10);
     Scales.InitScales();
     updateAttr[Constants.updateAttrCreated] = true;
     SetChanged();
 }
예제 #2
0
파일: Lib.cs 프로젝트: AlexAbramov/gis
 void Init(ConnectionFactory connFactory)
 {
     globalId         = libCount++;
     this.connFactory = connFactory;
     id = Constants.currentLib;
     int[] poolIds = { Constants.minRecordId };
     idGenerator  = new IdGenerator(Constants.appPoolSize, Constants.poolSize, poolIds, connFactory);
     scales       = new Scales(this);
     colors       = new Colors(this);
     images       = new Images(this);
     layers       = new Layers(this);
     views        = new Views(this);
     bgImages     = new BgImages(this);
     customTables = new CustomTables(this);
 }