Xj3D 2.0 VRML/X3D Code API

org.web3d.vrml.renderer.ogl.browser
Class ApplicationFrameManager

java.lang.Object
  extended by org.web3d.vrml.renderer.ogl.browser.PerFrameManager
      extended by 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.17 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.web3d.vrml.renderer.ogl.browser.PerFrameManager
browser, currentWallTime, errorReporter, eventModel, lastWallTime
 
Constructor Summary
ApplicationFrameManager(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
 void appShutdown()
          Notification that the AV3D internal shutdown handler has detected a system-wide shutdown.
 void updateSceneGraph()
          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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationFrameManager

public ApplicationFrameManager(EventModelEvaluator eme,
                               BrowserCore core,
                               org.web3d.vrml.renderer.ogl.browser.ViewportResizeManager viewportResizer,
                               org.web3d.vrml.renderer.ogl.browser.ViewpointResizeManager viewpointResizer)
                        throws java.lang.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 browser
viewportResizer - Manager for viewport resize handling
viewpointResizer - Manager for viewport resize handling
Throws:
java.lang.IllegalArgumentException
Method Detail

updateSceneGraph

public void updateSceneGraph()
Notification that now is a good time to update the scene graph.

Specified by:
updateSceneGraph in interface org.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 interface org.j3d.aviatrix3d.ApplicationUpdateObserver

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium