예제 #1
0
        public ScannerUC()
        {
            InitializeComponent();

            //           AddOpenGLUserControl();
            OglControl = this.openGLUC.OGLControl;

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

            InitFromSettings();


            TimerSnapshots.Elapsed += new System.Timers.ElapsedEventHandler(TimerSnapshots_Tick);
            InitKinectScanner();
            InitRealSenseScanner();


            this.isScanning = false;
            this.captureToolStripMenuItem.Text = "Scan";

            SwitchTabs();
        }
예제 #2
0
        private void buttonOK_Click(object sender, EventArgs e)
        {
            GLSettings.PointSize     = Convert.ToSingle(this.textBoxPointSize.Text);
            GLSettings.PointSizeAxis = Convert.ToSingle(this.textBoxPointSizeAxis.Text);

            //different usages
            OpenGLUC myControl = ParentGLControl as OpenGLUC;

            if (myControl != null)
            {
                myControl.OGLControl.GLrender.ResetPointLineSizes();
                myControl.Refresh();
            }
            OGLControl myOGLControl = ParentGLControl as OGLControl;

            if (myOGLControl != null)
            {
                myOGLControl.GLrender.ResetPointLineSizes();
                myOGLControl.Update();
            }

            this.Close();
        }
예제 #3
0
 public OpenGLContext(OGLControl myGLControl)
 {
     GLControlInstance = myGLControl;
     Camera            = new Camera();
     PrimitiveTypes    = PrimitiveType.Points;
 }