Beispiel #1
0
        private List <IBasicModule> AddManeuverModules()
        {
            List <IBasicModule> modules = new List <IBasicModule>();

            maneuver = new Maneuver("Maneuver Node");
            burnTime = new BurnTime("Burn Time");
            maneuverCloseApproach = new ManClosestApproach("Closest Approach");
            maneuverCloseRelVel   = new ManClosestRelVel("Rel Vel At Appr");

            maneuver.IsVisible               = settings.showManeuverNode;
            maneuver.AlwaysShow              = settings.showManeuverNodeAlways;
            burnTime.IsVisible               = settings.showManeuverBurn;
            burnTime.AlwaysShow              = settings.showManeuverBurnAlways;
            maneuverCloseApproach.IsVisible  = settings.showManeuverClosestApproach;
            maneuverCloseApproach.AlwaysShow = settings.showManeuverClosestApproachAlways;
            maneuverCloseRelVel.IsVisible    = settings.showManeuverClosestVel;
            maneuverCloseRelVel.AlwaysShow   = settings.showManeuverClosestVelAlways;

            modules.Add(maneuverCloseRelVel);
            modules.Add(maneuverCloseApproach);
            modules.Add(burnTime);
            modules.Add(maneuver);

            return(modules);
        }
        private List <IBasicModule> AddManeuverModules()
        {
            List <IBasicModule> modules = new List <IBasicModule>();

            maneuver              = new Maneuver("Maneuver Node");
            maneuverTotal         = new ManeuverTotal("All Man. Nodes");
            burnTime              = new BurnTime("Burn Time");
            maneuverApoapsis      = new ManApoapsis("Apoapsis");
            maneuverPeriapsis     = new ManPeriapsis("Periapsis");
            maneuverInclination   = new ManInclination("Inclination");
            maneuverEccentricity  = new ManEccentricity("Eccentricity");
            maneuverCloseApproach = new ManClosestApproach("Closest Approach");
            maneuverCloseRelVel   = new ManClosestRelVel("Rel Vel At Appr");
            maneuverAngleToPro    = new ManAngleToPro("Angle To Pro");
            maneuverPhaseAngle    = new ManPhaseAngle("Phase Angle");

            maneuver.IsVisible               = BasicSettings.Instance.showManeuverNode;
            maneuver.AlwaysShow              = BasicSettings.Instance.showManeuverNodeAlways;
            maneuverTotal.IsVisible          = BasicSettings.Instance.showManeuverNodeTotal;
            maneuverTotal.AlwaysShow         = BasicSettings.Instance.showManeuverNodeTotalAlways;
            burnTime.IsVisible               = BasicSettings.Instance.showManeuverBurn;
            burnTime.AlwaysShow              = BasicSettings.Instance.showManeuverBurnAlways;
            maneuverApoapsis.IsVisible       = BasicSettings.Instance.showManeuverApoapsis;
            maneuverApoapsis.AlwaysShow      = BasicSettings.Instance.showManeuverApoapsisAlways;
            maneuverPeriapsis.IsVisible      = BasicSettings.Instance.showManeuverPeriapsis;
            maneuverPeriapsis.AlwaysShow     = BasicSettings.Instance.showManeuverPeriapsisAlways;
            maneuverInclination.IsVisible    = BasicSettings.Instance.showManeuverInclination;
            maneuverInclination.AlwaysShow   = BasicSettings.Instance.showManeuverInclinationAlways;
            maneuverEccentricity.IsVisible   = BasicSettings.Instance.showManeuverEccentricity;
            maneuverEccentricity.AlwaysShow  = BasicSettings.Instance.showManeuverEccentricityAlways;
            maneuverCloseApproach.IsVisible  = BasicSettings.Instance.showManeuverClosestApproach;
            maneuverCloseApproach.AlwaysShow = BasicSettings.Instance.showManeuverClosestApproachAlways;
            maneuverCloseRelVel.IsVisible    = BasicSettings.Instance.showManeuverClosestVel;
            maneuverCloseRelVel.AlwaysShow   = BasicSettings.Instance.showManeuverClosestVelAlways;
            maneuverAngleToPro.IsVisible     = BasicSettings.Instance.showManeuverAngleToPrograde;
            maneuverAngleToPro.AlwaysShow    = BasicSettings.Instance.showManeuverAngleToProgradeAlways;
            maneuverPhaseAngle.IsVisible     = BasicSettings.Instance.showManeuverPhaseAngle;
            maneuverPhaseAngle.AlwaysShow    = BasicSettings.Instance.showManeuverPhaseAngleAlways;

            modules.Add(maneuverAngleToPro);
            modules.Add(maneuverPhaseAngle);
            modules.Add(maneuverCloseRelVel);
            modules.Add(maneuverCloseApproach);
            modules.Add(maneuverEccentricity);
            modules.Add(maneuverInclination);
            modules.Add(maneuverPeriapsis);
            modules.Add(maneuverApoapsis);
            modules.Add(burnTime);
            modules.Add(maneuverTotal);
            modules.Add(maneuver);

            return(modules);
        }