Exemple #1
0
        private BlockQueue<string> quadkeyQueue; //a reference

        #endregion Fields

        #region Constructors

        public FetchThread(BlockQueue<string> queue, DataManager dm, BlockQueue<QuadtreeEntry> entryQueue)
        {
            this.quadkeyQueue = queue;
            this.dm = dm;
            this.entryQueue = entryQueue;
            _thread = new Thread(run);
            _thread.Start();
        }
Exemple #2
0
        public PlotterThread(CacheManager cm)
        {
            this.cm = cm;
            //this.tileSize = context.getResources().getDisplayMetrics().densityDpi;
            this.tileSize = 199;
            this.dm = new DataManager();
            this.mapPlotter = new MapPlotter(tileSize);
            this.labelPlotter = new LabelPlotter();
            this.labelCache = new Cache<int, Tile>(LABEL_CACHE_CAPACITY);

            _thread = new Thread(run);
            _thread.Start();
        }