org.ogre4j
Interface ICompositorManager

All Superinterfaces:
IAllocatedObject<IResourceAllocPolicy>, INativeObject, IResourceAllocatedObject, IResourceManager, IScriptLoader, ISingleton<ICompositorManager>
All Known Implementing Classes:
CompositorManager

public interface ICompositorManager
extends INativeObject, IResourceManager, ISingleton<ICompositorManager>


Nested Class Summary
static interface ICompositorManager.IChains
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IResourceManager
IResourceManager.IResourceCreateOrRetrieveResult, IResourceManager.IResourceHandleMap, IResourceManager.IResourceMap, IResourceManager.IResourceMapIterator
 
Method Summary
 IRenderable _getTexturedRectangle2D()
          Get a textured fullscreen 2D rectangle, for internal use.
 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.
 IResource createImpl(java.lang.String name, long handle, java.lang.String group, boolean isManual, IManualResourceLoader loader, INameValuePairList params)
           
 ICompositorChain getCompositorChain(IViewport vp)
          Get the compositor chain for a .
 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 parseScript(IDataStreamPtr stream, java.lang.String groupName)
          Parse the definition of a set of resources from a script file.
 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.
 void setCompositorEnabled(IViewport vp, java.lang.String compositor, boolean value)
          Set the state of a compositor on a viewport to enabled or disabled.
 
Methods inherited from interface org.ogre4j.IResourceManager
_notifyResourceLoaded, _notifyResourceTouched, _notifyResourceUnloaded, create, createOrRetrieve, getByHandle, getByName, getLoadingOrder, getMemoryBudget, getMemoryUsage, getResourceIterator, getResourceType, getScriptPatterns, getVerbose, load, prepare, reloadAll, reloadUnreferencedResources, remove, remove, remove, resourceExists, resourceExists, setMemoryBudget, setVerbose, unload, unload, unloadAll, unloadUnreferencedResources
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

createImpl

IResource createImpl(java.lang.String name,
                     long handle,
                     java.lang.String group,
                     boolean isManual,
                     IManualResourceLoader loader,
                     INameValuePairList params)

initialise

void initialise()
Initialises the manager, which also triggers it to parse all available .compositor scripts.


parseScript

void parseScript(IDataStreamPtr stream,
                 java.lang.String groupName)
Description copied from interface: IResourceManager
Parse the definition of a set of resources from a script file.

Specified by:
parseScript in interface IResourceManager
Specified by:
parseScript in interface IScriptLoader

getCompositorChain

ICompositorChain getCompositorChain(IViewport vp)
Get the compositor chain for a . If there is none yet, a new compositor chain is registered. XXX We need a _notifyViewportRemoved to find out when this viewport disappears, so we can destroy its chain as well.


hasCompositorChain

boolean hasCompositorChain(IViewport vp)
Returns whether exists compositor chain for a viewport.


removeCompositorChain

void removeCompositorChain(IViewport vp)
Remove the compositor chain from a viewport if exists.


addCompositor

ICompositorInstance addCompositor(IViewport vp,
                                  java.lang.String compositor,
                                  int addPosition)
Add a compositor to a viewport. By default, it is added to end of the chain, after the other compositors.


removeCompositor

void removeCompositor(IViewport vp,
                      java.lang.String compositor)
Remove a compositor from a viewport


setCompositorEnabled

void setCompositorEnabled(IViewport vp,
                          java.lang.String compositor,
                          boolean value)
Set the state of a compositor on a viewport to enabled or disabled. Disabling a compositor stops it from rendering but does not free any resources. This can be more efficient than using removeCompositor and addCompositor in cases the filter is switched on and off a lot.


_getTexturedRectangle2D

IRenderable _getTexturedRectangle2D()
Get a textured fullscreen 2D rectangle, for internal use.


removeAll

void removeAll()
Overridden from since we have to clean up chains too.

Specified by:
removeAll in interface IResourceManager

_reconstructAllCompositorResources

void _reconstructAllCompositorResources()
Internal method for forcing all active compositors to recreate their resources.



Copyright © 2007 netAllied GmbH. All Rights Reserved.