org.ogre4j
Interface IResourceGroupManager

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject, ISingleton<IResourceGroupManager>
All Known Implementing Classes:
ResourceGroupManager

public interface IResourceGroupManager
extends INativeObject, IResourceAllocatedObject, ISingleton<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

createResourceGroup

void createResourceGroup(java.lang.String name)
Create a resource group.


initialiseResourceGroup

void initialiseResourceGroup(java.lang.String name)
Initialises a resource group.


initialiseAllResourceGroups

void initialiseAllResourceGroups()
Initialise all resource groups which are yet to be initialised.


prepareResourceGroup

void prepareResourceGroup(java.lang.String name,
                          boolean prepareMainResources,
                          boolean prepareWorldGeom)
Prepares a resource group. When this method is called, this class will callback any ResourceGroupListeners which have been registered to update them on progress.


loadResourceGroup

void loadResourceGroup(java.lang.String name,
                       boolean loadMainResources,
                       boolean loadWorldGeom)
Loads a resource group. When this method is called, this class will callback any ResourceGroupListeners which have been registered to update them on progress.


unloadResourceGroup

void unloadResourceGroup(java.lang.String name,
                         boolean reloadableOnly)
Unloads a resource group.


unloadUnreferencedResourcesInGroup

void unloadUnreferencedResourcesInGroup(java.lang.String name,
                                        boolean reloadableOnly)
Unload all resources which are not referenced by any other object.


clearResourceGroup

void clearResourceGroup(java.lang.String name)
Clears a resource group.


destroyResourceGroup

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.


isResourceGroupInitialised

boolean isResourceGroupInitialised(java.lang.String name)
Checks the status of a resource group.


isResourceGroupLoaded

boolean isResourceGroupLoaded(java.lang.String name)
Checks the status of a resource group.


addResourceLocation

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.


removeResourceLocation

void removeResourceLocation(java.lang.String name,
                            java.lang.String resGroup)
Removes a resource location from the search path.


declareResource

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.


declareResource

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.


undeclareResource

void undeclareResource(java.lang.String name,
                       java.lang.String groupName)
Undeclare a resource.


openResource

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.


openResources

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.


listResourceNames

void listResourceNames(IStringVectorPtr returnValue,
                       java.lang.String groupName,
                       boolean dirs)
List all file or directory names in a resource group.


listResourceFileInfo

void listResourceFileInfo(IFileInfoListPtr returnValue,
                          java.lang.String groupName,
                          boolean dirs)
List all files in a resource group with accompanying information.


findResourceNames

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.


resourceExists

boolean resourceExists(java.lang.String group,
                       java.lang.String filename)
Find out if the named file exists in a group.


resourceExists

boolean resourceExists(IResourceGroupManager.IResourceGroup group,
                       java.lang.String filename)
Find out if the named file exists in a group.


findGroupContainingResource

java.lang.String findGroupContainingResource(java.lang.String filename)
Find the group in which a resource exists.


findResourceFileInfo

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.


resourceModifiedTime

long resourceModifiedTime(java.lang.String group,
                          java.lang.String filename)
Retrieve the modification time of a given file


resourceModifiedTime

long resourceModifiedTime(IResourceGroupManager.IResourceGroup group,
                          java.lang.String filename)
Retrieve the modification time of a given file


addResourceGroupListener

void addResourceGroupListener(IResourceGroupListener l)
Adds a which will be called back during resource loading events.


removeResourceGroupListener

void removeResourceGroupListener(IResourceGroupListener l)
Removes a


setWorldResourceGroupName

void setWorldResourceGroupName(java.lang.String groupName)
Sets the resource group that 'world' resources will use.


getWorldResourceGroupName

java.lang.String getWorldResourceGroupName()

linkWorldGeometryToResourceGroup

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.


unlinkWorldGeometryFromResourceGroup

void unlinkWorldGeometryFromResourceGroup(java.lang.String group)
Clear any link to world geometry from a resource group.


shutdownAll

void shutdownAll()
Shutdown all ResourceManagers, performed as part of clean-up.


_registerResourceManager

void _registerResourceManager(java.lang.String resourceType,
                              IResourceManager rm)
Internal method for registering a (which should be a singleton). Creators of plugins can register new ResourceManagers this way if they wish.


_unregisterResourceManager

void _unregisterResourceManager(java.lang.String resourceType)
Internal method for unregistering a .


getResourceManagerIterator

void getResourceManagerIterator(IResourceGroupManager.IResourceManagerIterator returnValue)
Get an iterator over the registered resource managers.


_registerScriptLoader

void _registerScriptLoader(IScriptLoader su)
Internal method for registering a .


_unregisterScriptLoader

void _unregisterScriptLoader(IScriptLoader su)
Internal method for unregistering a .


_getResourceManager

IResourceManager _getResourceManager(java.lang.String resourceType)
Internal method for getting a registered .


_notifyResourceCreated

void _notifyResourceCreated(IResourcePtr res)
Internal method called by when a resource is created.


_notifyResourceRemoved

void _notifyResourceRemoved(IResourcePtr res)
Internal method called by when a resource is removed.


_notifyResourceGroupChanged

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)


_notifyAllResourcesRemoved

void _notifyAllResourcesRemoved(IResourceManager manager)
Internal method called by when all resources for that manager are removed.


_notifyWorldGeometryPrepareStageStarted

void _notifyWorldGeometryPrepareStageStarted(java.lang.String description)
Notify this manager that one stage of world geometry loading has been started.


_notifyWorldGeometryPrepareStageEnded

void _notifyWorldGeometryPrepareStageEnded()
Notify this manager that one stage of world geometry loading has been completed.


_notifyWorldGeometryStageStarted

void _notifyWorldGeometryStageStarted(java.lang.String description)
Notify this manager that one stage of world geometry loading has been started.


_notifyWorldGeometryStageEnded

void _notifyWorldGeometryStageEnded()
Notify this manager that one stage of world geometry loading has been completed.


getResourceGroups

void getResourceGroups(IStringVector returnValue)
Get a list of the currently defined resource groups.


getResourceDeclarationList

void getResourceDeclarationList(IResourceGroupManager.IResourceDeclarationList returnValue,
                                java.lang.String groupName)
Get the list of resource declarations for the specified group name.


setLoadingListener

void setLoadingListener(IResourceLoadingListener listener)

getLoadingListener

IResourceLoadingListener getLoadingListener()


Copyright © 2007 netAllied GmbH. All Rights Reserved.