コード例 #1
0
        public void DealPacket_SatUser(object pack)
        {
            if (this.state.isSceneSetUp == false)
            {
                return;
            }
            RD_SatUser rd = (RD_SatUser)pack;

            Scenemana.newsat(rd.SatUserName, (rd.SatUserAltitude) + 6371.0, rd.SatUserOrbitalInclination, rd.SatUserRightAscensionOfAscendingNode);
            Scenemana.hlSatUser(rd.SatUserName);
        }
コード例 #2
0
ファイル: packet.cs プロジェクト: Anyhowhow/STKDEMO
        public void DealPacket_SatUser(object pack)
        {
            if (this.state.isSceneSetUp == false)
            {
                return;
            }
            RD_SatUser rd = (RD_SatUser)pack;

            Scenemana.newsat(rd.SatUserName, (rd.SatUserAltitude) + 6371.0, rd.SatUserOrbitalInclination, rd.SatUserRightAscensionOfAscendingNode, @"D:\STK9\STKData\VO\Models\Space\a2100.mdl");
            Scenemana.newwalker_SatUser(rd.SatUserName, rd.SatUserOrbitalNumber, rd.SatUserInPlaneSatelliteNumber, rd.SatUserPhaseParameters, rd.SatUserRAANSpread);
            //Scenemana.hlSatUser(rd.SatUserName);
        }
コード例 #3
0
        public void DealPacket_Scenset(object pack)
        {
            RD_Scenset rd = (RD_Scenset)pack;

            this.Cursor = Cursors.WaitCursor;
            if (this.state.isSceneSetUp == true || this.root.CurrentScenario != null)
            {
                this.ResetCloseScene();
            }
            //建立场景
            this.Cursor       = Cursors.Default;
            this.scenenamenew = rd.ScenarioName;
            this.dStartTime   = DateTime.ParseExact(rd.StartTime, "yyyy-M-dd HH:mm:ss", System.Globalization.CultureInfo.CurrentCulture);
            this.startTime    = timeproc(rd.StartTime);
            this.endTime      = timeproc(rd.StopTime);
            this.stepTime     = rd.StepTime;
            this.新场景ToolStripMenuItem_Click(null, null);
            Scenemana.newsat("FX", rd.SatelliteAltitude + 6371.0, rd.OrbitalInclination, rd.RightAscensionOfAscendingNode);
            Scenemana.newwalker("FX", rd.OrbitalNumber, rd.InPlaneSatelliteNumber, rd.PhaseParameters, rd.raanspread);
            Scenemana.delsat("FX");
        }