Ejemplo n.º 1
0
 public PhotoColorInfor()
 {
     InitializeComponent();
     dg = new DrawGraphic(DrawCanvas);
     ShowCC();
     acm = new ActionMove(this, this);
 }
Ejemplo n.º 2
0
 public LayerInfor()
 {
     InitializeComponent();
     am        = new ActionMove(this, Title);
     am.Enable = true;
     ar        = new ActionResize(LayoutRoot);
 }
        public ITEGrayscaleChartTest()
        {
            InitializeComponent();
            testHelper = new ChartTestHelper(this);
            //photoInforTool1.setTarget(ChartPhoto);
            am = new ActionMove(this, Title);

            //photoEditToolbar.setChartControl(ChartPhoto);//设置图版和工具栏的关联
            //photoEditToolbar.saveChartTestResult = WriteToHTML;
            //ChartPhoto.InitTest(autoTest);
            //ChartPhoto.InitSaveTest(WriteToHTML);
            ci         = new CameraTestIcon(this, null, "ITEGrayscaleChart", "ITE灰阶");
            ci.release = CloseWindow;
            CameraTestDesktop cd = CameraTestDesktop.getDesktop();

            if (!cd.TaskList.Children.Contains(ci))
            {
                cd.TaskList.Children.Add(ci);
            }
            else
            {
                ci.Active();
            }
            dg = new DrawGraphic(canvasLatitude);
        }
Ejemplo n.º 4
0
    private void Update()
    {
        if (Input.GetKeyUp(KeyCode.M))
        {
            // Create Move
            GameObject go = new GameObject(string.Format("{0}_Move", _actions.Count));
            ActionMove a  = go.AddComponent <ActionMove>();

            a.Direction = Vector3.right;
            a.Speed     = 500.0f;
            a.Duration  = 1.0f;

            Add(a);

            go.transform.SetParent(transform);
        }

        if (Input.GetKeyUp(KeyCode.W))
        {
            GameObject go = new GameObject(string.Format("{0}_Wait", _actions.Count));
            ActionWait w  = go.AddComponent <ActionWait>();

            w.Duration = 1.0f;

            Add(w);

            go.transform.SetParent(transform);
        }
    }
Ejemplo n.º 5
0
    private void CreateOrderMove(Vector3 direction)
    {
        if (CouldAddnewOrder() == false)
        {
            //  Debug.Log("不能添加动作");
            return;
        }

        if (lastDir != null)
        {
            direction = (direction + lastDir).normalized;
            lastDir   = direction;
        }

        AgentOrder order = AgentOrderFactory.Create(AgentOrder.E_OrderType.E_GOTO);

        order.Direction         = direction;
        order.MoveSpeedModifier = moveSpeed;
        Owner.BlackBoard.OrderAdd(order);
        Owner.BlackBoard.DesiredDirection = direction;

        ActionMove actionMove = ActionFactory.Create(ActionFactory.E_Type.E_MOVE) as ActionMove;

        GetComponent <AnimComponent>().HandleAction(actionMove);
    }
Ejemplo n.º 6
0
        //Dictionary<WriteableBitmap, XMarkChart> tl = new Dictionary<WriteableBitmap, XMarkChart>();

        public XMarkTest()
        {
            InitializeComponent();
            testHelper = new ChartTestHelper(this);

            am = new ActionMove(this, Title);
            //photoInforTool1.setTarget(ChartPhoto);
            //lPhotoList1.TargetControl = ChartPhoto;
            //lPhotoList1.photoOperated += new UIControl.PhotoOperation(lPhotoList1_photoModifyed);

            //photoEditToolbar.setChartControl(lPhotoList1);//设置图版和工具栏的关联
            //photoEditToolbar.saveChartTestResult = WriteToHTML;
            //photoEditToolbar.setTestAll(BeginAll);
            //ChartPhoto.InitTest(Begin);

            ci         = new CameraTestIcon(this, null, "XMark", "XMark测试卡");
            ci.release = CloseWindow;
            CameraTestDesktop cd = CameraTestDesktop.getDesktop();

            if (!cd.TaskList.Children.Contains(ci))
            {
                cd.TaskList.Children.Add(ci);
            }
            else
            {
                ci.Active();
            }
        }
Ejemplo n.º 7
0
 public ColorSelect()
 {
     InitializeComponent();
     acm           = new ActionMove(this, this);
     cb.Color      = Colors.White;
     RegColor.Fill = cb;
 }
Ejemplo n.º 8
0
 //constructors
 private RRLine()
 {
     _voidFuncs = new List <ActionVoid>();
     _moveFunc  = null;
     _useFunc   = null;
     Activated  = false;
 }
Ejemplo n.º 9
0
    public bool turnTime; //True - kiedy można wykonać ruch, False - wykonywanie akcji

    void Awake()
    {
        AM = GetComponent <ActionMove>();
        W  = GetComponent <Weapon>();
        Debug.Assert(AM != null);
        Debug.Assert(W != null);
    }
Ejemplo n.º 10
0
 public ShutterSpeed()
 {
     InitializeComponent();
     BackTimer.Interval = TimeSpan.FromMilliseconds(1000);
     MainTimer.Interval = new TimeSpan(0, 0, 0, 0, 10);
     am = new ActionMove(this, this);
 }
Ejemplo n.º 11
0
 public Noise()
 {
     InitializeComponent();
     am  = new ActionMove(this, this);
     dg  = new DrawGraphic(DrawCanvas);
     dg1 = new DrawGraphic(lChartPhoto1.getDrawObjectCanvas());
 }
Ejemplo n.º 12
0
 public BadPixTest()
 {
     InitializeComponent();
     am = new ActionMove(this, this);
     dg = new DrawGraphic(lChartPhotoBadPix.getDrawObjectCanvas());
     //am1 = new ActionMove(ProcPhoto, ProcPhoto);
     //am1.Enable = false;
 }
Ejemplo n.º 13
0
 public PhotoEditCanvas()
 {
     InitializeComponent();
     acm        = new ActionMove(this, PhotoTitle);
     acs        = new ActionResize(PhotoEditFramework, PhotoEditFramework, new LynxResized(_Resized));
     acs.Enable = true;
     InitLayers();//初始化图层
 }
Ejemplo n.º 14
0
    public ActionMove Move(GameObject go, Vector3 end, float duration, Ease ease = null)
    {
        var action = new ActionMove(go, end, duration, ease);

        Add(action);

        return(action);
    }
Ejemplo n.º 15
0
 public Dispersiveness()
 {
     InitializeComponent();
     am = new ActionMove(this, Title);
     photoTestToolbar1.setTarget(lChartPhoto1);
     photoTestToolbar1.autoTest    = ParameterAutoTest;
     photoTestToolbar1.addPhoto    = AddPhoto;
     photoTestToolbar1.removePhoto = RemovePhoto;
 }
Ejemplo n.º 16
0
 public BrightDistance()
 {
     InitializeComponent();
     am = new ActionMove(this, this);
     //photoTestToolbar1.setTarget(HB);
     //photoTestToolbar1.autoTest = ParameterAutoTest;
     //photoTestToolbar1.addPhoto = AddPhoto;
     //photoTestToolbar1.removePhoto = RemovePhoto;
     dg = new DrawGraphic(ImageBrightCurve);
 }
Ejemplo n.º 17
0
 public Latitude()
 {
     InitializeComponent();
     am = new ActionMove(this, Title);
     photoTestToolbar1.setTarget(lChartPhoto1);
     photoTestToolbar1.autoTest    = ParameterAutoTest;
     photoTestToolbar1.addPhoto    = AddPhoto;
     photoTestToolbar1.removePhoto = RemovePhoto;
     dg = new DrawGraphic(DrawCanvas);
 }
Ejemplo n.º 18
0
    {                                             //support photo load and scale/rotate/transform
        //support draw some geometry
        //mergin layer
        public PhotoLayer()
        {
            InitializeComponent();
            li         = new LayerIcon(this);
            acm        = new ActionMove(this, this);
            acm.Enable = false;

            ar        = new ActionResize(Layer, Layer, new LynxResized(_Resized));
            ar.Enable = false;//默认不可缩放
        }
Ejemplo n.º 19
0
 public Wave()
 {
     InitializeComponent();
     am = new ActionMove(this, Title);
     photoTestToolbar1.setTarget(lChartPhoto1);
     photoTestToolbar1.autoTest    = ParameterAutoTest;
     photoTestToolbar1.addPhoto    = AddPhoto;
     photoTestToolbar1.removePhoto = RemovePhoto;
     lChartPhoto1.getImage().PointerPressed += image_PointerPressed;
 }
Ejemplo n.º 20
0
        public ColorTrend()
        {
            InitializeComponent();
            am = new ActionMove(this, this);
            dg = new DrawGraphic(CC);

            //photoTestToolbar1.setTarget(lChartPhoto);
            //photoTestToolbar1.autoTest = ParameterAutoTest;
            //photoTestToolbar1.addPhoto = AddPhoto;
            //photoTestToolbar1.removePhoto = RemovePhoto;
        }
Ejemplo n.º 21
0
 public BadPixTest()
 {
     InitializeComponent();
     am = new ActionMove(this, Title);
     photoTestToolbar1.setTarget(lChartPhotoBadPix);
     photoTestToolbar1.autoTest    = Test;
     photoTestToolbar1.addPhoto    = AddPhoto;
     photoTestToolbar1.removePhoto = RemovePhoto;
     dg = new DrawGraphic(lChartPhotoBadPix.getDrawObjectCanvas());
     //am1 = new ActionMove(ProcPhoto, ProcPhoto);
     //am1.Enable = false;
 }
Ejemplo n.º 22
0
 // Use this for initialization
 void Start()
 {
     ActionManager.Instance.Add(
         this.gameObject,
         ActionMove.Create(
             this.target,
             2f,
             Vector3.zero,
             new Vector3(10f, 0f, 0f)
             )
         );
 }
Ejemplo n.º 23
0
        public Aberration()
        {
            InitializeComponent();
            am = new ActionMove(this, Title);
            //am1 = new ActionMove(PhotoClip, image);
            photoTestToolbar1.setTarget(LChartPhoto);
            photoTestToolbar1.autoTest    = TestImage;
            photoTestToolbar1.addPhoto    = AddPhoto;
            photoTestToolbar1.removePhoto = RemovePhoto;

            dg = new DrawGraphic(LChartPhoto.getDrawObjectCanvas());
        }
Ejemplo n.º 24
0
 public LChartPhoto()
 {
     InitializeComponent();
     amI                        = new ActionMove(PhotoBorder, canvasEdit);
     amI.Enable                 = false;
     selectArea.Stroke          = new SolidColorBrush(Colors.Red);
     selectArea.StrokeThickness = 2;
     Canvas.SetZIndex(selectArea, 20);
     Resized(Width, Height);
     ResetSize();
     //_DefaultWidth = Width;
     //_DefaultHeight = Height;
 }
Ejemplo n.º 25
0
    // Use this for initialization
    void Start()
    {
        drek.count = 10;
        drek.name  = "Drek!";

        move = GetComponent <ActionMove>();
        //actionHandlers = GetComponents<ActionHandler>();
        move.Add(HandleAction1).Add(HandleAction2).Add(HandleAction3);

        move.Remove(HandleAction2);

        move.Subscribe(provider);
    }
Ejemplo n.º 26
0
 public LynxPhotoViewControl()
 {
     this.InitializeComponent();
     //DataContext = this;
     amI                        = new ActionMove(PhotoBorder, EditLayer);
     amI.Enable                 = false;
     selectArea.Stroke          = new SolidColorBrush(Colors.Red);
     selectArea.StrokeThickness = 2;
     Canvas.SetZIndex(selectArea, 20);
     //Resized(Width, Height);
     //ResetSize();
     CanScale = false;
 }
Ejemplo n.º 27
0
    protected override void Initialize(ActionBase action)
    {
        base.Initialize(action);

        Action = action as ActionMove;

        FinalRotation.SetLookRotation(Owner.BlackBoard.DesiredDirection);

        StartRotation = Owner.Transform.rotation;

        Owner.BlackBoard.MotionType = GetMotionType();

        RotationProgress = 0;
    }
Ejemplo n.º 28
0
    override public void OnDeactivate()
    {
        if (Action != null)
        {
            Action.SetSuccess();
            Action = null;
        }

        Owner.BlackBoard.Speed = 0;

        base.OnDeactivate();

        // Time.timeScale = 1;
    }
Ejemplo n.º 29
0
    //停止方向移动
    virtual public void StopDirMove()
    {
        if (mActionCenter == null)
        {
            return;
        }

        ActionMove am = mActionCenter.GetActionByType(ActionTypeDef.ActionTypeMove) as ActionMove;

        if (am != null && am.IsDirection())
        {
            mActionCenter.RemoveActionByType(ActionTypeDef.ActionTypeMove);
        }
    }
Ejemplo n.º 30
0
        public RayleiResolution()
        {
            InitializeComponent();
            am = new ActionMove(this, this);

            ll.Fill            = ll.Stroke = new SolidColorBrush(Colors.Blue);
            rl.Fill            = rl.Stroke = new SolidColorBrush(Colors.Blue);
            pl.Fill            = pl.Stroke = new SolidColorBrush(Colors.Red);
            ll.StrokeThickness = 3;
            rl.StrokeThickness = 3;
            pl.StrokeThickness = 3;
            ToolTipService.SetToolTip(ll, "左边界");
            ToolTipService.SetToolTip(rl, "右边界");
            ToolTipService.SetToolTip(pl, "自动极限");

            Selectl.Stroke          = Selectl.Fill = new SolidColorBrush(Colors.Orange);
            Selectl.StrokeThickness = 5;
        }
Ejemplo n.º 31
0
 void Update()
 {
     switch(state) {
     case State.Approach:
         if(!approachingDone && wrestler1.distanceToOpponent < approachingStopDistance) {
             Debug.Log("Stopping approach");
             approachingDone = true;
         }
         break;
     case State.Resolution:
         resolvingMove.UpdateHitting();
         break;
     case State.Reset:
         resolvingMove = null;
         state = State.Approach;
         approachingDone = false;
         break;
     }
 }
Ejemplo n.º 32
0
 public void SetResolution(ActionMove _resolvingMove)
 {
     state = State.Resolution;
     resolvingMove = _resolvingMove;
 }