private void PopulateComboBoxes()
        {
            TypeSelect.Items.Add("3D");
            TypeSelect.Items.Add("2D");
            TypeSelect.SelectedIndex = 0;

            DisplayLocation.Items.Add("TopLeft");
            DisplayLocation.Items.Add("TopCenter");
            DisplayLocation.Items.Add("TopRight");
            DisplayLocation.Items.Add("CenterLeft");
            DisplayLocation.Items.Add("Center");
            DisplayLocation.Items.Add("CenterRight");
            DisplayLocation.Items.Add("BottomLeft");
            DisplayLocation.Items.Add("BottomCenter");
            DisplayLocation.Items.Add("BottomRight");
            DisplayLocation.SelectedIndex = 0;

            TypeSelect2D.Items.Add("ZoomedOut");
            TypeSelect2D.Items.Add("SpecifyCenter");
            TypeSelect2D.Items.Add("ObjectCenter");
            TypeSelect2D.SelectedIndex = 0;


            LeadType3D.Items.Add("OnePass");
            LeadType3D.Items.Add("All");
            LeadType3D.Items.Add("Full");
            LeadType3D.Items.Add("Half");
            LeadType3D.Items.Add("Quarter");
            LeadType3D.Items.Add("None");
            LeadType3D.Items.Add("Time");
            LeadType3D.SelectedIndex = 0;

            LeadType2D.Items.Add("OnePass");
            LeadType2D.Items.Add("All");
            LeadType2D.Items.Add("Full");
            LeadType2D.Items.Add("Half");
            LeadType2D.Items.Add("Quarter");
            LeadType2D.Items.Add("None");
            LeadType2D.Items.Add("Time");
            LeadType2D.SelectedIndex = 0;

            TrailType3D.Items.Add("SameAsLead");
            TrailType3D.Items.Add("OnePass");
            TrailType3D.Items.Add("All");
            TrailType3D.Items.Add("Full");
            TrailType3D.Items.Add("Half");
            TrailType3D.Items.Add("Quarter");
            TrailType3D.Items.Add("None");
            TrailType3D.Items.Add("Time");
            TrailType3D.SelectedIndex = 0;

            TrailType2D.Items.Add("SameAsLead");
            TrailType2D.Items.Add("OnePass");
            TrailType2D.Items.Add("All");
            TrailType2D.Items.Add("Full");
            TrailType2D.Items.Add("Half");
            TrailType2D.Items.Add("Quarter");
            TrailType2D.Items.Add("None");
            TrailType2D.Items.Add("Time");
            TrailType2D.SelectedIndex = 0;

            ZoomCenterLong.Text = "0";
            ZoomCenterLat.Text  = "0";
            ZoomDelta.Text      = "10";

            OrbitTrackBox.Enabled  = false;
            GroundTrackBox.Enabled = false;

            List <string> paths = SmartViewFunctions.GetCameraPaths();

            foreach (var item in paths)
            {
                CameraPathName.Items.Add(item);
            }
            if (CameraPathName.Items.Count > 0)
            {
                CameraPathName.SelectedIndex = 0;
            }
        }
Example #2
0
        private void PopulateComboBoxes()
        {
            ViewName3D.Text = CommonData.SavedViewList[CommonData.SelectedIndex].Name;
            //ViewType.Items.Add("Inertial");
            //ViewType.Items.Add("Fixed");
            //ViewType.SelectedIndex = 0;

            if (CommonData.SavedViewList[CommonData.SelectedIndex].UseAnimationTime)
            {
                CurrentTime.Text       = CommonData.SavedViewList[CommonData.SelectedIndex].AnimationTime;
                UseCurrentTime.Checked = true;
            }

            List <string> paths = SmartViewFunctions.GetCameraPaths();

            for (int i = 0; i < paths.Count; i++)
            {
                CameraPathName.Items.Add(paths[i]);
                if (CommonData.SavedViewList[CommonData.SelectedIndex].UseCameraPath && paths[i] == CommonData.SavedViewList[CommonData.SelectedIndex].CameraPathName)
                {
                    CameraPathName.SelectedIndex = i;
                }
            }
            if (CameraPathName.SelectedIndex == -1 && CameraPathName.Items.Count > 0)
            {
                CameraPathName.SelectedIndex = 0;
            }


            if (CommonData.SavedViewList[CommonData.SelectedIndex].UseCameraPath)
            {
                UseCameraPath.Checked  = true;
                CameraPathName.Enabled = true;
            }
            else
            {
                UseCameraPath.Checked  = false;
                CameraPathName.Enabled = false;
            }

            DisplayLocation.Items.Add("TopLeft");
            DisplayLocation.Items.Add("TopCenter");
            DisplayLocation.Items.Add("TopRight");
            DisplayLocation.Items.Add("CenterLeft");
            DisplayLocation.Items.Add("Center");
            DisplayLocation.Items.Add("CenterRight");
            DisplayLocation.Items.Add("BottomLeft");
            DisplayLocation.Items.Add("BottomCenter");
            DisplayLocation.Items.Add("BottomRight");
            DisplayLocation.SelectedIndex = 0;
            if (CommonData.SavedViewList[CommonData.SelectedIndex].PrimaryDataDisplay.DataDisplayActive)
            {
                foreach (string item in DisplayLocation.Items)
                {
                    if (CommonData.SavedViewList[CommonData.SelectedIndex].PrimaryDataDisplay.DataDisplayLocation.Contains(item))
                    {
                        DisplayLocation.SelectedItem = item;
                    }
                }
            }
            OrbitTrackBox.Enabled = false;
            if (CommonData.SavedViewList[CommonData.SelectedIndex].EnableUniversalOrbitTrack)
            {
                EnableUniversalOrbitTrack.Checked = true;
            }
            LeadType3D.Items.Add("OnePass");
            LeadType3D.Items.Add("All");
            LeadType3D.Items.Add("Full");
            LeadType3D.Items.Add("Half");
            LeadType3D.Items.Add("Quarter");
            LeadType3D.Items.Add("None");
            LeadType3D.Items.Add("Time");
            LeadType3D.SelectedIndex = 0;
            if (CommonData.SavedViewList[CommonData.SelectedIndex].EnableUniversalOrbitTrack && !CommonData.SavedViewList[CommonData.SelectedIndex].UniqueLeadTrail)
            {
                foreach (string item in LeadType3D.Items)
                {
                    if (CommonData.SavedViewList[CommonData.SelectedIndex].LeadType.Contains(item))
                    {
                        LeadType3D.SelectedItem = item;
                        if (item == "Time")
                        {
                            OrbitLeadTime.Text = CommonData.SavedViewList[CommonData.SelectedIndex].LeadTime;
                        }
                    }
                }
            }

            TrailType3D.Items.Add("SameAsLead");
            TrailType3D.Items.Add("OnePass");
            TrailType3D.Items.Add("All");
            TrailType3D.Items.Add("Full");
            TrailType3D.Items.Add("Half");
            TrailType3D.Items.Add("Quarter");
            TrailType3D.Items.Add("None");
            TrailType3D.Items.Add("Time");
            TrailType3D.SelectedIndex = 0;
            if (CommonData.SavedViewList[CommonData.SelectedIndex].EnableUniversalOrbitTrack && !CommonData.SavedViewList[CommonData.SelectedIndex].UniqueLeadTrail)
            {
                foreach (string item in TrailType3D.Items)
                {
                    if (CommonData.SavedViewList[CommonData.SelectedIndex].TrailType.Contains(item))
                    {
                        TrailType3D.SelectedItem = item;
                        if (item == "Time")
                        {
                            OrbitTrailTime.Text = CommonData.SavedViewList[CommonData.SelectedIndex].TrailTime;
                        }
                    }
                }
            }

            List <string> windowNames = SmartViewFunctions.GetWindowNames(1);

            foreach (var item in windowNames)
            {
                WindowSelect.Items.Add(item);
                if (item.Contains(CommonData.SavedViewList[CommonData.SelectedIndex].WindowName))
                {
                    WindowSelect.SelectedIndex = WindowSelect.Items.Count - 1;
                }
            }

            if (CommonData.SavedViewList[CommonData.SelectedIndex].ObjectHideShow)
            {
                ObjectHideShow.Checked  = true;
                HideShowOptions.Enabled = true;
            }
            else
            {
                HideShowOptions.Enabled = false;
            }

            if (CommonData.SavedViewList[CommonData.SelectedIndex].VectorHideShow)
            {
                UseVectorHideShow.Checked = true;
                VectorHideShow.Enabled    = true;
            }
            else
            {
                UseVectorHideShow.Checked = false;
                VectorHideShow.Enabled    = false;
            }

            if (CommonData.SavedViewList[CommonData.SelectedIndex].PrimaryDataDisplay.DataDisplayActive)
            {
                UseDataDisplay.Checked     = true;
                DataDisplayOptions.Enabled = true;
            }
            else
            {
                DataDisplayOptions.Enabled = false;
            }

            if (CommonData.SavedViewList[CommonData.SelectedIndex].UseAnimationTime)
            {
                string currentTime = CommonData.SavedViewList[CommonData.SelectedIndex].AnimationTime;
                UseCurrentTime.Checked = true;
                CurrentTime.Text       = currentTime;
            }
            if (CommonData.SavedViewList[CommonData.SelectedIndex].UseStoredView)
            {
                UseCurrentViewPoint.Checked = true;
            }
        }