コード例 #1
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     CameraFactory.RemoveAllCameras();
     try
     {
         SrVision.SRV_Dispose();
     }
     catch (Exception ex)
     {
         Logging.Error(ex);
     }
 }
コード例 #2
0
        private void ConfigFrameButton_Click(object sender, RoutedEventArgs e)
        {
            //移除所有的场景和相机
            CameraFactory.RemoveAllCameras();
            SceneManager.ResetScenes();

            //切换环境
            CameraFactory.DefaultCameraSdkType        = (ECameraSdkType)CameraSDKComboBox.SelectedItem;
            VisionFrameFactory.DefaultVisionFrameType = (EVisionFrameType)VisionFrameComboBox.SelectedItem;

            CameraFactory.AddAllCamera();
            SceneManager.RecoverScenes();

            //更新场景
            ScenesListView.Items.Clear();
            foreach (var item in SceneManager.Scenes.Values)
            {
                ScenesListView.Items.Add(item);
            }
        }
コード例 #3
0
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     SceneManager.ResetScenes();
     CameraFactory.RemoveAllCameras();
 }