Пример #1
0
        private void ColorModeBox_SelectedIndexChanged(object sender, EventArgs e)
        {
            Settings.Default.ColorModeBoxIndex = ColorModeBox.SelectedIndex;
            viewChangeCol = true;

            LegendBox.Hide();
            KlasyfikatorGroupBox.Hide();
            if (ColorModeBox.SelectedItem.Equals("klasa"))
            {
                LegendBox.Show();
            }
            else if (ColorModeBox.SelectedItem.Equals("własna klasyfikacja"))
            {
                KlasyfikatorComboBox.SelectedIndex = Settings.Default.KlasyfikatorBoxIndex;
                LegendBox.Show();
                KlasyfikatorGroupBox.Show();
            }
        }
Пример #2
0
        public Form1()
        {
            InitializeComponent();

            //Controller.File = new LASFile("N-34-50-C-c-4-2-2-1.las");
            //LoadFileInfo();
            pictureBox1.BackColor       = ClassificationToColor[LasPoint.ClassificationType.Ground];
            pictureBox2.BackColor       = ClassificationToColor[LasPoint.ClassificationType.LowVegetation];
            pictureBox3.BackColor       = ClassificationToColor[LasPoint.ClassificationType.MediumVegetation];
            pictureBox4.BackColor       = ClassificationToColor[LasPoint.ClassificationType.HighVegetation];
            pictureBox5.BackColor       = ClassificationToColor[LasPoint.ClassificationType.Building];
            pictureBox6.BackColor       = ClassificationToColor[LasPoint.ClassificationType.Noise];
            pictureBox7.BackColor       = ClassificationToColor[LasPoint.ClassificationType.Water];
            pictureBox8.BackColor       = ClassificationToColor[LasPoint.ClassificationType.Other];
            ColorModeBox.SelectedIndex  = 1;
            ProjectionBox.SelectedIndex = 0;

            LegendBox.Hide();
            KlasyfikatorGroupBox.Hide();
            AllocConsole();
        }