Xj3D 2.0 VRML/X3D Code API

org.xj3d.ui.construct.ogl
Class AutoConfigureViewpoint

java.lang.Object
  extended by org.xj3d.ui.construct.ogl.AutoConfigureViewpoint
All Implemented Interfaces:
FrameStateListener

public class AutoConfigureViewpoint
extends java.lang.Object
implements FrameStateListener

Utility module for the ThumbnailRecorder that will attempt to create a useful default viewpoint of the loaded scene.

Version:
$Revision: 1.7 $
Author:
Rex Melton

Field Summary
protected  boolean addNodes
          Flag used in the end of frame listener, indicating that the new nodes may be added to the scene
protected  boolean configComplete
          Synchronization flag
protected  OGLConstruct construct
          The construct
protected  OGLStandardBrowserCore core
          The browser core
protected  ErrorReporter errorReporter
          The error reporting mechanism
protected  FrameStateManager fsm
          The frame state manager
protected  org.web3d.vrml.renderer.ogl.nodes.navigation.OGLNavigationInfo navInfo
          The viewpoint
protected  VRMLWorldRootNodeType root
          The scene root, parent for the nav info and viewpoint nodes
protected  org.web3d.vrml.renderer.ogl.nodes.navigation.OGLViewpoint viewpoint
          The viewpoint
 
Constructor Summary
AutoConfigureViewpoint(OGLConstruct construct)
          Constructor
 
Method Summary
 void allEventsComplete()
          Notification that the rendering of the event model is complete and that rendering is about to begin.
 boolean configure()
          Create and configure a new viewpoint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

construct

protected OGLConstruct construct
The construct


core

protected OGLStandardBrowserCore core
The browser core


fsm

protected FrameStateManager fsm
The frame state manager


errorReporter

protected ErrorReporter errorReporter
The error reporting mechanism


configComplete

protected boolean configComplete
Synchronization flag


viewpoint

protected org.web3d.vrml.renderer.ogl.nodes.navigation.OGLViewpoint viewpoint
The viewpoint


navInfo

protected org.web3d.vrml.renderer.ogl.nodes.navigation.OGLNavigationInfo navInfo
The viewpoint


root

protected VRMLWorldRootNodeType root
The scene root, parent for the nav info and viewpoint nodes


addNodes

protected boolean addNodes
Flag used in the end of frame listener, indicating that the new nodes may be added to the scene

Constructor Detail

AutoConfigureViewpoint

public AutoConfigureViewpoint(OGLConstruct construct)
Constructor

Parameters:
construct - The construct containing the scene for which to configure a viewpoint.
Method Detail

allEventsComplete

public void allEventsComplete()
Description copied from interface: FrameStateListener
Notification that the rendering of the event model is complete and that rendering is about to begin. If the node needs to update itself for this frame, it should do so now before the render pass takes place.

Specified by:
allEventsComplete in interface FrameStateListener

configure

public boolean configure()
Create and configure a new viewpoint. Wait for the node to be added and bound in the scene before returning. If the bounds of the scene could not be determined, no configuration is performed and the method returns immediately.

Returns:
true if the viewpoint was added successfully, false otherwise.

Xj3D 2.0 VRML/X3D Code API

Copyright © 2001 - 2006 Web3D Consortium