simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene);
/** * Returns the Universe to which this Viewer is attached * * @return the Universe to which this Viewer is attached * @since Java 3D 1.3 */ public SimpleUniverse getUniverse() { return getViewingPlatform().getUniverse(); }
/** * Find instances of config objects with the given base name. * This is the same as <code>findConfigObjects(baseName, true)</code>. * Aliases are filtered out so that all returned instances are unique. * * @param baseName base name of desired config object class * @return ArrayList of config object instances of the desired base * class, or null if instances of the base class don't exist */ Collection findConfigObjects(String baseName) { return findConfigObjects(baseName, true) ; }
/** * Returns the TransformGroup of the viewing platform's MultiTransformGroup * which is responsible for zooming. */ public TransformGroup getZoomTG() { return getViewingPlatform().getMultiTransformGroup().getTransformGroup( ZOOM_TG); }
/** * Attach any ViewPlatformBehavior specified for this platform. */ void processBehavior() { if (configBehavior != null) { viewingPlatform.setViewPlatformBehavior (configBehavior.viewPlatformBehavior) ; } } }
/** * Returns the Canvas3D object associated with this Java 3D Universe. * * @return A reference to the Canvas3D object associated with the * Viewer object. This method is equivalent to calling getCanvas(0). * * @see Viewer */ public Canvas3D getCanvas() { return getCanvas(0); }
/** * Constructs an instance of the ViewerAvatar node. */ public ViewerAvatar() { setCapability(ALLOW_DETACH); }
/** * Returns the canvas associated with this Viewer object. * @deprecated superceded by getCanvas3D() */ public Canvas3D getCanvases() { return getCanvas3D(); }
/** * Returns a read-only Map that maps PhysicalBody names to instances. * Names may be aliases and if so will map to the original instances. * * @return read-only Map from names to PhysicalBody instances, or null if * no instances */ public Map getNamedPhysicalBodies() { if (bodyMap != null) return bodyMap ; bodyMap = createMap("PhysicalBody") ; return bodyMap ; }
/** * Constructor for use by Configured Universe */ SimpleUniverse( HiResCoord origin, LocaleFactory localeFactory ) { createLocale( origin, localeFactory ); }
/** * Instantiate an InputDevice of the given class name. * * @return the InputDevice, or null if error */ InputDevice createInputDevice() { j3dInputDevice = (InputDevice)createTargetObject() ; return j3dInputDevice ; } }
/** * Constructs an instance of the PlatformGeometry node. */ public PlatformGeometry() { setCapability(ALLOW_DETACH); } }
/** * Returns the ViewPlatformBehavior * @return the ViewPlatformBehavior for the ViewingPlatform. * Returns null if there is no ViewPlatformBehavior set. * @since Java 3D 1.2.1 */ public ViewPlatformBehavior getViewPlatformBehavior() { if (behaviors == null) { return null; } return getViewPlatformBehavior(0); }
/** * Returns the ViewingPlatform object associated with this scene graph. * * @return The ViewingPlatform object of this scene graph. */ public ViewingPlatform getViewingPlatform() { return viewer[0].getViewingPlatform(); }
simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene);
/** * Returns the TransformGroup of the viewing platform's MultiTransformGroup * which is responsible for centering the universe. */ public TransformGroup getCenterTG() { return getViewingPlatform().getMultiTransformGroup().getTransformGroup( CENTER_TG); }
simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene);
simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene);
simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene);
simpleU.getViewingPlatform().setNominalViewingTransform(); simpleU.addBranchGraph(scene);