コード例 #1
0
 public SettingParameter GetSetting(StockSkyOverlayTypes type)
 {
     if (type == StockSkyOverlayTypes.FadeToBlack)
     {
         return(new SettingParameter(true, 0, 0 != 0, null));
     }
     return(new SettingParameter(false, 1, false, null));
 }
コード例 #2
0
        public SettingsAnimator(StockSkyOverlayTypes type)
        {
            settingsType = type;
            SettingParameter sp = Settings.Ambient.GetSetting(settingsType);
            constant = sp.EdgeTrigger;

            if (sp.Filter != null)
            {
                filter = sp.Filter.Clone();
            }
        }
コード例 #3
0
        public SettingsAnimator(StockSkyOverlayTypes type)
        {
            settingsType = type;
            SettingParameter sp = Settings.Ambient.GetSetting(settingsType);

            constant = sp.EdgeTrigger;

            if (sp.Filter != null)
            {
                filter = sp.Filter.Clone();
            }
        }
コード例 #4
0
ファイル: Settings.cs プロジェクト: pol-nafish/wwt-web-client
 public SettingParameter GetSetting(StockSkyOverlayTypes type)
 {
     return(new SettingParameter(false, 1, false, null));
 }
コード例 #5
0
ファイル: TourStop.cs プロジェクト: spamarti/wwt-web-client
 public SettingParameter GetSetting(StockSkyOverlayTypes type)
 {
     return new SettingParameter(false,1,false,null);
 }
コード例 #6
0
        public SettingParameter GetSetting(StockSkyOverlayTypes type)
        {
            bool edgeTrigger = true;
            double opacity = 0;
            bool animated = false;
            ConstellationFilter filter = null;
            bool targetState = false;
            if (SettingsAnimators.ContainsKey(type))
            {
                SettingsAnimator sa = SettingsAnimators[type];
                edgeTrigger = sa.Constant;
                opacity = sa.CurrentValue;
                filter = sa.Filter;
                animated = true;
            }
            else
            {

                switch (type)
                {
                    case StockSkyOverlayTypes.FadeToBlack:
                        opacity = FaderOpacity;
                        break;
                    case StockSkyOverlayTypes.EquatorialGrid:
                        opacity = this.showGrid ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.EquatorialGridText:
                        opacity = this.showEquatorialGridText ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.GalacticGrid:
                        opacity = this.showGalacticGrid ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.GalacticGridText:
                        opacity = this.showGalacticGridText ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.EclipticGrid:
                        opacity = this.showEclipticGrid ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.EclipticGridText:
                        opacity = this.showEclipticGridText ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.EclipticOverview:
                        opacity = this.showEcliptic ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.EclipticOverviewText:
                        opacity = this.showEclipticOverviewText ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.PrecessionChart:
                        opacity = this.showPrecessionChart ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.AltAzGrid:
                        opacity = this.showAltAzGrid ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.AltAzGridText:
                        opacity = this.showAltAzGridText ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.ConstellationFigures:
                        opacity = this.showConstellationFigures ? 1 : 0;
                        filter = this.constellationFiguresFilter.Clone();
                        break;
                    case StockSkyOverlayTypes.ConstellationBoundaries:
                        opacity = this.showConstellationBoundries ? 1 : 0;
                        filter = this.constellationBoundariesFilter.Clone();
                        break;
                    case StockSkyOverlayTypes.ConstellationFocusedOnly:
                        opacity = this.showConstellationSelection ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.ConstellationNames:
                        opacity = this.showConstellationLabels ? 1 : 0;
                        filter = this.constellationNamesFilter.Clone();
                        break;
                    case StockSkyOverlayTypes.ConstellationPictures:
                        opacity = this.showConstellationPictures ? 1 : 0;
                        filter = this.constellationArtFilter.Clone();
                        break;
                    case StockSkyOverlayTypes.SkyGrids:
                        opacity = this.showSkyGrids ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.Constellations:
                        opacity = this.showConstellations ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemStars:
                        opacity = this.solarSystemStars ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemMilkyWay:
                        opacity = this.solarSystemMilkyWay ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemCosmos:
                        opacity = this.solarSystemCosmos ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemCMB:
                        opacity = this.solarSystemCMB ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemOrbits:
                        opacity = this.solarSystemOrbits ? 1 : 0;
                        edgeTrigger = true;
                        break;
                    case StockSkyOverlayTypes.OrbitFilters:
                        opacity = Properties.Settings.Default.PlanetOrbitsFilter;
                        edgeTrigger = true;
                        break;

                    case StockSkyOverlayTypes.MPCZone1:
                    case StockSkyOverlayTypes.MPCZone2:
                    case StockSkyOverlayTypes.MPCZone3:
                    case StockSkyOverlayTypes.MPCZone4:
                    case StockSkyOverlayTypes.MPCZone5:
                    case StockSkyOverlayTypes.MPCZone6:
                    case StockSkyOverlayTypes.MPCZone7:
                        {
                            int id = (int)type - (int)StockSkyOverlayTypes.MPCZone1;
                            int bit = (int)Math.Pow(2, id);
                            targetState = (this.minorPlanetsFilter & bit) != 0;
                            opacity = targetState ? 1 : 0;
                            edgeTrigger = true;
                        }
                        break;

                    case StockSkyOverlayTypes.SolarSystemPlanets:
                        opacity = this.solarSystemPlanets ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemAsteroids:
                        opacity = this.solarSystemMinorPlanets ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemLighting:
                        opacity = this.solarSystemLighting ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.ShowISSModel:
                        opacity = this.showISSModel ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.SolarSystemMinorOrbits:
                        opacity = this.solarSystemMinorOrbits ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.ShowEarthCloudLayer:
                        opacity = this.showClouds ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.ShowElevationModel:
                        opacity = this.showElevationModel ? 1 : 0;
                        break;

                    case StockSkyOverlayTypes.MultiResSolarSystemBodies:
                        opacity = this.solarSystemMultiRes ? 1 : 0;
                        break;

                    case StockSkyOverlayTypes.EarthCutAway:
                        opacity = earthCutawayView ? 1 : 0;
                        break;
                    case StockSkyOverlayTypes.ShowSolarSystem:
                        opacity = this.showSolarSystem ? 1 : 0;
                        break;

                    case StockSkyOverlayTypes.FiledOfView:
                        opacity = this.showFieldOfView ? 1 : 0;
                        break;
                    default:
                        return new SettingParameter(false, -1, false, filter);
                }
            }

            SettingParameter sp = new SettingParameter(edgeTrigger, opacity, opacity != 0, filter);
            sp.Animated = animated;
            return sp;
        }
コード例 #7
0
        public StockSkyOverlay(string name, StockSkyOverlayTypes stockType)
        {
            StockType = stockType;
            Name = name;
            enabled = true;
            BlendState.State = true;

            CopyBlendStates();
            //if (!StockOverlays.ContainsKey(stockType))
            //{
            //    StockOverlays.Add(stockType, this);
            //}
        }
コード例 #8
0
        public SettingParameter GetSetting(StockSkyOverlayTypes type)
        {
            bool   edgeTrigger = false;
            double opacity     = 0;
            bool   targetState = false;

            ConstellationFilter filter = null;

            switch (type)
            {
            case StockSkyOverlayTypes.EquatorialGrid:
                opacity     = Properties.Settings.Default.ShowGrid.Opacity;
                targetState = Properties.Settings.Default.ShowGrid.TargetState;
                break;

            case StockSkyOverlayTypes.EquatorialGridText:
                opacity     = Properties.Settings.Default.ShowEquatorialGridText.Opacity;
                targetState = Properties.Settings.Default.ShowEquatorialGridText.TargetState;
                break;

            case StockSkyOverlayTypes.GalacticGrid:
                opacity     = Properties.Settings.Default.ShowGalacticGrid.Opacity;
                targetState = Properties.Settings.Default.ShowGalacticGrid.TargetState;
                break;

            case StockSkyOverlayTypes.GalacticGridText:
                opacity     = Properties.Settings.Default.ShowGalacticGridText.Opacity;
                targetState = Properties.Settings.Default.ShowGalacticGridText.TargetState;
                break;

            case StockSkyOverlayTypes.EclipticGrid:
                opacity     = Properties.Settings.Default.ShowEclipticGrid.Opacity;
                targetState = Properties.Settings.Default.ShowEclipticGrid.TargetState;
                break;

            case StockSkyOverlayTypes.EclipticGridText:
                opacity     = Properties.Settings.Default.ShowEclipticGridText.Opacity;
                targetState = Properties.Settings.Default.ShowEclipticGridText.TargetState;
                break;

            case StockSkyOverlayTypes.EclipticOverview:
                opacity     = Properties.Settings.Default.ShowEcliptic.Opacity;
                targetState = Properties.Settings.Default.ShowEcliptic.TargetState;
                break;

            case StockSkyOverlayTypes.EclipticOverviewText:
                opacity     = Properties.Settings.Default.ShowEclipticOverviewText.Opacity;
                targetState = Properties.Settings.Default.ShowEclipticOverviewText.TargetState;
                break;

            case StockSkyOverlayTypes.PrecessionChart:
                opacity     = Properties.Settings.Default.ShowPrecessionChart.Opacity;
                targetState = Properties.Settings.Default.ShowPrecessionChart.TargetState;
                break;

            case StockSkyOverlayTypes.AltAzGrid:
                opacity     = Properties.Settings.Default.ShowAltAzGrid.Opacity;
                targetState = Properties.Settings.Default.ShowAltAzGrid.TargetState;
                break;

            case StockSkyOverlayTypes.AltAzGridText:
                opacity     = Properties.Settings.Default.ShowAltAzGridText.Opacity;
                targetState = Properties.Settings.Default.ShowAltAzGridText.TargetState;
                break;

            case StockSkyOverlayTypes.ConstellationFigures:
                opacity     = Properties.Settings.Default.ShowConstellationFigures.Opacity;
                targetState = Properties.Settings.Default.ShowConstellationFigures.TargetState;
                filter      = Properties.Settings.Default.ConstellationFiguresFilter.Clone();
                break;

            case StockSkyOverlayTypes.ConstellationBoundaries:
                opacity     = Properties.Settings.Default.ShowConstellationBoundries.Opacity;
                targetState = Properties.Settings.Default.ShowConstellationBoundries.TargetState;
                filter      = Properties.Settings.Default.ConstellationBoundariesFilter.Clone();
                break;

            case StockSkyOverlayTypes.ConstellationFocusedOnly:
                opacity     = Properties.Settings.Default.ShowConstellationSelection.Opacity;
                targetState = Properties.Settings.Default.ShowConstellationSelection.TargetState;
                break;

            case StockSkyOverlayTypes.ConstellationNames:
                opacity     = Properties.Settings.Default.ShowConstellationLabels.Opacity;
                targetState = Properties.Settings.Default.ShowConstellationLabels.TargetState;
                filter      = Properties.Settings.Default.ConstellationNamesFilter.Clone();
                break;

            case StockSkyOverlayTypes.ConstellationPictures:
                opacity     = Properties.Settings.Default.ShowConstellationPictures.Opacity;
                targetState = Properties.Settings.Default.ShowConstellationPictures.TargetState;
                filter      = Properties.Settings.Default.ConstellationArtFilter.Clone();
                break;

            case StockSkyOverlayTypes.SkyGrids:
                opacity     = Properties.Settings.Default.ShowSkyGrids.Opacity;
                targetState = Properties.Settings.Default.ShowSkyGrids.TargetState;
                break;

            case StockSkyOverlayTypes.Constellations:
                opacity     = Properties.Settings.Default.Constellations.Opacity;
                targetState = Properties.Settings.Default.Constellations.TargetState;
                break;

            case StockSkyOverlayTypes.SolarSystemStars:
                opacity     = Properties.Settings.Default.SolarSystemStars.Opacity;
                targetState = Properties.Settings.Default.SolarSystemStars.TargetState;
                break;

            case StockSkyOverlayTypes.SolarSystemMilkyWay:
                opacity     = Properties.Settings.Default.SolarSystemMilkyWay.Opacity;
                targetState = Properties.Settings.Default.SolarSystemMilkyWay.TargetState;
                break;

            case StockSkyOverlayTypes.SolarSystemCosmos:
                opacity     = Properties.Settings.Default.SolarSystemCosmos.Opacity;
                targetState = Properties.Settings.Default.SolarSystemCosmos.TargetState;
                break;

            case StockSkyOverlayTypes.SolarSystemCMB:
                opacity     = Properties.Settings.Default.SolarSystemCMB.Opacity;
                targetState = Properties.Settings.Default.SolarSystemCMB.TargetState;
                break;

            case StockSkyOverlayTypes.SolarSystemOrbits:
                opacity     = Properties.Settings.Default.SolarSystemOrbits.Opacity;
                targetState = Properties.Settings.Default.SolarSystemOrbits.TargetState;
                break;

            case StockSkyOverlayTypes.OrbitFilters:
                opacity     = Properties.Settings.Default.PlanetOrbitsFilter;
                targetState = Properties.Settings.Default.PlanetOrbitsFilter != 0;
                edgeTrigger = true;
                break;

            case StockSkyOverlayTypes.SolarSystemPlanets:
                opacity     = Properties.Settings.Default.SolarSystemPlanets.Opacity;
                targetState = Properties.Settings.Default.SolarSystemPlanets.TargetState;
                break;

            case StockSkyOverlayTypes.SolarSystemAsteroids:
                opacity     = Properties.Settings.Default.SolarSystemMinorPlanets.Opacity;
                targetState = Properties.Settings.Default.SolarSystemMinorPlanets.TargetState;
                break;

            case StockSkyOverlayTypes.MPCZone1:
            case StockSkyOverlayTypes.MPCZone2:
            case StockSkyOverlayTypes.MPCZone3:
            case StockSkyOverlayTypes.MPCZone4:
            case StockSkyOverlayTypes.MPCZone5:
            case StockSkyOverlayTypes.MPCZone6:
            case StockSkyOverlayTypes.MPCZone7:
            {
                int id  = (int)type - (int)StockSkyOverlayTypes.MPCZone1;
                int bit = (int)Math.Pow(2, id);
                targetState = (Properties.Settings.Default.MinorPlanetsFilter & bit) != 0;
                opacity     = targetState ? 1 : 0;
                edgeTrigger = true;
            }
            break;

            case StockSkyOverlayTypes.SolarSystemLighting:
                opacity     = Properties.Settings.Default.SolarSystemLighting ? 1 : 0;
                targetState = Properties.Settings.Default.SolarSystemLighting;
                break;

            case StockSkyOverlayTypes.ShowISSModel:
                opacity     = Properties.Settings.Default.ShowISSModel ? 1 : 0;
                targetState = Properties.Settings.Default.ShowISSModel;
                break;

            case StockSkyOverlayTypes.SolarSystemMinorOrbits:
                opacity     = Properties.Settings.Default.SolarSystemMinorOrbits.Opacity;
                targetState = Properties.Settings.Default.SolarSystemMinorOrbits.TargetState;
                break;

            case StockSkyOverlayTypes.ShowEarthCloudLayer:
                opacity     = Properties.Settings.Default.ShowClouds.Opacity;
                targetState = Properties.Settings.Default.ShowClouds.TargetState;
                break;

            case StockSkyOverlayTypes.ShowElevationModel:
                opacity     = Properties.Settings.Default.ShowElevationModel ? 1 : 0;
                targetState = Properties.Settings.Default.ShowElevationModel;
                break;

            case StockSkyOverlayTypes.MultiResSolarSystemBodies:
                opacity     = Properties.Settings.Default.SolarSystemMultiRes ? 1 : 0;
                targetState = Properties.Settings.Default.SolarSystemMultiRes;
                break;

            case StockSkyOverlayTypes.EarthCutAway:
                opacity     = Properties.Settings.Default.EarthCutawayView.Opacity;
                targetState = Properties.Settings.Default.EarthCutawayView.TargetState;
                break;

            case StockSkyOverlayTypes.ShowSolarSystem:
                opacity     = Properties.Settings.Default.ShowSolarSystem.Opacity;
                targetState = Properties.Settings.Default.ShowSolarSystem.TargetState;
                break;

            case StockSkyOverlayTypes.Clouds8k:
                opacity     = Properties.Settings.Default.CloudMap8k ? 1 : 0;
                targetState = Properties.Settings.Default.CloudMap8k;
                break;

            case StockSkyOverlayTypes.FiledOfView:
                opacity     = Properties.Settings.Default.ShowFieldOfView.Opacity;
                targetState = Properties.Settings.Default.ShowFieldOfView.TargetState;
                break;

            case StockSkyOverlayTypes.FadeToBlack:
                opacity     = Earth3d.MainWindow.Fader.Opacity;
                targetState = Earth3d.MainWindow.Fader.TargetState;
                break;

            default:
                return(new SettingParameter(false, -1, false, null));
            }

            return(new SettingParameter(edgeTrigger, opacity, targetState, filter));
        }
コード例 #9
0
        public SettingParameter GetSetting(StockSkyOverlayTypes type)
        {
            bool edgeTrigger = false;
            double opacity = 0;
            bool targetState = false;

            ConstellationFilter filter = null;

            switch (type)
            {
                case StockSkyOverlayTypes.EquatorialGrid:
                    opacity = Properties.Settings.Default.ShowGrid.Opacity;
                    targetState = Properties.Settings.Default.ShowGrid.TargetState;
                    break;
                case StockSkyOverlayTypes.EquatorialGridText:
                    opacity = Properties.Settings.Default.ShowEquatorialGridText.Opacity;
                    targetState = Properties.Settings.Default.ShowEquatorialGridText.TargetState;
                    break;
                case StockSkyOverlayTypes.GalacticGrid:
                    opacity = Properties.Settings.Default.ShowGalacticGrid.Opacity;
                    targetState = Properties.Settings.Default.ShowGalacticGrid.TargetState;
                    break;
                case StockSkyOverlayTypes.GalacticGridText:
                    opacity = Properties.Settings.Default.ShowGalacticGridText.Opacity;
                    targetState = Properties.Settings.Default.ShowGalacticGridText.TargetState;
                    break;
                case StockSkyOverlayTypes.EclipticGrid:
                    opacity = Properties.Settings.Default.ShowEclipticGrid.Opacity;
                    targetState = Properties.Settings.Default.ShowEclipticGrid.TargetState;
                    break;
                case StockSkyOverlayTypes.EclipticGridText:
                    opacity = Properties.Settings.Default.ShowEclipticGridText.Opacity;
                    targetState = Properties.Settings.Default.ShowEclipticGridText.TargetState;
                    break;
                case StockSkyOverlayTypes.EclipticOverview:
                    opacity = Properties.Settings.Default.ShowEcliptic.Opacity;
                    targetState = Properties.Settings.Default.ShowEcliptic.TargetState;
                    break;
                case StockSkyOverlayTypes.EclipticOverviewText:
                    opacity = Properties.Settings.Default.ShowEclipticOverviewText.Opacity;
                    targetState = Properties.Settings.Default.ShowEclipticOverviewText.TargetState;
                    break;
                case StockSkyOverlayTypes.PrecessionChart:
                    opacity = Properties.Settings.Default.ShowPrecessionChart.Opacity;
                    targetState = Properties.Settings.Default.ShowPrecessionChart.TargetState;
                    break;
                case StockSkyOverlayTypes.AltAzGrid:
                    opacity = Properties.Settings.Default.ShowAltAzGrid.Opacity;
                    targetState = Properties.Settings.Default.ShowAltAzGrid.TargetState;
                    break;
                case StockSkyOverlayTypes.AltAzGridText:
                    opacity = Properties.Settings.Default.ShowAltAzGridText.Opacity;
                    targetState = Properties.Settings.Default.ShowAltAzGridText.TargetState;
                    break;
                case StockSkyOverlayTypes.ConstellationFigures:
                    opacity = Properties.Settings.Default.ShowConstellationFigures.Opacity;
                    targetState = Properties.Settings.Default.ShowConstellationFigures.TargetState;
                    filter = Properties.Settings.Default.ConstellationFiguresFilter.Clone();
                    break;
                case StockSkyOverlayTypes.ConstellationBoundaries:
                    opacity = Properties.Settings.Default.ShowConstellationBoundries.Opacity;
                    targetState = Properties.Settings.Default.ShowConstellationBoundries.TargetState;
                    filter = Properties.Settings.Default.ConstellationBoundariesFilter.Clone();
                    break;
                case StockSkyOverlayTypes.ConstellationFocusedOnly:
                    opacity = Properties.Settings.Default.ShowConstellationSelection.Opacity;
                    targetState = Properties.Settings.Default.ShowConstellationSelection.TargetState;
                    break;
                case StockSkyOverlayTypes.ConstellationNames:
                    opacity = Properties.Settings.Default.ShowConstellationLabels.Opacity;
                    targetState = Properties.Settings.Default.ShowConstellationLabels.TargetState;
                    filter = Properties.Settings.Default.ConstellationNamesFilter.Clone();
                    break;
                case StockSkyOverlayTypes.ConstellationPictures:
                    opacity = Properties.Settings.Default.ShowConstellationPictures.Opacity;
                    targetState = Properties.Settings.Default.ShowConstellationPictures.TargetState;
                    filter = Properties.Settings.Default.ConstellationArtFilter.Clone();
                    break;
                case StockSkyOverlayTypes.SkyGrids:
                    opacity = Properties.Settings.Default.ShowSkyGrids.Opacity;
                    targetState = Properties.Settings.Default.ShowSkyGrids.TargetState;
                    break;
                case StockSkyOverlayTypes.Constellations:
                    opacity = Properties.Settings.Default.Constellations.Opacity;
                    targetState = Properties.Settings.Default.Constellations.TargetState;
                    break;
                case StockSkyOverlayTypes.SolarSystemStars:
                    opacity = Properties.Settings.Default.SolarSystemStars.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemStars.TargetState;
                    break;
                case StockSkyOverlayTypes.SolarSystemMilkyWay:
                    opacity = Properties.Settings.Default.SolarSystemMilkyWay.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemMilkyWay.TargetState;
                    break;
                case StockSkyOverlayTypes.SolarSystemCosmos:
                    opacity = Properties.Settings.Default.SolarSystemCosmos.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemCosmos.TargetState;
                    break;
                case StockSkyOverlayTypes.SolarSystemCMB:
                    opacity = Properties.Settings.Default.SolarSystemCMB.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemCMB.TargetState;
                    break;
                case StockSkyOverlayTypes.SolarSystemOrbits:
                    opacity = Properties.Settings.Default.SolarSystemOrbits.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemOrbits.TargetState;
                    break;
                case StockSkyOverlayTypes.OrbitFilters:
                    opacity = Properties.Settings.Default.PlanetOrbitsFilter;
                    targetState = Properties.Settings.Default.PlanetOrbitsFilter != 0;
                    edgeTrigger = true;
                    break;
                case StockSkyOverlayTypes.SolarSystemPlanets:
                    opacity = Properties.Settings.Default.SolarSystemPlanets.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemPlanets.TargetState;
                    break;
                case StockSkyOverlayTypes.SolarSystemAsteroids:
                    opacity = Properties.Settings.Default.SolarSystemMinorPlanets.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemMinorPlanets.TargetState;
                    break;

                case StockSkyOverlayTypes.MPCZone1:
                case StockSkyOverlayTypes.MPCZone2:
                case StockSkyOverlayTypes.MPCZone3:
                case StockSkyOverlayTypes.MPCZone4:
                case StockSkyOverlayTypes.MPCZone5:
                case StockSkyOverlayTypes.MPCZone6:
                case StockSkyOverlayTypes.MPCZone7:
                    {
                        int id = (int)type - (int)StockSkyOverlayTypes.MPCZone1;
                        int bit = (int)Math.Pow(2, id);
                        targetState = (Properties.Settings.Default.MinorPlanetsFilter & bit) != 0;
                        opacity = targetState ? 1 : 0;
                        edgeTrigger = true;
                    }
                    break;

                case StockSkyOverlayTypes.SolarSystemLighting:
                    opacity = Properties.Settings.Default.SolarSystemLighting ? 1 : 0;
                    targetState = Properties.Settings.Default.SolarSystemLighting;
                    break;
                case StockSkyOverlayTypes.ShowISSModel:
                    opacity = Properties.Settings.Default.ShowISSModel ? 1 : 0;
                    targetState = Properties.Settings.Default.ShowISSModel;
                    break;
                case StockSkyOverlayTypes.SolarSystemMinorOrbits:
                    opacity = Properties.Settings.Default.SolarSystemMinorOrbits.Opacity;
                    targetState = Properties.Settings.Default.SolarSystemMinorOrbits.TargetState;
                    break;
                case StockSkyOverlayTypes.ShowEarthCloudLayer:
                    opacity = Properties.Settings.Default.ShowClouds.Opacity;
                    targetState = Properties.Settings.Default.ShowClouds.TargetState;
                    break;
                case StockSkyOverlayTypes.ShowElevationModel:
                    opacity = Properties.Settings.Default.ShowElevationModel ? 1 : 0;
                    targetState = Properties.Settings.Default.ShowElevationModel;
                    break;
                case StockSkyOverlayTypes.MultiResSolarSystemBodies:
                    opacity = Properties.Settings.Default.SolarSystemMultiRes ? 1 : 0;
                    targetState = Properties.Settings.Default.SolarSystemMultiRes;
                    break;
                case StockSkyOverlayTypes.EarthCutAway:
                    opacity = Properties.Settings.Default.EarthCutawayView.Opacity;
                    targetState = Properties.Settings.Default.EarthCutawayView.TargetState;
                    break;
                case StockSkyOverlayTypes.ShowSolarSystem:
                    opacity = Properties.Settings.Default.ShowSolarSystem.Opacity;
                    targetState = Properties.Settings.Default.ShowSolarSystem.TargetState;
                    break;
                case StockSkyOverlayTypes.Clouds8k:
                    opacity = Properties.Settings.Default.CloudMap8k ? 1 : 0;
                    targetState = Properties.Settings.Default.CloudMap8k;
                    break;
                case StockSkyOverlayTypes.FiledOfView:
                    opacity = Properties.Settings.Default.ShowFieldOfView.Opacity;
                    targetState = Properties.Settings.Default.ShowFieldOfView.TargetState;
                    break;
                case StockSkyOverlayTypes.FadeToBlack:
                    opacity = Earth3d.MainWindow.Fader.Opacity;
                    targetState = Earth3d.MainWindow.Fader.TargetState;
                    break;
                default:
                    return new SettingParameter(false, -1, false, null);
            }

            return new SettingParameter(edgeTrigger, opacity, targetState, filter);
        }