public TopViewForm(AtlIEKG3DSceneSceneEditor pEditor, BaseForm baseForm) { InitializeComponent(); this.GotFocus += new EventHandler(this.TopViewForm_GotFocus); m_pEditor = pEditor; m_BaseForm = baseForm; }
private string mapName; // 当前场景名 // end ahpho public BaseDoc(BaseForm parent, string filename/*, ref AtlIEKG3DScene baseFormScene*/) { m_form = parent; m_view = parent.VIEW; m_strFileName = filename; if (EditorLayer.UseSO3Logic) { // Init LogicEditor EngineLayer.ATLBase.InitLogicalEditorBase(); LogicsLayer.SO3world.LoadEditorScene(filename); LogicsLayer.SO3world.AttachLogicalSceneTo3DScene(); LogicsLayer.SO3world.NewLogicSceneConnectionAndBindLogicalSceneAndSceneEditor(); } LogicsLayer.SO3world.NewLogicalDataAndAdviseWithSceneEditor(); string strIniFile = m_strFileName + ".Logical"; LogicsLayer.SO3world.LoadLogicalData(strIniFile); // 加载树所要的数据 LogicsLayer.SO3world.GetLogicalDataPtr(ref m_DocLogical); LogicHelper.Init(m_DocLogical); mapName = FileFolderHelper.GetMapName(m_strFileName); m_AllLogicObj = LogicHelper.DoImportOneTarget(strIniFile, mapName); }
public BaseView(BaseForm parent, IntPtr hwnd) { m_form = parent; m_doc = parent.DOC; m_panel = parent.PANEL; //m_LogicalEditor = logicEditor; //m_Scene = scene; m_hWnd = (int)hwnd; InitInputProxy(); FORM.SceneSceneEditor.AddWindowing("SceneMain", m_hWnd, OUTPUTWND_SCENEEDITOR_MAIN, ref m_nOutputWindowID, SCENESTATE_SELECT); FORM.SceneSceneEditor.SetCameraDis(75000.0f); }
public void OpenForm(string filename) { BaseForm frm = null; frm = new BaseForm(filename, this); //frm.m_EngineManager = EngineLayer.EngineMgr; frm.Text = FileFolderHelper.FullPathToFileName(filename); frm.MdiParent = this; frm.WindowState = FormWindowState.Maximized; // ahpho suntao frm.CameraLookAtBox = cameraLocationBox.TextBox; frm.CamerSpeedBar = sliderItem1; // end ahpho frm.Show(); frm.Update(); m_ActiveFrm = frm; }
public TopViewForm(BaseForm baseForm) { InitializeComponent(); m_BaseForm = baseForm; SceneSceneEditor = m_BaseForm.SceneSceneEditor; }