|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xj3d.impl.core.loading.AbstractLoadManager
public abstract class AbstractLoadManager
Common base implementation of a load manager.
Properties
The following properties are used by this class
org.web3d.vrml.nodes.loader.sort_order A space separated list
containing one or more of the words scripts,
inlines, textures, externprotos,
audio and others. The declaration order is the
sort order for values to be fetched within a given scene. Any values not
declared are placed at the end of the list in any arbitrary order.
org.web3d.vrml.nodes.loader.cache.mem.size The amount of
memory in Kilobytes (integer value) to allocate to in-memory file
caching. If the value is zero or less, no caching is performed.
| Field Summary |
|---|
| Fields inherited from interface org.xj3d.core.loading.LoadConstants |
|---|
DEFAULT_SORT_ORDER, MEM_ALLOC_PROP, SORT_AUDIO, SORT_CREATE, SORT_INLINE, SORT_LOAD_URL, SORT_MOVIE, SORT_ORDER_PROP, SORT_OTHER, SORT_PROTO, SORT_SCRIPT, SORT_SHADER, SORT_TEXTURE |
| Constructor Summary | |
|---|---|
protected |
AbstractLoadManager()
Create a new load manager initialised with the content loading threads ready to work. |
| Method Summary | |
|---|---|
void |
clear()
Force clearing all state from this manager now. |
protected abstract FileCache |
getCache()
Request to fetch the cache used by the derived type. |
int |
getNumberInProgress()
Get the number of items that need to be loaded. |
void |
queueExternProtoLoad(VRMLExternProtoDeclare proto)
Queue for loading a single externproto implementation. |
void |
queueNodesLoad(NodeArray nodes)
Queue an arbitrary collection of nodes for loading. |
void |
queueSceneLoad(BasicScene scene)
Start loading the contents of the given scene. |
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. |
void |
shutdown()
Notification that the manager needs to shut down all the currently running threads. |
void |
stopSceneLoad(BasicScene scene)
Stop the named scene from loading. |
void |
urlChanged(VRMLNodeType node,
int index)
Notification that the Url content for this node has changed |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected AbstractLoadManager()
| Method Detail |
|---|
public void setErrorReporter(ErrorReporter reporter)
setErrorReporter in interface ContentLoadManagerreporter - The instance to use or nullpublic void queueExternProtoLoad(VRMLExternProtoDeclare proto)
queueExternProtoLoad in interface ContentLoadManagerproto - The proto declaration that needs to be queued uppublic void queueSceneLoad(BasicScene scene)
queueSceneLoad in interface ContentLoadManagerscene - The new scene to queue uppublic void queueNodesLoad(NodeArray nodes)
queueNodesLoad in interface ContentLoadManagernodes - Array of nodes to addpublic void stopSceneLoad(BasicScene scene)
stopSceneLoad in interface ContentLoadManagerscene - The scene to stop loadingpublic void clear()
clear in interface ContentLoadManager
public void urlChanged(VRMLNodeType node,
int index)
urlChanged in interface VRMLUrlListenerindex - The index of the field that has changedpublic int getNumberInProgress()
getNumberInProgress in interface ContentLoadManagerpublic void shutdown()
shutdown in interface ContentLoadManagerprotected abstract FileCache getCache()
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||