public ModelPropertyComponent(ModelViewDoc doc) : base("ModelPropertyComponent") { Doc = doc; ModelPropertyUI = new modelview.ui.ModelProperty(); ModelPropertyUI.EditorComponent = this; }
public ToolBarCommonComponent(ModelViewDoc doc) : base("ToolBarCommonComponent") { Doc = doc; ToolbarUI = new modelview.ui.ToolBarCommon(); ToolbarUI.EditorComponent = this; }
public BoneListComponent(ModelViewDoc doc) : base("BoneListComponent") { Doc = doc; BoneListUI = new modelview.ui.BoneList(); BoneListUI.EditorComponent = this; registMessage("AfterModelCreated", onAfterModelCreatedMessage); }
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); }
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")); }
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; }
public ActionManager(ModelViewDoc doc) { mDoc = doc; }