示例#1
0
        public MainForm()
        {
            InitializeComponent();

            //Code for sending orientation data
            //Initialize Send class
            Send oSend = new Send();

            //Create thread object for X
            Thread oThreadOrientation = new Thread(new ThreadStart(oSend.sendOrientation));
            oThreadOrientation.IsBackground = true;

            //Start thread
            oThreadOrientation.Start();

            //Wait until data has begun sending
            while (oThreadOrientation.IsAlive == false)
            {
                Thread.Sleep(10);
            }

            CaptureSelection captureSelectionDialog = new CaptureSelection();

            captureSelectionDialog.ShowDialog();
            m_leftEyeDevicePath = captureSelectionDialog.leftEyeDevicePath;
            m_rightEyeDevicePath = captureSelectionDialog.rightEyeDevicePath;

            lock (m_csSceneLock)
            {
                m_Scene = new Scene(this.pbView, captureSelectionDialog.displayId, captureSelectionDialog.fullScreen);
            }
        }
示例#2
0
        public MainForm()
        {
            InitializeComponent();

            //Code for sending orientation data
            //Initialize Send class
            Send oSend = new Send();

            //Create thread object for X
            Thread oThreadOrientation = new Thread(new ThreadStart(oSend.sendOrientation));

            oThreadOrientation.IsBackground = true;


            //Start thread
            oThreadOrientation.Start();


            //Wait until data has begun sending
            while (oThreadOrientation.IsAlive == false)
            {
                Thread.Sleep(10);
            }

            CaptureSelection captureSelectionDialog = new CaptureSelection();

            captureSelectionDialog.ShowDialog();
            m_leftEyeDevicePath  = captureSelectionDialog.leftEyeDevicePath;
            m_rightEyeDevicePath = captureSelectionDialog.rightEyeDevicePath;

            lock (m_csSceneLock)
            {
                m_Scene = new Scene(this.pbView, captureSelectionDialog.displayId, captureSelectionDialog.fullScreen);
            }
        }