public TextureSceneView createTextureSceneView(String name, Vector3 translation, Vector3 lookAt, int width, int height)
        {
            OrbitCameraController orbitCamera = new OrbitCameraController(translation, lookAt, Vector3.Zero, Vector3.Zero, 0, 1000);

            orbitCamera.AllowRotation = AllowRotation;
            orbitCamera.AllowZoom     = AllowZoom;

            TextureSceneView window = new TextureSceneView(this, orbitCamera, name, background, 0, width, height);

            if (WindowCreated != null)
            {
                WindowCreated.Invoke(window);
            }
            if (camerasCreated)
            {
                window.createSceneView(currentScene);
            }

            textureWindows.Add(window);

            return(window);
        }
Пример #2
0
 protected virtual void OnWindowCreated()
 {
     WindowCreated?.Invoke(this, EventArgs.Empty);
 }
Пример #3
0
 private void HandleWindowAdd(WindowsWindow window, bool firstCreate)
 {
     WindowCreated?.Invoke(window, firstCreate);
 }
 /// <summary>
 /// Raises the WindowCreated event.
 /// </summary>
 /// <param name="window">The window that was created.</param>
 private void OnWindowCreated(IUltravioletWindow window) =>
 WindowCreated?.Invoke(window);
Пример #5
0
 private void RaiseWindowCreatedEvent(Window window)
 {
     WindowCreated?.Invoke(this, new WindowEventArgs(window));
 }
Пример #6
0
 ///<summary>Invokes registered user-defined handler methods after the native window is created.</summary>
 internal void OnWindowCreated()
 {
     WindowCreated?.Invoke(this, null);
 }
Пример #7
0
 /// <summary>
 /// Raises the WindowCreated event.
 /// </summary>
 /// <param name="window">The window that was created.</param>
 protected void OnWindowCreated(IUltravioletWindow window) =>
 WindowCreated?.Invoke(window);
Пример #8
0
 private void WindowCreatedEvent(ShellEventHook shellObject, IntPtr hWnd)
 {
     WindowCreated?.Invoke(shellObject, hWnd);
 }
 public void OnWindowCreated(WindowCreatedEventArgs e)
 {
     EventDispatcher.Dispatch(() => WindowCreated?.Invoke(this, e));
 }