Ejemplo n.º 1
0
        public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
        {
            IFuture future = new ApplyFuture(new WarpBoundsVerb(imageTransformer),
                                             new[] { unwarpedMapTileSource.GetUserBounds(latentRegionHolder, FutureFeatures.Cached) });

            future = new MemCacheFuture(cachePackage.boundsCache, future);
            return(unwarpedMapTileSource.AddAsynchrony(future, features));
        }
Ejemplo n.º 2
0
		public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
		{
			IFuture future = new ApplyFuture(new WarpBoundsVerb(this.imageTransformer), new IFuture[]
			{
				this.unwarpedMapTileSource.GetUserBounds(latentRegionHolder, FutureFeatures.Cached)
			});
			future = new MemCacheFuture(this.cachePackage.boundsCache, future);
			return this.unwarpedMapTileSource.AddAsynchrony(future, features);
		}
Ejemplo n.º 3
0
		public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
		{
			if (this.cachedUserBounds == null || this.lastUserBoundsRequest_latentRegionHolder != latentRegionHolder || this.lastUserBoundsRequest_features != features)
			{
				this.lastUserBoundsRequest_latentRegionHolder = latentRegionHolder;
				this.lastUserBoundsRequest_features = features;
				this.cachedUserBounds = this.backingSource.GetUserBounds(latentRegionHolder, features);
			}
			return this.cachedUserBounds;
		}
Ejemplo n.º 4
0
 public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
 {
     D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async));
     return(new MemCacheFuture(cachePackage.asyncCache,
                               Asynchronizer.MakeFuture(cachePackage.computeAsyncScheduler,
                                                        new MemCacheFuture(cachePackage.boundsCache,
                                                                           new ApplyFuture(new ConstantVerb(new BoundsPresent(
                                                                                                                new RenderRegion(new MapRectangle(-85.0, -5000.0, 85.0, 5000.0), new DirtyEvent()))),
                                                                                           new IFuture[0])))));
 }
Ejemplo n.º 5
0
		public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
		{
			D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Cached));
			IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new ConstantVerb(new BoundsPresent(new RenderRegion(new MapRectangle(-85.0, -5000.0, 85.0, 5000.0), new DirtyEvent()))), new IFuture[0]));
			if (UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Async))
			{
				future = new MemCacheFuture(this.cachePackage.asyncCache, Asynchronizer.MakeFuture(this.cachePackage.networkAsyncScheduler, future));
			}
			return future;
		}
Ejemplo n.º 6
0
 public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
 {
     if (this.cachedUserBounds == null || this.lastUserBoundsRequest_latentRegionHolder != latentRegionHolder || this.lastUserBoundsRequest_features != features)
     {
         this.lastUserBoundsRequest_latentRegionHolder = latentRegionHolder;
         this.lastUserBoundsRequest_features           = features;
         this.cachedUserBounds = this.backingSource.GetUserBounds(latentRegionHolder, features);
     }
     return(this.cachedUserBounds);
 }
		public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
		{
			D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached));
			D.Assert(!UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Transparency));
			if (latentRegionHolder == null)
			{
				latentRegionHolder = this.sourceMap.latentRegionHolder;
			}
			latentRegionHolder.RequestRenderRegion(this.GetImageBounds((FutureFeatures)7));
			IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new UserBoundsRefVerb(latentRegionHolder, this.GetImageBounds(FutureFeatures.Cached)), new IFuture[0]));
			return this.AddAsynchrony(future, features);
		}
Ejemplo n.º 8
0
        public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
        {
            if (cachedUserBounds == null || lastUserBoundsRequest_latentRegionHolder != latentRegionHolder ||
                lastUserBoundsRequest_features != features)
            {
                lastUserBoundsRequest_latentRegionHolder = latentRegionHolder;
                lastUserBoundsRequest_features           = features;
                cachedUserBounds = backingSource.GetUserBounds(latentRegionHolder, features);
            }

            return(cachedUserBounds);
        }
Ejemplo n.º 9
0
		public UserBoundsRefVerb(LatentRegionHolder latentRegionHolder, IFuture delayedStaticBoundsFuture)
		{
			RenderRegion renderRegion = latentRegionHolder.renderRegion;
			if (renderRegion == null)
			{
				this.userRegion = null;
			}
			else
			{
				this.userRegion = renderRegion.Copy(new DirtyEvent());
			}
			this.delayedStaticBoundsFuture = delayedStaticBoundsFuture;
		}
Ejemplo n.º 10
0
        public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
        {
            D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached));
            D.Assert(!UnwarpedMapTileSource.HasFeature(features, FutureFeatures.Transparency));
            if (latentRegionHolder == null)
            {
                latentRegionHolder = this.sourceMap.latentRegionHolder;
            }
            latentRegionHolder.RequestRenderRegion(this.GetImageBounds((FutureFeatures)7));
            IFuture future = new MemCacheFuture(this.cachePackage.boundsCache, new ApplyFuture(new UserBoundsRefVerb(latentRegionHolder, this.GetImageBounds(FutureFeatures.Cached)), new IFuture[0]));

            return(this.AddAsynchrony(future, features));
        }
Ejemplo n.º 11
0
        public UserBoundsRefVerb(LatentRegionHolder latentRegionHolder, IFuture delayedStaticBoundsFuture)
        {
            RenderRegion renderRegion = latentRegionHolder.renderRegion;

            if (renderRegion == null)
            {
                this.userRegion = null;
            }
            else
            {
                this.userRegion = renderRegion.Copy(new DirtyEvent());
            }
            this.delayedStaticBoundsFuture = delayedStaticBoundsFuture;
        }
Ejemplo n.º 12
0
		public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
		{
			List<IFuture> list = new List<IFuture>();
			foreach (SourceMap current in this.layer)
			{
				if (current.ReadyToLock())
				{
					LatentRegionHolder latentRegionHolder2 = new LatentRegionHolder(new DirtyEvent(), new DirtyEvent());
					list.Add(this.mapTileSourceFactory.CreateRenderableWarpedSource(current).GetUserBounds(latentRegionHolder2, features));
				}
			}
			IFuture future = new ApplyFuture(new CompositeBoundsVerb(), list.ToArray());
			D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached));
			return new MemCacheFuture(this.mapTileSourceFactory.GetCachePackage().boundsCache, future);
		}
Ejemplo n.º 13
0
        public IFuture GetUserBounds(LatentRegionHolder latentRegionHolder, FutureFeatures features)
        {
            List <IFuture> list = new List <IFuture>();

            foreach (SourceMap current in this.layer)
            {
                if (current.ReadyToLock())
                {
                    LatentRegionHolder latentRegionHolder2 = new LatentRegionHolder(new DirtyEvent(), new DirtyEvent());
                    list.Add(this.mapTileSourceFactory.CreateRenderableWarpedSource(current).GetUserBounds(latentRegionHolder2, features));
                }
            }
            IFuture future = new ApplyFuture(new CompositeBoundsVerb(), list.ToArray());

            D.Assert(UnwarpedMapTileSource.HasFeature(features, FutureFeatures.MemoryCached));
            return(new MemCacheFuture(this.mapTileSourceFactory.GetCachePackage().boundsCache, future));
        }