2 * Sixth 3D engine. Copyright ©2012-2018, Svjatoslav Agejenko, svjatoslav@svjatoslav.eu
4 * This program is free software; you can redistribute it and/or
5 * modify it under the terms of version 3 of the GNU Lesser General Public License
6 * or later as published by the Free Software Foundation.
10 package eu.svjatoslav.sixth.e3d.gui;
12 import eu.svjatoslav.sixth.e3d.gui.humaninput.KeyboardFocusTracker;
13 import eu.svjatoslav.sixth.e3d.gui.humaninput.UserInputTracker;
14 import eu.svjatoslav.sixth.e3d.renderer.raster.ShapeCollection;
16 public class ViewContext {
18 private final UserInputTracker userInputTracker = new UserInputTracker(this);
20 private final KeyboardFocusTracker keyboardFocusTracker = new KeyboardFocusTracker(
23 private final Avatar avatar = new Avatar();
25 private final ViewPanel viewPanel;
27 private final ShapeCollection rootShapeCollection = new ShapeCollection();
29 public ViewContext(final ViewPanel viewPanel) {
30 this.viewPanel = viewPanel;
33 public Avatar getAvatar() {
37 public KeyboardFocusTracker getKeyboardFocusTracker() {
38 return keyboardFocusTracker;
41 public ShapeCollection getRootShapeCollection() {
42 return rootShapeCollection;
45 public UserInputTracker getUserInputTracker() {
46 return userInputTracker;
49 public ViewPanel getViewPanel() {