Class ThumbnailRecorder

java.lang.Object
org.xj3d.ui.awt.browser.ogl.ThumbnailRecorder
All Implemented Interfaces:
ScreenCaptureListener, FrameStateListener, VRMLNodeListener

public class ThumbnailRecorder extends Object implements ScreenCaptureListener, VRMLNodeListener, FrameStateListener
A function module that performs an image capture of an X3D scene for the purpose of creating a thumbnail image. The requirements of the X3D world are:
  • Optionally there may be a DEF'ed Viewpoint with a known DEF name.
  • By default the Viewpoint's DEF name is "ICON_VIEWPOINT". The Viewpoint's DEF name is programmatically configurable in this module.
  • In the absence of a DEF'ed Viewpoint, the default viewpoint will be captured.
The image capture is managed as follows:
  • On the completion of the world and content loading, the DEF'ed Viewpoint node is searched for and bound if necessary.
  • The image capture is initiated immediately if the DEF'd Viewpoint is not found, or the DEF'ed Viewpoint is found and currently bound.
  • Otherwise, the capture is initiated immediately upon notification that the DEF'd Viewpoint has been bound.
Version:
$Revision: 1.8 $
Author:
Rex Melton