public static void GetGalaxyFile(string url) { webFileGalaxy = new WebFile(url); webFileGalaxy.ResponseType = "blob"; webFileGalaxy.OnStateChange = GalaxyFileStateChange; webFileGalaxy.Send(); }
public void GetFile(string url) { webFile = new WebFile(url); webFile.ResponseType = "blob"; webFile.OnStateChange = FileStateChange; webFile.Send(); }
static Constellations() { string url = URLHelpers.singleton.engineAssetUrl("ConstellationNamePositions_EN.txt"); webFileConstNames = new WebFile(url); webFileConstNames.OnStateChange = LoadNames; webFileConstNames.Send(); }
public void LoadFromUrl(string url, Action complete) { onComplete = complete; webFile = new WebFile(Util.GetProxiedUrl(url)); webFile.OnStateChange = LoadData; webFile.Send(); }
public void LoadFromUrl(string url, Action complete) { onComplete = complete; webFile = new WebFile(URLHelpers.singleton.rewrite(url, URLRewriteMode.OriginRelative)); webFile.OnStateChange = LoadData; webFile.Send(); }
private GlyphCache(int height) { cellHeight = height; texture = Planets.LoadPlanetTexture("/webclient/images/glyphs1.png"); webFile = new WebFile("/webclient/images/glyphs1.xml"); webFile.OnStateChange = GlyphXmlReady; webFile.Send(); }
private GlyphCache(int height) { cellHeight = height; texture = Planets.LoadPlanetTexture(URLHelpers.singleton.engineAssetUrl("glyphs1.png")); webFile = new WebFile(URLHelpers.singleton.engineAssetUrl("glyphs1.xml")); webFile.OnStateChange = GlyphXmlReady; webFile.Send(); }
static Constellations() { //string url = "http://www.worldwidetelescope.org/data/constellationNames_RADEC_EN.txt"; //string url = "http://localhost/data/constellationNames_RADEC_EN.txt"; string url = "http://www.worldwidetelescope.org/wwtweb/catalog.aspx?q=ConstellationNamePositions_EN"; webFileConstNames = new WebFile(url); webFileConstNames.OnStateChange = LoadNames; webFileConstNames.Send(); }
public override void RequestImage() { if (!Downloading && !ReadyToRender) { Downloading = true; webFile = new WebFile(Util.GetProxiedUrl(this.URL)); webFile.OnStateChange = FileStateChange; webFile.Send(); } }
public override void RequestImage() { if (!Downloading && !ReadyToRender) { Downloading = true; webFile = new WebFile(URLHelpers.singleton.rewrite(this.URL, URLRewriteMode.AsIfAbsolute)); webFile.OnStateChange = FileStateChange; webFile.Send(); } }
public override void RequestImage() { if (IsCatalogTile) { if (!Downloading && !ReadyToRender) { Downloading = true; catalogData = new WebFile(this.URL); catalogData.OnStateChange = LoadCatalogData; catalogData.Send(); } } else if (GetHipsFileExtention() == ".fits") { if (!Downloading && !ReadyToRender) { Downloading = true; if (RenderContext.UseGlVersion2) { fitsImage = new FitsImageTile(dataset, URL, delegate(WcsImage wcsImage) { Downloading = false; errored = fitsImage.errored; TileCache.RemoveFromQueue(this.Key, true); if (!fitsImage.errored) { texReady = true; ReadyToRender = texReady && (DemReady || !demTile); RequestPending = false; MakeTexture(); } }); } else { FitsImageJs image = FitsImageJs.CreateHipsTile(dataset, URL, delegate(WcsImage wcsImage) { texReady = true; Downloading = false; errored = false; ReadyToRender = texReady && (DemReady || !demTile); RequestPending = false; TileCache.RemoveFromQueue(this.Key, true); texture2d = wcsImage.GetBitmap().GetTexture(); }); } } } else { base.RequestImage(); } }
public override void RequestImage() { if (IsCatalogTile) { if (!Downloading && !ReadyToRender) { Downloading = true; catalogData = new WebFile(this.URL); catalogData.OnStateChange = LoadCatalogData; catalogData.Send(); } } else { base.RequestImage(); } }
public void Setup(CanvasElement canvas) { canvas.AddEventListener("dblclick", OnDoubleClick, false); //canvas.AddEventListener("mousemove", OnMouseMove, false); //canvas.AddEventListener("mouseup", OnMouseUp, false); //canvas.AddEventListener("pointerdown", OnPointerDown, false); canvas.AddEventListener("mousedown", OnMouseDown, false); canvas.AddEventListener("mousewheel", OnMouseWheel, false); canvas.AddEventListener("DOMMouseScroll", OnMouseWheel, false); // this is for firefox as it does not support mousewheel canvas.AddEventListener("touchstart", OnTouchStart, false); canvas.AddEventListener("touchmove", OnTouchMove, false); canvas.AddEventListener("touchend", OnTouchEnd, false); canvas.AddEventListener("gesturechange", OnGestureChange, false); canvas.AddEventListener("gesturestart", OnGestureStart, false); canvas.AddEventListener("gestureend", OnGestureEnd, false); Document.Body.AddEventListener("keydown", OnKeyDown, false); //canvas.AddEventListener("MSGestureChange", OnGestureChange, false); //canvas.AddEventListener("mouseout", OnMouseUp, false); // MS Touch code canvas.AddEventListener("pointerdown", OnPointerDown, false); canvas.AddEventListener("pointermove", OnPointerMove, false); canvas.AddEventListener("pointerup", OnPointerUp, false); // End MS touch code RenderContext.ViewCamera.Lat = StartLat; RenderContext.ViewCamera.Lng = StartLng; RenderContext.ViewCamera.Zoom = StartZoom; RenderContext.TargetCamera = RenderContext.ViewCamera.Copy(); if (RenderContext.gl == null) { foregroundCanvas = (CanvasElement)Document.CreateElement("canvas"); foregroundCanvas.Width = canvas.Width; foregroundCanvas.Height = canvas.Height; fgDevice = (CanvasContext2D)foregroundCanvas.GetContext(Rendering.Render2D); } webFolder = new Folder(); webFolder.LoadFromUrl("http://www.worldwidetelescope.org/wwtweb/catalog.aspx?X=ImageSets5", SetupComplete); WebFile webFile = new WebFile("http://www.worldwidetelescope.org/wwtweb/weblogin.aspx?user=12345678-03D2-4935-8D0F-DCE54C9113E5&Version=HTML5&webkey=AX2011Gqqu&platform=web"); webFile.Send(); }
public void GetFile() { webFile = new WebFile(url); webFile.OnStateChange = FileStateChange; webFile.Send(); }
public static void GetStarFile(string url) { webFileStar = new WebFile(url); webFileStar.OnStateChange = StarFileStateChange; webFileStar.Send(); }
public static void GetMoonFile(string url) { webFileMoons = new WebFile(url); webFileMoons.OnStateChange = MoonFileStateChange; webFileMoons.Send(); }
private void Download() { webFile = new WebFile(url); webFile.OnStateChange = OnPropertiesDownloadComplete; webFile.Send(); }