protected StoryGraphView(IStoryService storyService) { this.storyService = storyService; scene = storyService.EditingScene; GetCameraProps(scene, out var cameraProps, out var cameraBounds); camera = new PlaneOrthoBoundControlledCamera(scene.Root, cameraProps, true, cameraBounds); mainLayer = new ViewLayer { VisibleScene = scene, Camera = camera }; Layers = new[] { mainLayer }; }
protected PresentationView(INavigationService navigationService, IStoryService storyService, IUserQueryService userQueryService, ICommonNodeFactory commonNodeFactory, IAppModeService appModeService) { this.navigationService = navigationService; this.storyService = storyService; this.userQueryService = userQueryService; this.appModeService = appModeService; mainLayer = new ViewLayer(); userQueryLayer = new ViewLayer(); Layers = new[] { mainLayer, userQueryLayer }; querySceneComponent = AmFactory.Create <UserQuerySceneComponent>(); var uqSceneRoot = commonNodeFactory.WorldRoot(false); uqSceneRoot.Components.Add(querySceneComponent); var uqScene = Scene.Create(uqSceneRoot); var uqCamera = new PlaneOrthoBoundControlledCamera(uqSceneRoot, PlaneOrthoBoundControlledCamera.Props.Default, false); userQueryLayer.VisibleScene = uqScene; userQueryLayer.Camera = uqCamera; }