Warning, /firebird/firebird-ng/src/app/utils/phoenix-three-facade.ts is written in an unsupported language. File is not indexed.
0001 import * as THREE from "three"
0002 import {EventDisplay, RendererManager} from "phoenix-event-display";
0003 import {EventDisplayService} from "phoenix-ui-components";
0004
0005 export class PhoenixThreeFacade {
0006
0007 public phoenixEventDisplay: EventDisplay;
0008
0009 public get phoenixThreeManager() {
0010 return this.phoenixEventDisplay.getThreeManager();
0011 }
0012
0013 public get activeOrbitControls() {
0014 return (this.phoenixThreeManager as any).controlsManager.getActiveControls();
0015 }
0016
0017
0018 public get mainCamera() {
0019 return (this.phoenixThreeManager as any).controlsManager.getMainCamera();
0020 }
0021
0022 public get activeCamera() {
0023 return (this.phoenixThreeManager as any).controlsManager.getActiveCamera();
0024 }
0025
0026 public get scene() {
0027 return this.phoenixThreeManager.getSceneManager().getScene();
0028 }
0029
0030 public get sceneGeometries() {
0031 return this.phoenixThreeManager.getSceneManager().getGeometries();
0032
0033 }
0034
0035 public get mainRenderer() {
0036 return ((this.phoenixThreeManager as any).rendererManager as RendererManager).getMainRenderer();
0037 }
0038
0039 public get sceneEvent() {
0040 return this.phoenixThreeManager.getSceneManager().getEventData();
0041 }
0042
0043 constructor(eventDisplay: EventDisplay) {
0044 this.phoenixEventDisplay = eventDisplay;
0045 }
0046
0047 }