internal void DisplayBabylon(string strTitle) { int left, top, width, height; this.visApplication.ActiveWindow.GetWindowRect(out left, out top, out width, out height); if (frmBabylonPanel == null) { if (VisualShow3DLightUtil.AddAnchorWindowToVisio(visApplication, strTitle, (int)Visio.VisWindowStates.visWSDockedBottom, false, true, 0, 100, width, (int)(height * 0.5), "", "Vue 3D", 1, ref visWindowBabylon) == true) { frmBabylonPanel = new FrmBabylonScene(visApplication); if (VisualShow3DLightUtil.AddFormToAnchorWindow(visWindowBabylon, frmBabylonPanel) == true) { } else { frmBabylonPanel.Close(); frmBabylonPanel = null; } } else { frmBabylonPanel.Dispose(); frmBabylonPanel = null; } } else { } }
internal void BabylonClose() { if (frmBabylonPanel != null) { frmBabylonPanel.Close(); frmBabylonPanel = null; } }
internal void GenerateBabylonScene(bool bWall) { frmBabylonWindow = new FrmBabylonScene(visApplication); // Make it child of the Visio Window int windowHandle = frmBabylonWindow.Handle.ToInt32(); VisualShow3DLightUtil.NativeMethods.SetParent(windowHandle, this.visApplication.WindowHandle32); frmBabylonWindow.Show(); }