|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IResourceGroupManager
| Nested Class Summary | |
|---|---|
static interface |
IResourceGroupManager.ILoadUnloadResourceList
|
static interface |
IResourceGroupManager.ILocationList
|
static interface |
IResourceGroupManager.IResourceDeclaration
|
static interface |
IResourceGroupManager.IResourceDeclarationList
|
static interface |
IResourceGroupManager.IResourceGroup
|
static interface |
IResourceGroupManager.IResourceGroupListenerList
|
static interface |
IResourceGroupManager.IResourceGroupMap
|
static interface |
IResourceGroupManager.IResourceLocation
|
static interface |
IResourceGroupManager.IResourceLocationIndex
|
static interface |
IResourceGroupManager.IResourceManagerIterator
|
static interface |
IResourceGroupManager.IResourceManagerMap
|
static interface |
IResourceGroupManager.IScriptLoaderOrderMap
|
| Method Summary | |
|---|---|
IResourceManager |
_getResourceManager(java.lang.String resourceType)
Internal method for getting a registered . |
void |
_notifyAllResourcesRemoved(IResourceManager manager)
Internal method called by when all resources for that manager are removed. |
void |
_notifyResourceCreated(IResourcePtr res)
Internal method called by when a resource is created. |
void |
_notifyResourceGroupChanged(java.lang.String oldGroup,
IResource res)
Internal method to notify the group manager that a resource has changed group (only applicable for autodetect group) |
void |
_notifyResourceRemoved(IResourcePtr res)
Internal method called by when a resource is removed. |
void |
_notifyWorldGeometryPrepareStageEnded()
Notify this manager that one stage of world geometry loading has been completed. |
void |
_notifyWorldGeometryPrepareStageStarted(java.lang.String description)
Notify this manager that one stage of world geometry loading has been started. |
void |
_notifyWorldGeometryStageEnded()
Notify this manager that one stage of world geometry loading has been completed. |
void |
_notifyWorldGeometryStageStarted(java.lang.String description)
Notify this manager that one stage of world geometry loading has been started. |
void |
_registerResourceManager(java.lang.String resourceType,
IResourceManager rm)
Internal method for registering a (which should be a singleton). |
void |
_registerScriptLoader(IScriptLoader su)
Internal method for registering a . |
void |
_unregisterResourceManager(java.lang.String resourceType)
Internal method for unregistering a . |
void |
_unregisterScriptLoader(IScriptLoader su)
Internal method for unregistering a . |
void |
addResourceGroupListener(IResourceGroupListener l)
Adds a which will be called back during resource loading events. |
void |
addResourceLocation(java.lang.String name,
java.lang.String locType,
java.lang.String resGroup,
boolean recursive)
Method to add a resource location to for a given resource group. |
void |
clearResourceGroup(java.lang.String name)
Clears a resource group. |
void |
createResourceGroup(java.lang.String name)
Create a resource group. |
void |
declareResource(java.lang.String name,
java.lang.String resourceType,
java.lang.String groupName,
IManualResourceLoader loader,
INameValuePairList loadParameters)
Declares a resource to be a part of a resource group, allowing you to load and unload it as part of the group. |
void |
declareResource(java.lang.String name,
java.lang.String resourceType,
java.lang.String groupName,
INameValuePairList loadParameters)
Declares a resource to be a part of a resource group, allowing you to load and unload it as part of the group. |
void |
destroyResourceGroup(java.lang.String name)
Destroys a resource group, clearing it first, destroying the resources which are part of it, and then removing it from the list of resource groups. |
java.lang.String |
findGroupContainingResource(java.lang.String filename)
Find the group in which a resource exists. |
void |
findResourceFileInfo(IFileInfoListPtr returnValue,
java.lang.String group,
java.lang.String pattern,
boolean dirs)
Find all files or directories matching a given pattern in a group and get some detailed information about them. |
void |
findResourceNames(IStringVectorPtr returnValue,
java.lang.String groupName,
java.lang.String pattern,
boolean dirs)
Find all file or directory names matching a given pattern in a resource group. |
IResourceLoadingListener |
getLoadingListener()
|
void |
getResourceDeclarationList(IResourceGroupManager.IResourceDeclarationList returnValue,
java.lang.String groupName)
Get the list of resource declarations for the specified group name. |
void |
getResourceGroups(IStringVector returnValue)
Get a list of the currently defined resource groups. |
void |
getResourceManagerIterator(IResourceGroupManager.IResourceManagerIterator returnValue)
Get an iterator over the registered resource managers. |
java.lang.String |
getWorldResourceGroupName()
|
void |
initialiseAllResourceGroups()
Initialise all resource groups which are yet to be initialised. |
void |
initialiseResourceGroup(java.lang.String name)
Initialises a resource group. |
boolean |
isResourceGroupInitialised(java.lang.String name)
Checks the status of a resource group. |
boolean |
isResourceGroupLoaded(java.lang.String name)
Checks the status of a resource group. |
void |
linkWorldGeometryToResourceGroup(java.lang.String group,
java.lang.String worldGeometry,
ISceneManager sceneManager)
Associates some world geometry with a resource group, causing it to be loaded / unloaded with the resource group. |
void |
listResourceFileInfo(IFileInfoListPtr returnValue,
java.lang.String groupName,
boolean dirs)
List all files in a resource group with accompanying information. |
void |
listResourceNames(IStringVectorPtr returnValue,
java.lang.String groupName,
boolean dirs)
List all file or directory names in a resource group. |
void |
loadResourceGroup(java.lang.String name,
boolean loadMainResources,
boolean loadWorldGeom)
Loads a resource group. |
void |
openResource(IDataStreamPtr returnValue,
java.lang.String resourceName,
java.lang.String groupName,
boolean searchGroupsIfNotFound,
IResource resourceBeingLoaded)
Open a single resource by name and return a pointing at the source of the data. |
void |
openResources(IDataStreamListPtr returnValue,
java.lang.String pattern,
java.lang.String groupName)
Open all resources matching a given pattern (which can contain the character '*' as a wildcard), and return a collection of objects on them. |
void |
prepareResourceGroup(java.lang.String name,
boolean prepareMainResources,
boolean prepareWorldGeom)
Prepares a resource group. |
void |
removeResourceGroupListener(IResourceGroupListener l)
Removes a |
void |
removeResourceLocation(java.lang.String name,
java.lang.String resGroup)
Removes a resource location from the search path. |
boolean |
resourceExists(IResourceGroupManager.IResourceGroup group,
java.lang.String filename)
Find out if the named file exists in a group. |
boolean |
resourceExists(java.lang.String group,
java.lang.String filename)
Find out if the named file exists in a group. |
long |
resourceModifiedTime(IResourceGroupManager.IResourceGroup group,
java.lang.String filename)
Retrieve the modification time of a given file |
long |
resourceModifiedTime(java.lang.String group,
java.lang.String filename)
Retrieve the modification time of a given file |
void |
setLoadingListener(IResourceLoadingListener listener)
|
void |
setWorldResourceGroupName(java.lang.String groupName)
Sets the resource group that 'world' resources will use. |
void |
shutdownAll()
Shutdown all ResourceManagers, performed as part of clean-up. |
void |
undeclareResource(java.lang.String name,
java.lang.String groupName)
Undeclare a resource. |
void |
unlinkWorldGeometryFromResourceGroup(java.lang.String group)
Clear any link to world geometry from a resource group. |
void |
unloadResourceGroup(java.lang.String name,
boolean reloadableOnly)
Unloads a resource group. |
void |
unloadUnreferencedResourcesInGroup(java.lang.String name,
boolean reloadableOnly)
Unload all resources which are not referenced by any other object. |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Method Detail |
|---|
void createResourceGroup(java.lang.String name)
void initialiseResourceGroup(java.lang.String name)
void initialiseAllResourceGroups()
void prepareResourceGroup(java.lang.String name,
boolean prepareMainResources,
boolean prepareWorldGeom)
void loadResourceGroup(java.lang.String name,
boolean loadMainResources,
boolean loadWorldGeom)
void unloadResourceGroup(java.lang.String name,
boolean reloadableOnly)
void unloadUnreferencedResourcesInGroup(java.lang.String name,
boolean reloadableOnly)
void clearResourceGroup(java.lang.String name)
void destroyResourceGroup(java.lang.String name)
boolean isResourceGroupInitialised(java.lang.String name)
boolean isResourceGroupLoaded(java.lang.String name)
void addResourceLocation(java.lang.String name,
java.lang.String locType,
java.lang.String resGroup,
boolean recursive)
void removeResourceLocation(java.lang.String name,
java.lang.String resGroup)
void declareResource(java.lang.String name,
java.lang.String resourceType,
java.lang.String groupName,
INameValuePairList loadParameters)
void declareResource(java.lang.String name,
java.lang.String resourceType,
java.lang.String groupName,
IManualResourceLoader loader,
INameValuePairList loadParameters)
void undeclareResource(java.lang.String name,
java.lang.String groupName)
void openResource(IDataStreamPtr returnValue,
java.lang.String resourceName,
java.lang.String groupName,
boolean searchGroupsIfNotFound,
IResource resourceBeingLoaded)
void openResources(IDataStreamListPtr returnValue,
java.lang.String pattern,
java.lang.String groupName)
void listResourceNames(IStringVectorPtr returnValue,
java.lang.String groupName,
boolean dirs)
void listResourceFileInfo(IFileInfoListPtr returnValue,
java.lang.String groupName,
boolean dirs)
void findResourceNames(IStringVectorPtr returnValue,
java.lang.String groupName,
java.lang.String pattern,
boolean dirs)
boolean resourceExists(java.lang.String group,
java.lang.String filename)
boolean resourceExists(IResourceGroupManager.IResourceGroup group,
java.lang.String filename)
java.lang.String findGroupContainingResource(java.lang.String filename)
void findResourceFileInfo(IFileInfoListPtr returnValue,
java.lang.String group,
java.lang.String pattern,
boolean dirs)
long resourceModifiedTime(java.lang.String group,
java.lang.String filename)
long resourceModifiedTime(IResourceGroupManager.IResourceGroup group,
java.lang.String filename)
void addResourceGroupListener(IResourceGroupListener l)
void removeResourceGroupListener(IResourceGroupListener l)
void setWorldResourceGroupName(java.lang.String groupName)
java.lang.String getWorldResourceGroupName()
void linkWorldGeometryToResourceGroup(java.lang.String group,
java.lang.String worldGeometry,
ISceneManager sceneManager)
void unlinkWorldGeometryFromResourceGroup(java.lang.String group)
void shutdownAll()
void _registerResourceManager(java.lang.String resourceType,
IResourceManager rm)
void _unregisterResourceManager(java.lang.String resourceType)
void getResourceManagerIterator(IResourceGroupManager.IResourceManagerIterator returnValue)
void _registerScriptLoader(IScriptLoader su)
void _unregisterScriptLoader(IScriptLoader su)
IResourceManager _getResourceManager(java.lang.String resourceType)
void _notifyResourceCreated(IResourcePtr res)
void _notifyResourceRemoved(IResourcePtr res)
void _notifyResourceGroupChanged(java.lang.String oldGroup,
IResource res)
void _notifyAllResourcesRemoved(IResourceManager manager)
void _notifyWorldGeometryPrepareStageStarted(java.lang.String description)
void _notifyWorldGeometryPrepareStageEnded()
void _notifyWorldGeometryStageStarted(java.lang.String description)
void _notifyWorldGeometryStageEnded()
void getResourceGroups(IStringVector returnValue)
void getResourceDeclarationList(IResourceGroupManager.IResourceDeclarationList returnValue,
java.lang.String groupName)
void setLoadingListener(IResourceLoadingListener listener)
IResourceLoadingListener getLoadingListener()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||