Exemplo n.º 1
0
 private void button1_Click(object sender, EventArgs e)
 {
     controller.model.PackageParameter();
     maindetectsrategy = new CameraStrategy(ChosenCamera.ChosenCameraInfo, controller.model.Parameters);
     maindetectsrategy.detect(Port.getInstance(0));
     Updateresult();
 }
Exemplo n.º 2
0
        private void pictureBox11_Click(object sender, EventArgs e)
        {
            //创建检测线程
            controller.model.PackageParameter();
            maindetectsrategy = new CameraStrategy(ChosenCamera.ChosenCameraInfo, controller.model.Parameters);
            DetectObserver observer = new DetectObserver(maindetectsrategy, Port.getInstance(0));

            thread = new Thread(new ThreadStart(observer.tick));
            thread.Start();
            thread.IsBackground = true;
            timer2.Enabled      = true;

            //显示正在运行
            pictureBox14.Visible = true;
            label23.Visible      = true;
        }
Exemplo n.º 3
0
 public CameraTargetState(CameraStrategy cameraStrategy)
 {
     m_cameraStrategy = cameraStrategy;
     m_AtPos          = Vector3.zero;
 }
Exemplo n.º 4
0
 internal void ReleaseStrategy()
 {
     m_currentStrategy = null;
 }
Exemplo n.º 5
0
 public void FollowTarget(GameObject target, float leftBorder, float rightBorder)
 {
     m_currentStrategy = new FollowTargetStrategy(target, leftBorder, rightBorder);
 }
Exemplo n.º 6
0
 public CameraGameState(CameraStrategy cameraStrategy)
 {
     m_cameraStrategy = cameraStrategy;
 }