예제 #1
0
    //点控制
    void ControllPoint(QMsg msg)
    {
        PointMsg        pm  = msg as PointMsg;
        PointControll_E pce = pm.controllmode;

        currentmode = pce;
        switch (pce)
        {
        case PointControll_E.Edit:
            CheckLastEdit(currentgroup, currentindex);
            this.currentgroup = pm.group;
            this.currentindex = pm.index;
            break;

        case PointControll_E.SaveMatchingpoint:
            SaveGizmo();
            break;

        case PointControll_E.Cancle:
            CancleGizmo();
            break;

        case PointControll_E.AutoNext:
            break;

        default:
            break;
        }
    }
예제 #2
0
    //封装发送
    private void Send(PointControll_E pcontroller)
    {
        QMsg normalmsg = new PointMsg()
        {
            EventID = (int)Point_E.Normal, controllmode = pcontroller, group = this.group, index = this.index
        };

        PointerManager.Instance.SendMsg(normalmsg);
        QMsg usermsg = new PointMsg()
        {
            EventID = (int)Point_E.Userimport, controllmode = pcontroller, group = this.group, index = this.index
        };

        PointerManager.Instance.SendMsg(usermsg);
    }
    protected virtual void RefreshDisplay(PointControll_E pce, QMsg msg)
    {
        PointMsg pm = msg as PointMsg;

        switch (pce)
        {
        case PointControll_E.ChoiseGroup:
            Refreshdis(pm.group);
            break;

        case PointControll_E.AllDisplay:
            Refreshdis(allactive: true);
            break;

        default:
            break;
        }
    }
예제 #4
0
    //封装发送
    private void Send(PointControll_E pcontroller)
    {
        QMsg normalmsg = new PointMsg()
        {
            EventID = (int)Point_E.Normal, controllmode = pcontroller
        };

        PointerManager.Instance.SendMsg(normalmsg);
        QMsg usermsg = new PointMsg()
        {
            EventID = (int)Point_E.Userimport, controllmode = pcontroller
        };

        PointerManager.Instance.SendMsg(usermsg);

        lastchoiseitem.HandleEvent(pcontroller);
        toolpanel.SetActive(pcontroller == PointControll_E.Edit);
    }
예제 #5
0
    public void HandleEvent(PointControll_E pcontroller)
    {
        switch (pcontroller)
        {
        case PointControll_E.SaveMatchingpoint:
            SaveMatchingpoint();
            break;

        case PointControll_E.Cancle:
            Cancle();
            break;

        case PointControll_E.AutoNext:
            break;

        default:
            break;
        }
    }