private void GenerateDataSetStandard() { InitStarLists(); var builder = new DatasetBuilder() { // TODO: I'm working on deprecating "Origin" so that everything is build with an origin of (0,0,0) and the camera moves instead. // This will allow us a little more flexibility with moving the cursor around and improving translation/rotations. CenterSystem = CenterSystem, VisitedSystems = VisitedSystems, GridLines = toolStripButtonGrid.Checked, DrawLines = toolStripButtonDrawLines.Checked, AllSystems = toolStripButtonShowAllStars.Checked, Stations = toolStripButtonStations.Checked }; if (_starList != null) { builder.StarList = _starList.ConvertAll(system => (ISystem)system); } if (ReferenceSystems != null) { builder.ReferenceSystems = ReferenceSystems.ConvertAll(system => (ISystem)system); } _datasets = builder.Build(); }
private void GenerateDataSetStandard() { if (_datasets != null) { foreach (var ds in _datasets) { if (ds is IDisposable) { ((IDisposable)ds).Dispose(); } } } InitStarLists(); selectedmaps = GetSelectedMaps(); builder = new DatasetBuilder() { // TODO: I'm working on deprecating "Origin" so that everything is build with an origin of (0,0,0) and the camera moves instead. // This will allow us a little more flexibility with moving the cursor around and improving translation/rotations. CenterSystem = CenterSystem, SelectedSystem = _clickedSystem, VisitedSystems = VisitedSystems.Where(s => s.time >= startTime && s.time <= endTime).OrderBy(s => s.time).ToList(), Images = selectedmaps.ToArray(), GridLines = toolStripButtonGrid.Checked, DrawLines = toolStripButtonDrawLines.Checked, AllSystems = toolStripButtonShowAllStars.Checked, Stations = toolStripButtonStations.Checked, UseImage = selectedmaps.Count != 0 }; if (_starList != null) { builder.StarList = _starList.ConvertAll(system => (ISystem)system); } if (ReferenceSystems != null) { builder.ReferenceSystems = ReferenceSystems.ConvertAll(system => (ISystem)system); } if (PlannedRoute != null) { builder.PlannedRoute = PlannedRoute.ConvertAll(system => (ISystem)system); } _datasets = builder.Build(); }