|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.CompositorManager
public class CompositorManager
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface org.ogre4j.ICompositorManager |
|---|
ICompositorManager.IChains |
| Nested classes/interfaces inherited from interface org.ogre4j.IResourceManager |
|---|
IResourceManager.IResourceCreateOrRetrieveResult, IResourceManager.IResourceHandleMap, IResourceManager.IResourceMap, IResourceManager.IResourceMapIterator |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
CompositorManager()
|
|
CompositorManager(InstancePointer p)
This constructor is public for internal useage only! |
protected |
CompositorManager(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
CompositorManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
IRenderable |
_getTexturedRectangle2D()
Get a textured fullscreen 2D rectangle, for internal use. |
void |
_notifyResourceLoaded(IResource res)
Notify this manager that a resource which it manages has been loaded. |
void |
_notifyResourceTouched(IResource res)
Notify this manager that a resource which it manages has been 'touched', i.e. used. |
void |
_notifyResourceUnloaded(IResource res)
Notify this manager that a resource which it manages has been unloaded. |
void |
_reconstructAllCompositorResources()
Internal method for forcing all active compositors to recreate their resources. |
ICompositorInstance |
addCompositor(IViewport vp,
java.lang.String compositor,
int addPosition)
Add a compositor to a viewport. |
void |
create(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
Creates a new blank resource, but does not immediately load it. |
IResource |
createImpl(java.lang.String name,
long handle,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList params)
|
void |
createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
Create a new resource, or retrieve an existing one with the same name if it already exists. |
void |
delete()
Deletes the corresponding C++ object. |
void |
finalize()
|
void |
getByHandle(IResourcePtr returnValue,
long handle)
Retrieves a pointer to a resource by handle, or null if the resource does not exist. |
void |
getByName(IResourcePtr returnValue,
java.lang.String name)
Retrieves a pointer to a resource by name, or null if the resource does not exist. |
ICompositorChain |
getCompositorChain(IViewport vp)
Get the compositor chain for a . |
float |
getLoadingOrder()
Gets the relative loading order of resources of this type. |
int |
getMemoryBudget()
Get the limit on the amount of memory this resource handler may use. |
int |
getMemoryUsage()
Gets the current memory usage, in bytes. |
void |
getResourceIterator(IResourceManager.IResourceMapIterator returnValue)
Returns an iterator over all resources in this manager. |
java.lang.String |
getResourceType()
Gets a string identifying the type of resource this manager handles. |
IStringVector |
getScriptPatterns()
Gets the file patterns which should be used to find scripts for this . |
static ICompositorManager |
getSingleton()
Override standard retrieval. |
static ICompositorManager |
getSingletonPtr()
Override standard retrieval. |
boolean |
getVerbose()
Gets whether this manager and its resources habitually produce log output |
boolean |
hasCompositorChain(IViewport vp)
Returns whether exists compositor chain for a viewport. |
void |
initialise()
Initialises the manager, which also triggers it to parse all available .compositor scripts. |
void |
load(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
Generic load method, used to create a specific to this without using one of the specialised 'load' methods (containing per-Resource-type parameters). |
void |
parseScript(IDataStreamPtr stream,
java.lang.String groupName)
Parse the definition of a set of resources from a script file. |
void |
prepare(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
Generic prepare method, used to create a specific to this without using one of the specialised 'prepare' methods (containing per-Resource-type parameters). |
void |
reloadAll(boolean reloadableOnly)
Caused all currently loaded resources to be reloaded. |
void |
reloadUnreferencedResources(boolean reloadableOnly)
Caused all currently loaded but not referenced by any other object resources to be reloaded. |
void |
remove(IResourcePtr r)
Remove a single resource. |
void |
remove(long handle)
Remove a single resource by handle. |
void |
remove(java.lang.String name)
Remove a single resource by name. |
void |
removeAll()
Overridden from since we have to clean up chains too. |
void |
removeCompositor(IViewport vp,
java.lang.String compositor)
Remove a compositor from a viewport |
void |
removeCompositorChain(IViewport vp)
Remove the compositor chain from a viewport if exists. |
boolean |
resourceExists(long handle)
|
boolean |
resourceExists(java.lang.String name)
|
void |
setCompositorEnabled(IViewport vp,
java.lang.String compositor,
boolean value)
Set the state of a compositor on a viewport to enabled or disabled. |
void |
setMemoryBudget(int bytes)
Set a limit on the amount of memory this resource handler may use. |
void |
setVerbose(boolean v)
Sets whether this manager and its resources habitually produce log output |
void |
unload(long handle)
Unloads a single resource by handle. |
void |
unload(java.lang.String name)
Unloads a single resource by name. |
void |
unloadAll(boolean reloadableOnly)
Unloads all resources. |
void |
unloadUnreferencedResources(boolean reloadableOnly)
Unload all resources which are not referenced by any other object. |
| Methods inherited from class org.xbig.base.NativeObject |
|---|
disconnectFromNativeObject, equals, getInstancePointer, hashCode, setInstancePointer, setInstancePointer, setInstancePointer, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.xbig.base.INativeObject |
|---|
disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer |
| Constructor Detail |
|---|
public CompositorManager(InstancePointer p)
protected CompositorManager(InstancePointer p,
boolean remote)
public CompositorManager(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()public CompositorManager()
| Method Detail |
|---|
public void delete()
INativeObjectSubclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!
delete in interface INativeObjectdelete in class NativeObject#remotepublic void finalize()
finalize in class NativeObject
public IResource createImpl(java.lang.String name,
long handle,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList params)
createImpl in interface ICompositorManagerpublic void initialise()
initialise in interface ICompositorManager
public void parseScript(IDataStreamPtr stream,
java.lang.String groupName)
IResourceManager
parseScript in interface ICompositorManagerparseScript in interface IResourceManagerparseScript in interface IScriptLoaderpublic ICompositorChain getCompositorChain(IViewport vp)
getCompositorChain in interface ICompositorManagerpublic boolean hasCompositorChain(IViewport vp)
hasCompositorChain in interface ICompositorManagerpublic void removeCompositorChain(IViewport vp)
removeCompositorChain in interface ICompositorManager
public ICompositorInstance addCompositor(IViewport vp,
java.lang.String compositor,
int addPosition)
addCompositor in interface ICompositorManager
public void removeCompositor(IViewport vp,
java.lang.String compositor)
removeCompositor in interface ICompositorManager
public void setCompositorEnabled(IViewport vp,
java.lang.String compositor,
boolean value)
setCompositorEnabled in interface ICompositorManagerpublic IRenderable _getTexturedRectangle2D()
_getTexturedRectangle2D in interface ICompositorManagerpublic void removeAll()
removeAll in interface ICompositorManagerremoveAll in interface IResourceManagerpublic void _reconstructAllCompositorResources()
_reconstructAllCompositorResources in interface ICompositorManagerpublic static ICompositorManager getSingleton()
public static ICompositorManager getSingletonPtr()
public void create(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
create in interface IResourceManager
public void createOrRetrieve(IResourceManager.IResourceCreateOrRetrieveResult returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList createParams)
createOrRetrieve in interface IResourceManagerpublic void setMemoryBudget(int bytes)
setMemoryBudget in interface IResourceManagerpublic int getMemoryBudget()
getMemoryBudget in interface IResourceManagerpublic int getMemoryUsage()
getMemoryUsage in interface IResourceManagerpublic void unload(java.lang.String name)
unload in interface IResourceManagerpublic void unload(long handle)
unload in interface IResourceManagerpublic void unloadAll(boolean reloadableOnly)
unloadAll in interface IResourceManagerpublic void reloadAll(boolean reloadableOnly)
reloadAll in interface IResourceManagerpublic void unloadUnreferencedResources(boolean reloadableOnly)
unloadUnreferencedResources in interface IResourceManagerpublic void reloadUnreferencedResources(boolean reloadableOnly)
reloadUnreferencedResources in interface IResourceManagerpublic void remove(IResourcePtr r)
remove in interface IResourceManagerpublic void remove(java.lang.String name)
remove in interface IResourceManagerpublic void remove(long handle)
remove in interface IResourceManager
public void getByName(IResourcePtr returnValue,
java.lang.String name)
getByName in interface IResourceManager
public void getByHandle(IResourcePtr returnValue,
long handle)
getByHandle in interface IResourceManagerpublic boolean resourceExists(java.lang.String name)
resourceExists in interface IResourceManagerpublic boolean resourceExists(long handle)
resourceExists in interface IResourceManagerpublic void _notifyResourceTouched(IResource res)
_notifyResourceTouched in interface IResourceManagerpublic void _notifyResourceLoaded(IResource res)
_notifyResourceLoaded in interface IResourceManagerpublic void _notifyResourceUnloaded(IResource res)
_notifyResourceUnloaded in interface IResourceManager
public void prepare(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
prepare in interface IResourceManager
public void load(IResourcePtr returnValue,
java.lang.String name,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader,
INameValuePairList loadParams)
load in interface IResourceManagerpublic IStringVector getScriptPatterns()
getScriptPatterns in interface IResourceManagergetScriptPatterns in interface IScriptLoaderpublic float getLoadingOrder()
getLoadingOrder in interface IResourceManagergetLoadingOrder in interface IScriptLoaderpublic java.lang.String getResourceType()
getResourceType in interface IResourceManagerpublic void setVerbose(boolean v)
setVerbose in interface IResourceManagerpublic boolean getVerbose()
getVerbose in interface IResourceManagerpublic void getResourceIterator(IResourceManager.IResourceMapIterator returnValue)
getResourceIterator in interface IResourceManager
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||