Exemple #1
0
        public MainForm()
        {
            try
            {
                //OpenTK.Toolkit.Init();
                InitializeComponent();
                AddScannerControl();
            }
            catch (Exception ex)
            {
                System.Windows.Forms.MessageBox.Show("Error loading - OpenGL problems? - " + ex.Message);
            }
            if (!PointCloudScannerSettings.IsInitializedFromSettings)
            {
                PointCloudScannerSettings.InitFromSettings();
            }
            if (!GLSettings.IsInitializedFromSettings)
            {
                GLSettings.InitFromSettings();
            }

            this.Height = PointCloudScannerSettings.Height;
            this.Width  = PointCloudScannerSettings.Width;

            //ScannerUC.ScannerTypeDisplayed = PointCloudScannerSettings.ScannerTypeDefault;
        }
Exemple #2
0
        protected override void OnClosed(EventArgs e)
        {
            GLSettings.Height = this.Height;
            GLSettings.Width  = this.Width;

            GLSettings.SaveSettings();
            base.OnClosed(e);
        }
Exemple #3
0
        protected override void OnClosed(EventArgs e)
        {
            GlobalVariables.FormFast = null;
            GLSettings.Height        = this.Height;
            GLSettings.Width         = this.Width;
            GLSettings.SaveSettings();

            base.OnClosed(e);
        }
Exemple #4
0
        public OpenTKFormAlternative()
        {
            InitializeComponent();
            InitComboBox();

            if (!GLSettings.IsInitializedFromSettings)
            {
                GLSettings.InitFromSettings();
            }

            this.Height = GLSettings.Height;
            this.Width  = GLSettings.Width;
        }
Exemple #5
0
        protected override void OnClosed(EventArgs e)
        {
            PointCloudScannerSettings.Height = this.Height;
            PointCloudScannerSettings.Width  = this.Width;

            PointCloudScannerSettings.SaveSettings();
            GLSettings.SaveSettings();
            if (scannerUC != null)
            {
                scannerUC.StopScanner();
            }

            base.OnClosed(e);
        }
Exemple #6
0
        public ucUI()
        {
            Thread.CurrentThread.CurrentUICulture = new CultureInfo(CultureInfo.CurrentCulture.LCID);
            InitializeComponent();

            AddOpenGLControl();

            if (!GLSettings.IsInitializedFromSettings)
            {
                GLSettings.InitFromSettings();
            }

            this.Height = GLSettings.Height;
            this.Width  = GLSettings.Width;
            this.Text   = "UI";

            Timer timer = new System.Windows.Forms.Timer()
            {
                Interval = 1000,
            };

            timer.Tick   += Tick;
            timer.Enabled = true;
        }