org.web3d.j3d.loaders
Class X3DLoader
java.lang.Object
com.sun.j3d.loaders.LoaderBase
org.web3d.j3d.loaders.BaseLoader
org.web3d.j3d.loaders.X3DLoader
- All Implemented Interfaces:
- com.sun.j3d.loaders.Loader, org.j3d.renderer.java3d.loaders.ManagedLoader
- public class X3DLoader
- extends BaseLoader
A Java3D file loader implementation for reading X3D 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.3 $
- Author:
- Justin Couch
| 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 |
X3DLoader()
Construct a default loader implementation with no flags set. |
X3DLoader(int flags)
Construct a loader with the given flags set. |
| 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 |
X3DLoader
public X3DLoader()
- 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.
X3DLoader
public X3DLoader(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
Copyright © 2001 - 2005 Web3D Consortium