org.ogre4j
Interface IRoot

All Superinterfaces:
IAllocatedObject<IGeneralAllocPolicy>, IGeneralAllocatedObject, INativeObject, ISingleton<IRoot>
All Known Implementing Classes:
Root

public interface IRoot
extends INativeObject, IGeneralAllocatedObject, ISingleton<IRoot>


Nested Class Summary
static interface IRoot.IMovableObjectFactoryIterator
           
static interface IRoot.IMovableObjectFactoryMap
           
static interface IRoot.IPluginInstanceList
           
static interface IRoot.IPluginLibList
           
static interface IRoot.IRenderQueueInvocationSequenceMap
           
 
Method Summary
 long _allocateNextMovableObjectTypeFlag()
          Allocate the next type flag.
 boolean _fireFrameEnded()
          Method for raising frame ended events.
 boolean _fireFrameEnded(IFrameEvent evt)
          Method for raising frame ended events.
 boolean _fireFrameRenderingQueued()
          Method for raising frame rendering queued events.
 boolean _fireFrameRenderingQueued(IFrameEvent evt)
          Method for raising frame rendering queued events.
 boolean _fireFrameStarted()
          Method for raising frame started events.
 boolean _fireFrameStarted(IFrameEvent evt)
          Method for raising frame started events.
 ISceneManager _getCurrentSceneManager()
          Returns the scene manager currently being used to render a frame.
 void _setCurrentSceneManager(ISceneManager sm)
          Sets the scene manager currently being used to render a frame.
 boolean _updateAllRenderTargets()
          Internal method used for updating all objects (windows, renderable textures etc) which are set to auto-update.
 void addFrameListener(IFrameListener newListener)
          Registers a which will be called back every frame.
 void addMovableObjectFactory(IMovableObjectFactory fact, boolean overrideExisting)
          Register a new which will create new instances of a particular type, as identified by the getType() method.
 void addRenderSystem(IRenderSystem newRend)
          Adds a new rendering subsystem to the list of available renderers.
 void addResourceLocation(java.lang.String name, java.lang.String locType, java.lang.String groupName, boolean recursive)
          Adds a location to the list of searchable locations for a type.
 void addSceneManagerFactory(ISceneManagerFactory fact)
          Register a new , a factory object for creating instances of specific SceneManagers.
 void clearEventTimes()
          Clears the history of all event times.
 void convertColourValue(IColourValue colour, LongPointer pDest)
          Generates a packed data version of the passed in suitable for use with the current .
 IRenderQueueInvocationSequence createRenderQueueInvocationSequence(java.lang.String name)
          Create a new , useful for linking to instances to perform custom rendering.
 IRenderWindow createRenderWindow(java.lang.String name, long width, long height, boolean fullScreen, INameValuePairList miscParams)
           
 ISceneManager createSceneManager(int typeMask, java.lang.String instanceName)
          Create a instance based on scene type support.
 ISceneManager createSceneManager(java.lang.String typeName, java.lang.String instanceName)
          Create a instance of a given type.
 void destroyAllRenderQueueInvocationSequences()
          Destroy all RenderQueueInvocationSequences.
 void destroyRenderQueueInvocationSequence(java.lang.String name)
          Destroy a .
 void destroySceneManager(ISceneManager sm)
          Destroy an instance of a .
 void detachRenderTarget(IRenderTarget pWin)
          Destroys a rendering window.
 void detachRenderTarget(java.lang.String name)
          Destroys a named rendering window.
 IRenderWindow getAutoCreatedWindow()
          Retrieves a pointer to the window that was created automatically
 IRenderSystemList getAvailableRenderers()
          Retrieve a list of the available render systems.
 java.lang.String getErrorDescription(long errorNumber)
          Utility function for getting a better description of an error code.
 float getFrameSmoothingPeriod()
          Gets the period over which OGRE smooths out fluctuations in frame times.
 IRoot.IPluginInstanceList getInstalledPlugins()
          Gets a read-only list of the currently installed plugins.
 IMeshManager getMeshManager()
          Retrieves a reference to the current .
 IMovableObjectFactory getMovableObjectFactory(java.lang.String typeName)
           
 void getMovableObjectFactoryIterator(IRoot.IMovableObjectFactoryIterator returnValue)
          Return an iterator over all the instances currently registered.
 long getNextFrameNumber()
          Gets the number of the next frame to be rendered.
 IRenderQueueInvocationSequence getRenderQueueInvocationSequence(java.lang.String name)
          Get a .
 IRenderSystem getRenderSystem()
          Retrieve a pointer to the currently selected render system.
 IRenderSystem getRenderSystemByName(java.lang.String name)
          Retrieve a pointer to the render system by the given name
 IRenderTarget getRenderTarget(java.lang.String name)
          Retrieves a pointer to the a named render window.
 ISceneManager getSceneManager(java.lang.String instanceName)
          Get an existing instance that has already been created, identified by the instance name.
 void getSceneManagerIterator(ISceneManagerEnumerator.ISceneManagerIterator returnValue)
          Get an iterator over all the existing instances.
 ISceneManagerMetaData getSceneManagerMetaData(java.lang.String typeName)
          Get more information about a given type of .
 void getSceneManagerMetaDataIterator(ISceneManagerEnumerator.IMetaDataIterator returnValue)
          Iterate over all types of available for construction, providing some information about each one.
 ITextureManager getTextureManager()
          Retrieves a reference to the current .
 ITimer getTimer()
          Gets a pointer to the central timer used for all OGRE timings
 boolean hasMovableObjectFactory(java.lang.String typeName)
           
 IRenderWindow initialise(boolean autoCreateWindow, java.lang.String windowTitle, java.lang.String customCapabilitiesConfig)
          Initialises the renderer.
 void installPlugin(IPlugin plugin)
          Install a new plugin.
 boolean isInitialised()
          Returns whether the system is initialised or not.
 void loadPlugin(java.lang.String pluginName)
          Manually load a contained in a DLL / DSO.
 void queueEndRendering()
          Queues the end of rendering.
 void removeFrameListener(IFrameListener oldListener)
          Removes a from the list of listening classes.
 void removeMovableObjectFactory(IMovableObjectFactory fact)
          Removes a previously registered .
 void removeResourceLocation(java.lang.String name, java.lang.String groupName)
          Removes a resource location from the list.
 void removeSceneManagerFactory(ISceneManagerFactory fact)
          Unregister a .
 boolean renderOneFrame()
          Render one frame.
 boolean restoreConfig()
          Checks for saved video/sound/etc settings
 void saveConfig()
          Saves the details of the current configuration
 void setFrameSmoothingPeriod(float period)
          Sets the period over which OGRE smooths out fluctuations in frame times.
 void setRenderSystem(IRenderSystem system)
          Sets the rendering subsystem to be used.
 boolean showConfigDialog()
          Displays a dialog asking the user to choose system settings.
 void shutdown()
          Shuts down the system manually.
 void startRendering()
          Starts / restarts the automatic rendering cycle.
 void uninstallPlugin(IPlugin plugin)
          Uninstall an existing plugin.
 void unloadPlugin(java.lang.String pluginName)
          Manually unloads a contained in a DLL / DSO.
 void useCustomRenderSystemCapabilities(IRenderSystemCapabilities capabilities)
          Requests active to use custom
 
Methods inherited from interface org.xbig.base.INativeObject
delete, disconnectFromNativeObject, getInstancePointer, setInstancePointer, setInstancePointer, setInstancePointer
 

Method Detail

saveConfig

void saveConfig()
Saves the details of the current configuration


restoreConfig

boolean restoreConfig()
Checks for saved video/sound/etc settings


showConfigDialog

boolean showConfigDialog()
Displays a dialog asking the user to choose system settings.


addRenderSystem

void addRenderSystem(IRenderSystem newRend)
Adds a new rendering subsystem to the list of available renderers.


getAvailableRenderers

IRenderSystemList getAvailableRenderers()
Retrieve a list of the available render systems.


getRenderSystemByName

IRenderSystem getRenderSystemByName(java.lang.String name)
Retrieve a pointer to the render system by the given name


setRenderSystem

void setRenderSystem(IRenderSystem system)
Sets the rendering subsystem to be used.


getRenderSystem

IRenderSystem getRenderSystem()
Retrieve a pointer to the currently selected render system.


initialise

IRenderWindow initialise(boolean autoCreateWindow,
                         java.lang.String windowTitle,
                         java.lang.String customCapabilitiesConfig)
Initialises the renderer.


isInitialised

boolean isInitialised()
Returns whether the system is initialised or not.


useCustomRenderSystemCapabilities

void useCustomRenderSystemCapabilities(IRenderSystemCapabilities capabilities)
Requests active to use custom


addSceneManagerFactory

void addSceneManagerFactory(ISceneManagerFactory fact)
Register a new , a factory object for creating instances of specific SceneManagers.


removeSceneManagerFactory

void removeSceneManagerFactory(ISceneManagerFactory fact)
Unregister a .


getSceneManagerMetaData

ISceneManagerMetaData getSceneManagerMetaData(java.lang.String typeName)
Get more information about a given type of .


getSceneManagerMetaDataIterator

void getSceneManagerMetaDataIterator(ISceneManagerEnumerator.IMetaDataIterator returnValue)
Iterate over all types of available for construction, providing some information about each one.


createSceneManager

ISceneManager createSceneManager(java.lang.String typeName,
                                 java.lang.String instanceName)
Create a instance of a given type.


createSceneManager

ISceneManager createSceneManager(int typeMask,
                                 java.lang.String instanceName)
Create a instance based on scene type support.


destroySceneManager

void destroySceneManager(ISceneManager sm)
Destroy an instance of a .


getSceneManager

ISceneManager getSceneManager(java.lang.String instanceName)
Get an existing instance that has already been created, identified by the instance name.


getSceneManagerIterator

void getSceneManagerIterator(ISceneManagerEnumerator.ISceneManagerIterator returnValue)
Get an iterator over all the existing instances.


getTextureManager

ITextureManager getTextureManager()
Retrieves a reference to the current .


getMeshManager

IMeshManager getMeshManager()
Retrieves a reference to the current .


getErrorDescription

java.lang.String getErrorDescription(long errorNumber)
Utility function for getting a better description of an error code.


addFrameListener

void addFrameListener(IFrameListener newListener)
Registers a which will be called back every frame.


removeFrameListener

void removeFrameListener(IFrameListener oldListener)
Removes a from the list of listening classes.


queueEndRendering

void queueEndRendering()
Queues the end of rendering.


startRendering

void startRendering()
Starts / restarts the automatic rendering cycle.


renderOneFrame

boolean renderOneFrame()
Render one frame.


shutdown

void shutdown()
Shuts down the system manually.


addResourceLocation

void addResourceLocation(java.lang.String name,
                         java.lang.String locType,
                         java.lang.String groupName,
                         boolean recursive)
Adds a location to the list of searchable locations for a type.


removeResourceLocation

void removeResourceLocation(java.lang.String name,
                            java.lang.String groupName)
Removes a resource location from the list.


convertColourValue

void convertColourValue(IColourValue colour,
                        LongPointer pDest)
Generates a packed data version of the passed in suitable for use with the current .


getAutoCreatedWindow

IRenderWindow getAutoCreatedWindow()
Retrieves a pointer to the window that was created automatically


createRenderWindow

IRenderWindow createRenderWindow(java.lang.String name,
                                 long width,
                                 long height,
                                 boolean fullScreen,
                                 INameValuePairList miscParams)

detachRenderTarget

void detachRenderTarget(IRenderTarget pWin)
Destroys a rendering window.


detachRenderTarget

void detachRenderTarget(java.lang.String name)
Destroys a named rendering window.


getRenderTarget

IRenderTarget getRenderTarget(java.lang.String name)
Retrieves a pointer to the a named render window.


loadPlugin

void loadPlugin(java.lang.String pluginName)
Manually load a contained in a DLL / DSO.


unloadPlugin

void unloadPlugin(java.lang.String pluginName)
Manually unloads a contained in a DLL / DSO.


installPlugin

void installPlugin(IPlugin plugin)
Install a new plugin.


uninstallPlugin

void uninstallPlugin(IPlugin plugin)
Uninstall an existing plugin.


getInstalledPlugins

IRoot.IPluginInstanceList getInstalledPlugins()
Gets a read-only list of the currently installed plugins.


getTimer

ITimer getTimer()
Gets a pointer to the central timer used for all OGRE timings


_fireFrameStarted

boolean _fireFrameStarted(IFrameEvent evt)
Method for raising frame started events.


_fireFrameRenderingQueued

boolean _fireFrameRenderingQueued(IFrameEvent evt)
Method for raising frame rendering queued events.


_fireFrameEnded

boolean _fireFrameEnded(IFrameEvent evt)
Method for raising frame ended events.


_fireFrameStarted

boolean _fireFrameStarted()
Method for raising frame started events.


_fireFrameRenderingQueued

boolean _fireFrameRenderingQueued()
Method for raising frame rendering queued events.


_fireFrameEnded

boolean _fireFrameEnded()
Method for raising frame ended events.


getNextFrameNumber

long getNextFrameNumber()
Gets the number of the next frame to be rendered.


_getCurrentSceneManager

ISceneManager _getCurrentSceneManager()
Returns the scene manager currently being used to render a frame.


_setCurrentSceneManager

void _setCurrentSceneManager(ISceneManager sm)
Sets the scene manager currently being used to render a frame.


_updateAllRenderTargets

boolean _updateAllRenderTargets()
Internal method used for updating all objects (windows, renderable textures etc) which are set to auto-update.


createRenderQueueInvocationSequence

IRenderQueueInvocationSequence createRenderQueueInvocationSequence(java.lang.String name)
Create a new , useful for linking to instances to perform custom rendering.


getRenderQueueInvocationSequence

IRenderQueueInvocationSequence getRenderQueueInvocationSequence(java.lang.String name)
Get a .


destroyRenderQueueInvocationSequence

void destroyRenderQueueInvocationSequence(java.lang.String name)
Destroy a .


destroyAllRenderQueueInvocationSequences

void destroyAllRenderQueueInvocationSequences()
Destroy all RenderQueueInvocationSequences.


clearEventTimes

void clearEventTimes()
Clears the history of all event times.


setFrameSmoothingPeriod

void setFrameSmoothingPeriod(float period)
Sets the period over which OGRE smooths out fluctuations in frame times.


getFrameSmoothingPeriod

float getFrameSmoothingPeriod()
Gets the period over which OGRE smooths out fluctuations in frame times.


addMovableObjectFactory

void addMovableObjectFactory(IMovableObjectFactory fact,
                             boolean overrideExisting)
Register a new which will create new instances of a particular type, as identified by the getType() method.


removeMovableObjectFactory

void removeMovableObjectFactory(IMovableObjectFactory fact)
Removes a previously registered .


hasMovableObjectFactory

boolean hasMovableObjectFactory(java.lang.String typeName)

getMovableObjectFactory

IMovableObjectFactory getMovableObjectFactory(java.lang.String typeName)

_allocateNextMovableObjectTypeFlag

long _allocateNextMovableObjectTypeFlag()
Allocate the next type flag.


getMovableObjectFactoryIterator

void getMovableObjectFactoryIterator(IRoot.IMovableObjectFactoryIterator returnValue)
Return an iterator over all the instances currently registered.



Copyright © 2007 netAllied GmbH. All Rights Reserved.