public RealsenseBO(System.Windows.Forms.Control myParentControl, System.Windows.Forms.PictureBox myPictureBoxColor, System.Windows.Forms.PictureBox myPictureBoxDepth, System.Windows.Forms.PictureBox mypictureBoxIR, OGLControl myOpenGLControl, System.Windows.Forms.Label mycameraFpsLabel) : this() { parentControl = myParentControl; openGLPart = new OpenGLPart(this, myParentControl, myOpenGLControl); DepthMetaData = new DepthMetaData(); PathModels = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location) + GLSettings.PathPointClouds; try { pictureBoxDepth = myPictureBoxDepth; pictureBoxColor = myPictureBoxColor; pictureBoxIR = mypictureBoxIR; cameraFpsLabel = mycameraFpsLabel; openGLControl = myOpenGLControl; GetRealSenseCameras(out DevicesDepth, out DevicesColor, out videoDevices); NumberOfDevices = DevicesDepth.Count; SetConversionMatrices(); } catch (Exception err) { System.Windows.Forms.MessageBox.Show("SW Error initializing Scanner : " + err.Message); } }
public KinectBO(System.Windows.Forms.Control myParentControl, System.Windows.Forms.PictureBox myPictureBoxColor, System.Windows.Forms.PictureBox myPictureBoxDepth, System.Windows.Forms.PictureBox mypictureBoxIR, OGLControl myOpenGLControl, System.Windows.Forms.PictureBox mypictureBoxEntropy, System.Windows.Forms.PictureBox mypictureBoxPolygon, System.Windows.Forms.Label mycameraFpsLabel, Label mylabelRefreshRateOpenGL, Label mylabelDepth1) : this() { openGLPart = new OpenGLPart(this, myParentControl, myOpenGLControl); parent = myParentControl; pictureBoxDepth = myPictureBoxDepth; pictureBoxColor = myPictureBoxColor; pictureBoxIR = mypictureBoxIR; cameraFpsLabel = mycameraFpsLabel; openGLControl = myOpenGLControl; this.pictureBoxEntropy = mypictureBoxEntropy; this.pictureBoxPolygon = mypictureBoxPolygon; labelFramesPerSecond = mycameraFpsLabel; labelRefreshRateOpenGL = mylabelRefreshRateOpenGL; labelDepth1 = mylabelDepth1; InitPictureBoxesForUI(); //try //{ //} //catch (Exception err) //{ // System.Windows.Forms.MessageBox.Show("SW Error initializing Scanner : " + err.Message); //} this.ellipseFace = new Ellipse(faceX, faceY, 0.6f); }