/** * Set the {@link AppSettings settings} attached to this app state. * @param settings the {@link AppSettings settings} attached to this app state. * @see #getSettings() */ public void setSettings(AppSettings settings){ this.settings = settings; processSettings(settings); }
/** * Get the VR view manager. * @return the VR view manager. */ public VRViewManager getVRViewManager() { return getVREnvironment().getVRViewManager(); }
/** * Create a new default VR app state that relies on the given {@link VREnvironment VR environment}. * @param environment the {@link VREnvironment VR environment} that this app state is using. */ public VRAppState(VREnvironment environment) { super(); this.environment = environment; this.setSettings(environment.getSettings()); }
/** * Get the GUI manager attached to this app state. * @return the GUI manager attached to this app state. */ public VRGuiManager getVRGUIManager(){ return getVREnvironment().getVRGUIManager(); }
/** * Get the VR underlying hardware. * @return the VR underlying hardware. */ public VRAPI getVRHardware() { return getVREnvironment().getVRHardware(); }
/** * Create a new VR app state with given settings. The app state relies on the given {@link VREnvironment VR environment}. * @param settings the settings to use. * @param environment the {@link VREnvironment VR environment} that this app state is using. */ public VRAppState(AppSettings settings, VREnvironment environment){ this(environment); this.settings = settings; processSettings(settings); }
/** * Get the VR mouse manager attached to this app state. * @return the VR mouse manager attached to this application. */ public VRMouseManager getVRMouseManager(){ return getVREnvironment().getVRMouseManager(); }
/** * Get the VR dedicated input. * @return the VR dedicated input. */ public VRInputAPI getVRinput() { if( getVREnvironment().getVRHardware() == null ){ return null; } return getVREnvironment().getVRHardware().getVRinput(); }