/** * Constructor for use by Configured Universe */ SimpleUniverse( HiResCoord origin, LocaleFactory localeFactory ) { createLocale( origin, localeFactory ); }
/** * Creates the "view" side of the scene graph. The passed in parameters * override the default values where appropriate. * * @param viewingPlatform The viewingPlatform to use to create * the "view" side of the scene graph. * @param viewer The viewer object to use to create * the "view" side of the scene graph. * @param localeFactory The factory used to create the Locale Object */ public SimpleUniverse(ViewingPlatform viewingPlatform, Viewer viewer, LocaleFactory localeFactory ) { createLocale( null, localeFactory ); viewingPlatform.setUniverse( this ); // Assign object references. this.viewer = new Viewer[1]; this.viewer[0] = viewer; // Add the ViewingPlatform to the Viewer object. this.viewer[0].setViewingPlatform(viewingPlatform); // Add the ViewingPlatform to the locale - the scene // graph is now "live". locale.addBranchGraph(viewingPlatform); }
ViewingPlatform vwp; createLocale( origin, localeFactory );