Class ApplicationFrameManager
java.lang.Object
org.web3d.vrml.renderer.ogl.browser.PerFrameManager
org.web3d.vrml.renderer.ogl.browser.ApplicationFrameManager
- All Implemented Interfaces:
org.j3d.aviatrix3d.ApplicationUpdateObserver
public class ApplicationFrameManager
extends PerFrameManager
implements org.j3d.aviatrix3d.ApplicationUpdateObserver
Per-frame manager that uses the Aviatrix3D ApplicationUpdateObserver
to clock the scene graph time with.
Even as this is a thread, it is not automatically started. The user is required to start it separately.
- Version:
- $Revision: 1.18 $
- Author:
- Justin Couch
-
Field Summary
Fields inherited from class org.web3d.vrml.renderer.ogl.browser.PerFrameManager
browser, currentWallTime, errorReporter, eventModel, lastWallTime
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationFrameManager
(EventModelEvaluator eme, BrowserCore core, org.web3d.vrml.renderer.ogl.browser.ViewportResizeManager viewportResizer, org.web3d.vrml.renderer.ogl.browser.ViewpointResizeManager viewpointResizer) Construct a new manager for the given scene. -
Method Summary
Modifier and TypeMethodDescriptionvoid
Notification that the AV3D internal shutdown handler has detected a system-wide shutdown.void
Notification that now is a good time to update the scene graph.Methods inherited from class org.web3d.vrml.renderer.ogl.browser.PerFrameManager
clockTick, setErrorReporter, setEventModelStatusListener, shutdown
-
Constructor Details
-
ApplicationFrameManager
public ApplicationFrameManager(EventModelEvaluator eme, BrowserCore core, org.web3d.vrml.renderer.ogl.browser.ViewportResizeManager viewportResizer, org.web3d.vrml.renderer.ogl.browser.ViewpointResizeManager viewpointResizer) throws IllegalArgumentException Construct a new manager for the given scene. The manager starts with everything disabled.- Parameters:
eme
- The event model evaluator to use.core
- The internal representation of the browserviewportResizer
- Manager for viewport resize handlingviewpointResizer
- Manager for viewport resize handling- Throws:
IllegalArgumentException
-
-
Method Details
-
updateSceneGraph
public void updateSceneGraph()Notification that now is a good time to update the scene graph.- Specified by:
updateSceneGraph
in interfaceorg.j3d.aviatrix3d.ApplicationUpdateObserver
-
appShutdown
public void appShutdown()Notification that the AV3D internal shutdown handler has detected a system-wide shutdown. The aviatrix code has already terminated rendering at the point this method is called, only the user's system code needs to terminate before exiting here.- Specified by:
appShutdown
in interfaceorg.j3d.aviatrix3d.ApplicationUpdateObserver
-