예제 #1
0
        public override void LoadData(TourDocument tourDoc, string filename)
        {
            Blob       blob = tourDoc.GetFileBlob(filename);
            FileReader doc  = new FileReader();

            doc.OnLoadEnd = delegate(FileProgressEvent ee)
            {
                dataFile = doc.Result as string;
                LoadString(dataFile);
            };
            doc.ReadAsText(blob);
        }
예제 #2
0
        public override void LoadData(TourDocument tourDoc, string filename)
        {
            if (extension.ToLowerCase().StartsWith(".fit"))
            {
                System.Html.Data.Files.Blob blob = tourDoc.GetFileBlob(filename.Replace(".txt", extension));

                FitsImage fi = new FitsImage("image.fit", blob, DoneLoading);
                imageSet.WcsImage = fi;
                if (max > 0 || min > 0)
                {
                    fi.lastBitmapMax = max;
                    fi.lastBitmapMin = min;
                    fi.lastScale     = lastScale;
                }
            }
            else
            {
                loaded = true;
            }
        }
예제 #3
0
        public override void LoadData(TourDocument tourDoc, string filename)
        {
            if (extension.ToLowerCase().StartsWith(".fit"))
            {
                System.Html.Data.Files.Blob blob = tourDoc.GetFileBlob(filename.Replace(".txt", extension));

                FitsImage fi;
                if (RenderContext.UseGlVersion2)
                {
                    fi = new FitsImage(imageSet, "image.fit", blob, DoneLoading);
                }
                else
                {
                    fi = new FitsImageJs(imageSet, "image.fit", blob, DoneLoading);
                }
                imageSet.WcsImage = fi;
            }
            else
            {
                loaded = true;
            }
        }