Beispiel #1
0
        public void Init()
        {
            MyProjectPara     = ProjectParaManager.Instance.GetProjectPara(0);
            LeftUpVisionPara  = MyProjectPara.GetVisionPara("Ipad左上角拍照位");
            RightDnVisionPara = MyProjectPara.GetVisionPara("Ipad右下角拍照位");

            LeftUpView  = DisplaySystem.GetViewControl("Ipad左上角拍照位1");
            RightDnView = DisplaySystem.GetViewControl("Ipad右下角拍照位1");

            VisionStateLeftUp = new VisionStateBase(LeftUpVisionPara, "Ipad左上角拍照位", LeftUpView);
            VisionStateLeftUp = new VisionStateBase(RightDnVisionPara, "Ipad右下角拍照位", RightDnView);

            VisionStateLeftUp.SetCamLight();
            VisionStateRightDn.SetCamLight();
        }
Beispiel #2
0
        public void Init()
        {
            MyProjectPara          = ProjectParaManager.Instance.GetProjectPara(0);
            RightDnLeftVisionPara  = MyProjectPara.GetVisionPara("右侧下相机左上角拍照位");
            RightDnRightVisionPara = MyProjectPara.GetVisionPara("右侧下相机右下角拍照位");
            UpCamLeftDnVisionPara  = MyProjectPara.GetVisionPara("上相机左上角拍照位2");
            UpCamRightDnVisionPara = MyProjectPara.GetVisionPara("上相机右下角拍照位2");

            RightDnCamLeftStaView  = DisplaySystem.GetViewControl("右侧下相机左上角拍照位");
            RightDnCamRightStaView = DisplaySystem.GetViewControl("右侧下相机右下角拍照位");
            UpCamLeftDnStaView     = DisplaySystem.GetViewControl("上相机左上角拍照位2");
            UpCamRightDnStaView    = DisplaySystem.GetViewControl("上相机右下角拍照位2");

            VisionStateUpCamLeftDn     = new VisionStateBase(UpCamLeftDnVisionPara, "右侧下相机左上角拍照位", UpCamLeftDnStaView);
            VisionStateUpCamRightDn    = new VisionStateBase(UpCamRightDnVisionPara, "右侧下相机右下角拍照位", UpCamRightDnStaView);
            VisionStateRightDnCamLeft  = new VisionStateBase(RightDnLeftVisionPara, "上相机左上角拍照位2", RightDnCamLeftStaView);
            VisionStateRightDnCamRight = new VisionStateBase(RightDnRightVisionPara, "上相机右下角拍照位2", RightDnCamRightStaView);

            VisionStateUpCamLeftDn.SetCamLight();
            VisionStateUpCamRightDn.SetCamLight();
            VisionStateRightDnCamLeft.SetCamLight();
            VisionStateRightDnCamRight.SetCamLight();
        }
Beispiel #3
0
        public void Init()
        {
            MyProjectPara            = ProjectParaManager.Instance.GetProjectPara(0);
            LeftDnCamLeftVisionPara  = MyProjectPara.GetVisionPara("左侧下相机左上角拍照位");
            LeftDnCamRightVisionPara = MyProjectPara.GetVisionPara("左侧下相机右下角拍照位");
            UpCamLeftUpVisionPara    = MyProjectPara.GetVisionPara("上相机左上角拍照位1");
            UpCamRightUpVisionPara   = MyProjectPara.GetVisionPara("上相机右下角拍照位1");

            LeftDnCamLeftView   = DisplaySystem.GetViewControl("左侧下相机左上角拍照位");
            LeftDnCamRightView  = DisplaySystem.GetViewControl("左侧下相机右下角拍照位");
            UpCamLeftUpView     = DisplaySystem.GetViewControl("上相机左上角拍照位1");
            UpCamRightUpCamView = DisplaySystem.GetViewControl("上相机右下角拍照位1");

            VisionStateBaseUpCamLeftUp  = new VisionStateBase(UpCamLeftUpVisionPara, "左侧下相机左上角拍照位", UpCamLeftUpView);
            VisionStateBaseUpCamRightUp = new VisionStateBase(UpCamRightUpVisionPara, "左侧下相机右下角拍照位", UpCamRightUpCamView);
            VisionStateDnLeftCamLeft    = new VisionStateBase(LeftDnCamLeftVisionPara, "上相机左上角拍照位1", LeftDnCamLeftView);
            VisionStateDnLeftCamRight   = new VisionStateBase(LeftDnCamRightVisionPara, "上相机右下角拍照位1", LeftDnCamRightView);

            VisionStateDnLeftCamLeft.SetCamLight();
            VisionStateBaseUpCamRightUp.SetCamLight();
            VisionStateDnLeftCamLeft.SetCamLight();
            VisionStateDnLeftCamRight.SetCamLight();
        }