Xj3D VRML/X3D Code API

org.web3d.j3d.loaders
Class VRML97Loader

java.lang.Object
  extended bycom.sun.j3d.loaders.LoaderBase
      extended byorg.web3d.j3d.loaders.BaseLoader
          extended byorg.web3d.j3d.loaders.VRML97Loader
All Implemented Interfaces:
com.sun.j3d.loaders.Loader, org.j3d.renderer.java3d.loaders.ManagedLoader

public class VRML97Loader
extends BaseLoader

A Java3D file loader implementation for reading VRML97 utf8 files only and building a Java3D scenegraph with them.

The loader considers sensor handling and routing to be behaviours. Some asynchronous loading of files for textures is performed. Sound file loading is performed if audio clips are asked for. For example, if behaviours are not requested then Inlines will not have their content loaded.

If the loader asks for no behaviors, then we will still load nodes that use behaviors, but will disable their use. For example, a LOD will still need to have all of the geometry loaded, just not shown or activated because the LOD's internal behavior is disabled. Scripts are considered to be behaviours, and they will not be loaded at all if behaviour loading is disabled. However, we will take out other items. For example, we make no attempt to load textures, scripts or anything else that may require asynchronous loading of the content outside the single call to load().

The default setup for runtime activities is ListsRouterFactory and MemCacheLoadManager

Version:
$Revision: 2.4 $
Author:
Justin Couch

Field Summary
 
Fields inherited from class org.web3d.j3d.loaders.BaseLoader
errorReporter, overrideCapBitsMap, overrideFreqBitsMap, parsedScene, parserFactory, requiredCapBitsMap, requiredFreqBitsMap, vrml97Only
 
Fields inherited from class com.sun.j3d.loaders.LoaderBase
basePath, baseUrl, loadFlags
 
Fields inherited from interface com.sun.j3d.loaders.Loader
LOAD_ALL, LOAD_BACKGROUND_NODES, LOAD_BEHAVIOR_NODES, LOAD_FOG_NODES, LOAD_LIGHT_NODES, LOAD_SOUND_NODES, LOAD_VIEW_GROUPS
 
Constructor Summary
VRML97Loader()
          Construct a default loader implementation with no flags set.
VRML97Loader(int flags)
          Construct a loader with the given flags set.
 
Methods inherited from class org.web3d.j3d.loaders.BaseLoader
getNavigationEnabled, getVRMLScene, load, load, load, registerURNLocation, setCapabilityOverrideMap, setCapabilityRequiredMap, setErrorReporter, setNavigationEnabled
 
Methods inherited from class com.sun.j3d.loaders.LoaderBase
getBasePath, getBaseUrl, getFlags, setBasePath, setBaseUrl, setFlags
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.sun.j3d.loaders.Loader
getBasePath, getBaseUrl, getFlags, setBasePath, setBaseUrl, setFlags
 

Constructor Detail

VRML97Loader

public VRML97Loader()
Construct a default loader implementation with no flags set. When asked to load a file it will not produce anything unless flags have been set through the setFlags() method.


VRML97Loader

public VRML97Loader(int flags)
Construct a loader with the given flags set.

Parameters:
flags - The flag values to be used
Throws:
java.lang.RuntimeException - The factory for loading VRML content could not be found

Xj3D VRML/X3D Code API

Copyright © 2001 - 2005 Web3D Consortium