|
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.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 | |
static java.lang.String |
MEM_ALLOC_PROP
Property name defining how much memory should be used |
static java.lang.String |
SORT_AUDIO
Script object for sorting |
static java.lang.String |
SORT_INLINE
Script object for sorting |
static java.lang.String |
SORT_ORDER_PROP
Property name defining the sort order |
static java.lang.String |
SORT_OTHER
Script object for sorting |
static java.lang.String |
SORT_PROTO
Script object for sorting |
static java.lang.String |
SORT_SCRIPT
Script object for sorting |
static java.lang.String |
SORT_TEXTURE
Script object for sorting |
| 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 org.web3d.vrml.nodes.loader.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 |
| Field Detail |
public static final java.lang.String SORT_ORDER_PROP
public static final java.lang.String SORT_SCRIPT
public static final java.lang.String SORT_INLINE
public static final java.lang.String SORT_TEXTURE
public static final java.lang.String SORT_PROTO
public static final java.lang.String SORT_AUDIO
public static final java.lang.String SORT_OTHER
public static final java.lang.String MEM_ALLOC_PROP
| Constructor Detail |
protected AbstractLoadManager()
| Method Detail |
public void setErrorReporter(ErrorReporter reporter)
setErrorReporter in interface ExternalLoadManagerreporter - The instance to use or nullpublic void queueExternProtoLoad(VRMLExternProtoDeclare proto)
queueExternProtoLoad in interface ExternalLoadManagerproto - The proto declaration that needs to be queued uppublic void queueSceneLoad(BasicScene scene)
queueSceneLoad in interface ExternalLoadManagerscene - The new scene to queue uppublic void queueNodesLoad(NodeArray nodes)
queueNodesLoad in interface ExternalLoadManagernodes - Array of nodes to addpublic void stopSceneLoad(BasicScene scene)
stopSceneLoad in interface ExternalLoadManagerscene - The scene to stop loadingpublic void clear()
clear in interface ExternalLoadManager
public void urlChanged(VRMLNodeType node,
int index)
urlChanged in interface VRMLUrlListenerindex - The index of the field that has changedpublic int getNumberInProgress()
public void shutdown()
shutdown in interface ExternalLoadManagerprotected abstract org.web3d.vrml.nodes.loader.FileCache getCache()
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||