示例#1
0
        public ModelPropertyComponent(ModelViewDoc doc)
            : base("ModelPropertyComponent")
        {
            Doc = doc;

            ModelPropertyUI = new modelview.ui.ModelProperty();
            ModelPropertyUI.EditorComponent = this;
        }
示例#2
0
        public ToolBarCommonComponent(ModelViewDoc doc)
            : base("ToolBarCommonComponent")
        {
            Doc = doc;

            ToolbarUI = new modelview.ui.ToolBarCommon();
            ToolbarUI.EditorComponent = this;
        }
示例#3
0
        public BoneListComponent(ModelViewDoc doc)
            : base("BoneListComponent")
        {
            Doc = doc;

            BoneListUI = new modelview.ui.BoneList();
            BoneListUI.EditorComponent = this;

            registMessage("AfterModelCreated", onAfterModelCreatedMessage);
        }
示例#4
0
        public ActionListComponent(ModelViewDoc doc)
            : base("ActionListComponent")
        {
            Doc = doc;

            ActionListUI = new modelview.ui.ActionList();
            ActionListUI.EditorComponent = this;

            registMessage("AfterModelViewUICreated", onAfterModelViewUICreatedMessage);
        }
        public ActionTimeLineComponent(ModelViewDoc doc)
            : base("ModelPropertyComponent")
        {
            Doc = doc;

            ActionTimeLineUI = new modelview.ui.ActionTimeLine();
            ActionTimeLineUI.EditorComponent = this;

            registMessage("UIUpdateCurrentFrame", onUIUpdateCurrentFrameMessage);
            registMessage("AfterModelCreated", onAfterModelCreatedMessage);
            registMessage("AfterModelActionChanged", onAfterModelActionChangedMessage);
        }
示例#6
0
        public override void init(RenderSystem rsys)
        {
            base.init(rsys);

            ModelViewDoc mdoc = new ModelViewDoc(this);
            m_current_doc = mdoc;

            m_current_doc.newDoc();

            MainView main_v = new MainView(rsys, mdoc);
            m_view_mng.addView(main_v);
            m_view_mng.CurrentView = main_v;

            m_view_mng.CurrentView.RenderWindow = rsys.createWindow(m_modelview_form.RenderPanel.Width,
                m_modelview_form.RenderPanel.Height, m_modelview_form.RenderPanel.Handle);

            m_view_mng.CurrentView.Active = true;

            m_modelview_form.RenderPanel.setCurrentView(main_v);

            EditorGraph.registerComponent(this, main_v);
            EditorGraph.registerComponent(this, m_current_doc);

            editor.ui.ToolBarDocControl toolbardoc = new editor.ui.ToolBarDocControl(this.getName());
            m_modelview_form.mergeToolBar(toolbardoc.ToolBar);
            EditorGraph.registerComponent(this, toolbardoc.EditorComponent);

            ToolBarCommonComponent toolbarcommon_comp = new ToolBarCommonComponent(mdoc);
            m_modelview_form.mergeToolBar(toolbarcommon_comp.ToolbarUI.ToolBar);
            EditorGraph.registerComponent(this, toolbarcommon_comp);

            ActionTimeLineComponent actiontimeline_comp = new ActionTimeLineComponent(mdoc);
            m_modelview_form.insertDockControl(ModelView_Form.DOCK_TYPE_BUTTOM, "",actiontimeline_comp.ActionTimeLineUI);
            EditorGraph.registerComponent(this, actiontimeline_comp);

            BoneListComponent bonelist_comp = new BoneListComponent(mdoc);
            m_modelview_form.insertDockControl(ModelView_Form.DOCK_TYPE_RIGHT_TAB1,"骨架",bonelist_comp.BoneListUI);
            EditorGraph.registerComponent(this, bonelist_comp);

            ActionListComponent actionlist_comp = new ActionListComponent(mdoc);
            m_modelview_form.insertDockControl(ModelView_Form.DOCK_TYPE_RIGHT_TAB2, "动作", actionlist_comp.ActionListUI);
            EditorGraph.registerComponent(this, actionlist_comp);

            m_modelview_form.setRightPanelExpand(false);

            EditorGraph.postMessage(this, new MessageBase("AfterModelViewUICreated"));
        }
示例#7
0
文件: View.cs 项目: azykise/olawork
        public MainView(RenderSystem rs,ModelViewDoc doc)
            : base("ModelMainView",rs)
        {
            m_camera.Position = new Vector3F(0, -5, 3);
            m_camera.Direction = new Vector3F(0, 0, 2);
            m_camera.Focus = true;
            Camera3DController camera_contrlooer = new Camera3DController("cam");
            camera_contrlooer.MoveSpeed = 1.0f;
            camera_contrlooer.WheelSpeed = 0.01f;
            BaseController = camera_contrlooer;

            mLightCtrl = new LightingController(doc);

            BaseController.OnKeyPressing += _onViewKeyPressing;
            BaseController.OnKeyUp += _onViewKeyUp;

            mDoc = doc;
        }
示例#8
0
 public ActionManager(ModelViewDoc doc)
 {
     mDoc = doc;
 }