|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.web3d.vrml.nodes.loader.DefaultWorldLoaderManager
Independent thread used to load a world from a list of URLs and then place it in the given node.
This implementation is designed to work as both a loadURL() and createVrmlFromUrl() call handler. The difference is defined by what data is supplied to the thread. If the target node is specified, then we assume that the caller wants us to put the results there. If it is null, then assume that we're doing a loadURL call and replace the entire world.
| Constructor Summary | |
DefaultWorldLoaderManager(FrameStateManager fsm)
Construct a new instance of the world loader that uses the given frame state manager. |
|
| Method Summary | |
WorldLoader |
fetchLoader()
Fetch a world loader instance from the global pool to work on loading of a world. |
SceneBuilderFactory |
getBuilderFactory(int renderer)
Get the factory for the given renderer type. |
VRMLParserFactory |
getParserFactory(int renderer)
Get the factory for the given renderer type. |
void |
registerBuilderFactory(int renderer,
SceneBuilderFactory factory)
Register the scene builder factory to be used for the given renderer type. |
void |
registerParserFactory(int renderer,
VRMLParserFactory factory)
Register the parser factory to be used for the given renderer type. |
void |
releaseLoader(WorldLoader loader)
Release a currently used world loader back into the cache for others to make use of. |
void |
setErrorReporter(ErrorReporter reporter)
Register an error reporter with the engine so that any errors generated by the loading of script code can be reported in a nice, pretty fashion. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public DefaultWorldLoaderManager(FrameStateManager fsm)
fsm - The state manager for this loader to use| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
setErrorReporter in interface WorldLoaderManagerreporter - The instance to use or nullpublic WorldLoader fetchLoader()
fetchLoader in interface WorldLoaderManagerpublic void releaseLoader(WorldLoader loader)
releaseLoader in interface WorldLoaderManagerloader - The instance to return
public void registerBuilderFactory(int renderer,
SceneBuilderFactory factory)
BrowserCore. If the factory instance is
null, it will clear the facctory for the given renderer type from the
map.
registerBuilderFactory in interface WorldLoaderManagerrenderer - The ID of the renderer typefactory - The instance of the factory to usepublic SceneBuilderFactory getBuilderFactory(int renderer)
getBuilderFactory in interface WorldLoaderManagerrenderer - The ID of the renderer type
public void registerParserFactory(int renderer,
VRMLParserFactory factory)
BrowserCore. If the factory instance is
null, it will clear the facctory for the given renderer type from the
map.
registerParserFactory in interface WorldLoaderManagerrenderer - The ID of the renderer typefactory - The instance of the factory to usepublic VRMLParserFactory getParserFactory(int renderer)
getParserFactory in interface WorldLoaderManagerrenderer - The ID of the renderer type
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||