public static Constellations Create(string name, string url, bool boundry, bool noInterpollation, bool resource) { Constellations temp = new Constellations(); temp.noInterpollation = noInterpollation; temp.boundry = boundry; temp.name = name; temp.url = url; temp.GetFile(); return(temp); }
public static Constellations CreateBasic(string name) { Constellations temp = new Constellations(); temp.name = name; temp.url = null; temp.lines = new List <Lineset>(); foreach (string abbrv in FullNames.Keys) { temp.lines.Add(new Lineset(abbrv)); } return(temp); }
public static Constellations CreateBasic(string name) { Constellations temp = new Constellations(); temp.name = name; temp.url = null; temp.lines = new List<Lineset>(); foreach (string abbrv in FullNames.Keys) { temp.lines.Add(new Lineset(abbrv)); } return temp; }
private void DrawSkyOverlays() { if (Settings.Active.ShowConstellationPictures) { Constellations.DrawArtwork(RenderContext); } if (Settings.Active.ShowConstellationFigures) { if (constellationsFigures == null) { constellationsFigures = Constellations.Create("Constellations", "http://www.worldwidetelescope.org/data/figures.txt", false, false, false); //constellationsFigures = Constellations.Create("Constellations", "http://localhost/data/figures.txt", false, false, false); } constellationsFigures.Draw(RenderContext, false, "UMA", false); } if (Settings.Active.ShowEclipticGrid) { Grids.DrawEclipticGrid(RenderContext, 1, Colors.Green); if (Settings.Active.ShowEclipticGridText) { Grids.DrawEclipticGridText(RenderContext, 1, Colors.Green); } } if (Settings.Active.ShowGalacticGrid) { Grids.DrawGalacticGrid(RenderContext, 1, Colors.Cyan); if (Settings.Active.ShowGalacticGridText) { Grids.DrawGalacticGridText(RenderContext, 1, Colors.Cyan); } } if (Settings.Active.ShowAltAzGrid) { Grids.DrawAltAzGrid(RenderContext, 1, Colors.Magenta); if (Settings.Active.ShowAltAzGridText) { Grids.DrawAltAzGridText(RenderContext, 1, Colors.Magenta); } } if (Settings.Active.ShowPrecessionChart) { Grids.DrawPrecessionChart(RenderContext, 1, Colors.Orange); } if (Settings.Active.ShowEcliptic) { Grids.DrawEcliptic(RenderContext, 1, Colors.Blue); if (Settings.Active.ShowEclipticOverviewText) { Grids.DrawEclipticText(RenderContext, 1, Colors.Blue); } } if (Settings.Active.ShowGrid) { Grids.DrawEquitorialGrid(RenderContext, 1, Colors.White); if (Settings.Active.ShowEquatorialGridText) { Grids.DrawEquitorialGridText(RenderContext, 1, Colors.White); } } if (Settings.Active.ShowConstellationBoundries) { if (constellationsBoundries == null) { constellationsBoundries = Constellations.Create("Constellations", "http://www.worldwidetelescope.org/data/constellations.txt", true, false, false); //constellationsBoundries = Constellations.Create("Constellations", "http://localhost/data/constellations.txt", true, false, false); } constellationsBoundries.Draw(RenderContext, Settings.Active.ShowConstellationSelection, Constellation, false); } if (Settings.Active.ShowConstellationLabels) { Constellations.DrawConstellationNames(RenderContext, 1, Colors.Yellow); } }
public static Constellations Create(string name, string url, bool boundry, bool noInterpollation, bool resource) { Constellations temp = new Constellations(); temp.noInterpollation = noInterpollation; temp.boundry = boundry; temp.name = name; temp.url = url; temp.GetFile(); return temp; }