Пример #1
0
        public Edit2DGenericForm()
        {
            InitializeComponent();
            PopulateObjects(ObjectName2D, false);
            PopulateBoxes();

            if (CommonData.SavedViewList[CommonData.SelectedIndex].ViewObjectData != null && CommonData.SavedViewList[CommonData.SelectedIndex].ViewObjectData.Count > 0)
            {
                CommonData.CurrentViewObjectData = CommonData.SavedViewList[CommonData.SelectedIndex].ViewObjectData;
                List <ObjectData> newData = SmartViewFunctions.GetObjectData();
                int index = 0;
                foreach (ObjectData item in newData)
                {
                    if (!CommonData.CurrentViewObjectData.Any(n => n.SimpleName == item.SimpleName))
                    {
                        index = newData.IndexOf(item);
                        CommonData.CurrentViewObjectData.Insert(index, item);
                    }
                }
            }
            else
            {
                CommonData.CurrentViewObjectData = SmartViewFunctions.GetObjectData();
            }
        }
Пример #2
0
        public NewViewForm()
        {
            InitializeComponent();
            StkObjectsLibrary mStkObjectsLibrary = new StkObjectsLibrary();

            CommonData.CurrentViewObjectData = SmartViewFunctions.GetObjectData();
            _threatNames = new List <string>();

            PopulateComboBoxes();
            PopulateObjects(FocusedItem, true);
            if (FocusedItem.Items.Count != 0)
            {
                FocusedItem.SelectedIndex = 0;
            }
            PopulateObjects(DisplayObject, false);
            if (DisplayObject.Items.Count != 0)
            {
                DisplayObject.SelectedIndex = 0;
            }
            PopulateObjects(ObjectName2D, false);
            if (ObjectName2D.Items.Count != 0)
            {
                ObjectName2D.SelectedIndex = 0;
            }
            DataDisplayOptions.Enabled    = false;
            TTDataDisplayOptions.Enabled  = false;
            GEODataDisplayOptions.Enabled = false;
            GeoBoxOptions.Enabled         = false;
            HideShowOptions.Enabled       = false;
            EllipsoidDefinition.Enabled   = false;
            PopulateObjects(GEODisplayObject, false);

            mStkObjectsLibrary = new StkObjectsLibrary();
        }
Пример #3
0
        private void RemovePlanes()
        {
            List <ObjectData> data = SmartViewFunctions.GetObjectData();

            foreach (ObjectData item in data)
            {
                if (item.ClassName == "Satellite")
                {
                    IAgStkObject sat  = CommonData.StkRoot.GetObjectFromPath(item.SimplePath);
                    IAgSatellite sat1 = CommonData.StkRoot.GetObjectFromPath(item.SimplePath) as IAgSatellite;
                    try
                    {
                        sat.Vgt.Planes.Remove("ProximityPlane");
                    }
                    catch (Exception)
                    {
                    }
                    try
                    {
                        sat1.VO.Proximity.GeoBox.IsVisible = false;
                    }
                    catch (Exception)
                    {
                    }

                    try
                    {
                        sat1.VO.Proximity.Ellipsoid.IsVisible = false;
                    }
                    catch (Exception)
                    {
                    }
                }
            }
        }
        public EditTargetThreatForm()
        {
            InitializeComponent();
            _onStart = 1;
            CommonData.CurrentViewObjectData = SmartViewFunctions.GetObjectData();
            _threatNames = new List <string>();

            PopulateComboBoxes();
            _onStart = 0;
        }
Пример #5
0
        public Edit3DGenericForm()
        {
            InitializeComponent();
            current = new ViewData();
            PopulateObjects(FocusedItem, true);
            PopulateDdObjects(DisplayObject, false);
            PopulatePredataObjects(PredataObject, false);
            PopulateComboBoxes();
            current = CommonData.SavedViewList[CommonData.SelectedIndex];
            if (current.UseAnimationTime)
            {
                CurrentTime.Text       = current.AnimationTime;
                UseCurrentTime.Checked = true;
            }
            if (CommonData.SavedViewList[CommonData.SelectedIndex].ViewObjectData != null && CommonData.SavedViewList[CommonData.SelectedIndex].ViewObjectData.Count > 0)
            {
                CommonData.CurrentViewObjectData = CommonData.SavedViewList[CommonData.SelectedIndex].ViewObjectData;
                List <ObjectData> newData = SmartViewFunctions.GetObjectData();
                int index = 0;
                foreach (ObjectData item in newData)
                {
                    if (!CommonData.CurrentViewObjectData.Any(n => n.SimpleName == item.SimpleName))
                    {
                        index = newData.IndexOf(item);
                        CommonData.CurrentViewObjectData.Insert(index, item);
                    }
                }
            }
            else
            {
                CommonData.CurrentViewObjectData = SmartViewFunctions.GetObjectData();
            }

            if (current.UniqueLeadTrail)
            {
                UniqueLeadTrail.Checked = true;
                CustomLeadTrail.Enabled = true;
            }
            else
            {
                UniversalLeadTrail.Checked = true;
                CustomLeadTrail.Enabled    = false;
            }
        }
Пример #6
0
        public NewViewForm()
        {
            InitializeComponent();
            StkObjectsLibrary mStkObjectsLibrary = new StkObjectsLibrary();

            CommonData.CurrentViewObjectData = SmartViewFunctions.GetObjectData();

            PopulateComboBoxes();
            PopulateObjects(FocusedItem, true);
            ViewName3D.Text = "New View";
            ViewName2D.Text = "New View";
            if (FocusedItem.Items.Count != 0)
            {
                FocusedItem.SelectedIndex = 0;
            }
            PopulateObjects(DisplayObject, false);
            if (DisplayObject.Items.Count != 0)
            {
                DisplayObject.SelectedIndex = 0;
            }
            PopulateObjects(ObjectName2D, false);
            if (ObjectName2D.Items.Count != 0)
            {
                ObjectName2D.SelectedIndex = 0;
            }
            PopulateObjects(PredataObject, false);
            PredataObject.Items.Insert(0, "None");
            PredataObject.SelectedIndex = 0;
            DataDisplayOptions.Enabled  = false;
            HideShowOptions.Enabled     = false;
            VectorHideShow.Enabled      = false;
            CustomLeadTrail.Enabled     = false;
            //initialize some settings in the current view data
            current.EnableProximityBox       = false;
            current.EnableGeoBox             = false;
            current.EnableProximityEllipsoid = false;
            current.SecondaryDataDisplay.DataDisplayActive = false;
            current.ApplyVectorScaling = false;
            current.OverrideTimeStep   = false;
            mStkObjectsLibrary         = new StkObjectsLibrary();
        }
Пример #7
0
 public EditGeoDriftForm()
 {
     InitializeComponent();
     CommonData.CurrentViewObjectData = SmartViewFunctions.GetObjectData();
     PopulateComboBoxes();
 }