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(); }
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(); }
public OpenGLContext(OGLControl myGLControl) { GLControlInstance = myGLControl; Camera = new Camera(); PrimitiveTypes = PrimitiveType.Points; }