private void Camera_PropertyChanged(object sender, System.ComponentModel.PropertyChangedEventArgs e)
        {
            if (e.PropertyName == "IsConnected")
            {
                ProCommon.Communal.Camera cam = sender as ProCommon.Communal.Camera;

                if (cam != null &&
                    (!cam.IsConnected) &&
                    (!_isSystemStop))
                {
                    if (!_timer.Enabled)
                    {
                        StartTimer();
                    }
                }
            }
        }
 private void OnCameraImageGrabbed(ProCommon.Communal.Camera cam, HalconDotNet.HObject hoImage)
 {
     if (hoImage != null &&
         hoImage.IsInitialized())
     {
         if (HoImage != null &&
             HoImage.IsInitialized())
         {
             HoImage.Dispose();
         }
         HoImage = hoImage;
         if (ImageGrabbedEvt != null)
         {
             ImageGrabbedEvt(cam, HoImage);
         }
     }
 }
Exemple #3
0
        public CameraAPIHandle(ProCommon.Communal.Camera cam)
        {
            if (cam != null)
            {
                CameraConfig = cam;
                switch (cam.CtrllerBrand)
                {
                case ProCommon.Communal.CtrllerBrand.Baumer:
                    break;

                case ProCommon.Communal.CtrllerBrand.Dalsa:
                    break;

                case ProCommon.Communal.CtrllerBrand.Imaging:
                    break;

                case ProCommon.Communal.CtrllerBrand.MindVision:
                    ProDriver.Driver.CameraDriver_MindVision camdriver_mindvision = new ProDriver.Driver.CameraDriver_MindVision(cam);
                    ICamDriverable = (camdriver_mindvision as ProDriver.Driver.ICamDriver);
                    break;

                case ProCommon.Communal.CtrllerBrand.Basler:
                    ProDriver.Driver.CameraDriver_Basler camdriver_basler = new ProDriver.Driver.CameraDriver_Basler(cam);
                    ICamDriverable = (camdriver_basler as ProDriver.Driver.ICamDriver);
                    break;

                case ProCommon.Communal.CtrllerBrand.HikVision:
                    ProDriver.Driver.CameraDriver_HikVision camdriver_hikvision = new ProDriver.Driver.CameraDriver_HikVision(cam);
                    ICamDriverable = (camdriver_hikvision as ProDriver.Driver.ICamDriver);
                    break;

                case ProCommon.Communal.CtrllerBrand.DaHeng:
                    ProDriver.Driver.CameraDriver_DaHeng camdriver_DaHeng = new ProDriver.Driver.CameraDriver_DaHeng(cam);
                    ICamDriverable = (camdriver_DaHeng as ProDriver.Driver.ICamDriver);
                    break;

                case ProCommon.Communal.CtrllerBrand.DaHua:
                    ProDriver.Driver.CameraDriver_OPT cameraDriver_OPT = new Driver.CameraDriver_OPT(cam);
                    ICamDriverable = (cameraDriver_OPT as ProDriver.Driver.ICamDriver);
                    break;

                default:
                    break;
                }
            }
        }
        public CameraAPIHandle(ProCommon.Communal.Camera cam)
        {
            if (cam != null)
            {
                _cam = cam;
                switch (cam.CtrllerBrand)
                {
                case ProCommon.Communal.CtrllerBrand.Baumer:
                    break;

                case ProCommon.Communal.CtrllerBrand.Dalsa:
                    break;

                case ProCommon.Communal.CtrllerBrand.Imaging:
                    break;

                case ProCommon.Communal.CtrllerBrand.MindVision:
                    ProDriver.Driver.CameraDriver_MindVision camdriver_mindvision = new ProDriver.Driver.CameraDriver_MindVision(cam);
                    ICamDriverable = (camdriver_mindvision as ProDriver.Driver.ICamDriver);
                    break;

                case ProCommon.Communal.CtrllerBrand.Basler:
                    //ProDriver.Driver.CameraDriver_Basler camdriver_basler = new ProDriver.Driver.CameraDriver_Basler(cam);
                    //ICamDriverable = (camdriver_basler as ProDriver.Driver.ICamDriver);
                    break;

                case ProCommon.Communal.CtrllerBrand.HikVision:
                    //ProDriver.Driver.CameraDriver_HikVision camdriver_hikvision = new ProDriver.Driver.CameraDriver_HikVision(cam);
                    //ICamDriverable = (camdriver_hikvision as ProDriver.Driver.ICamDriver);
                    break;

                default:
                    break;
                }
            }
        }
Exemple #5
0
 public CameraDriver_MindVision(ProCommon.Communal.Camera cam) : this()
 {
     Camera = cam;
 }
 private void Device_Camera_ImageGrabbedEvt(ProCommon.Communal.Camera cam, HalconDotNet.HObject hobj)
 {
 }
Exemple #7
0
 public CameraDriver_DaHeng(ProCommon.Communal.Camera cam) : this()
 {
     Camera = cam;
 }