|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Root
public class Root
| Nested Class Summary | |
|---|---|
protected static class |
Root.FrameEventTimeType
|
static class |
Root.MovableObjectFactoryIterator
|
protected static class |
Root.MovableObjectFactoryMap
|
static class |
Root.PluginInstanceList
|
static class |
Root.PluginLibList
|
protected static class |
Root.RenderQueueInvocationSequenceMap
|
| Nested classes/interfaces inherited from interface org.ogre4j.IRoot |
|---|
IRoot.IMovableObjectFactoryIterator, IRoot.IMovableObjectFactoryMap, IRoot.IPluginInstanceList, IRoot.IPluginLibList, IRoot.IRenderQueueInvocationSequenceMap |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Root(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Root(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Root(java.lang.String pluginFileName,
java.lang.String configFileName,
java.lang.String logFileName)
Constructor |
|
Root(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| 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 |
delete()
Deletes the corresponding C++ object. |
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. |
void |
finalize()
|
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. |
static IRoot |
getSingleton()
Override standard retrieval. |
static IRoot |
getSingletonPtr()
Override standard retrieval. |
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 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 Root(InstancePointer p)
protected Root(InstancePointer p,
boolean remote)
public Root(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public Root(java.lang.String pluginFileName,
java.lang.String configFileName,
java.lang.String logFileName)
| 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 NativeObjectpublic void saveConfig()
saveConfig in interface IRootpublic boolean restoreConfig()
restoreConfig in interface IRootpublic boolean showConfigDialog()
showConfigDialog in interface IRootpublic void addRenderSystem(IRenderSystem newRend)
addRenderSystem in interface IRootpublic IRenderSystemList getAvailableRenderers()
getAvailableRenderers in interface IRootpublic IRenderSystem getRenderSystemByName(java.lang.String name)
getRenderSystemByName in interface IRootpublic void setRenderSystem(IRenderSystem system)
setRenderSystem in interface IRootpublic IRenderSystem getRenderSystem()
getRenderSystem in interface IRoot
public IRenderWindow initialise(boolean autoCreateWindow,
java.lang.String windowTitle,
java.lang.String customCapabilitiesConfig)
initialise in interface IRootpublic boolean isInitialised()
isInitialised in interface IRootpublic void useCustomRenderSystemCapabilities(IRenderSystemCapabilities capabilities)
useCustomRenderSystemCapabilities in interface IRootpublic void addSceneManagerFactory(ISceneManagerFactory fact)
addSceneManagerFactory in interface IRootpublic void removeSceneManagerFactory(ISceneManagerFactory fact)
removeSceneManagerFactory in interface IRootpublic ISceneManagerMetaData getSceneManagerMetaData(java.lang.String typeName)
getSceneManagerMetaData in interface IRootpublic void getSceneManagerMetaDataIterator(ISceneManagerEnumerator.IMetaDataIterator returnValue)
getSceneManagerMetaDataIterator in interface IRoot
public ISceneManager createSceneManager(java.lang.String typeName,
java.lang.String instanceName)
createSceneManager in interface IRoot
public ISceneManager createSceneManager(int typeMask,
java.lang.String instanceName)
createSceneManager in interface IRootpublic void destroySceneManager(ISceneManager sm)
destroySceneManager in interface IRootpublic ISceneManager getSceneManager(java.lang.String instanceName)
getSceneManager in interface IRootpublic void getSceneManagerIterator(ISceneManagerEnumerator.ISceneManagerIterator returnValue)
getSceneManagerIterator in interface IRootpublic ITextureManager getTextureManager()
getTextureManager in interface IRootpublic IMeshManager getMeshManager()
getMeshManager in interface IRootpublic java.lang.String getErrorDescription(long errorNumber)
getErrorDescription in interface IRootpublic void addFrameListener(IFrameListener newListener)
addFrameListener in interface IRootpublic void removeFrameListener(IFrameListener oldListener)
removeFrameListener in interface IRootpublic void queueEndRendering()
queueEndRendering in interface IRootpublic void startRendering()
startRendering in interface IRootpublic boolean renderOneFrame()
renderOneFrame in interface IRootpublic void shutdown()
shutdown in interface IRoot
public void addResourceLocation(java.lang.String name,
java.lang.String locType,
java.lang.String groupName,
boolean recursive)
addResourceLocation in interface IRoot
public void removeResourceLocation(java.lang.String name,
java.lang.String groupName)
removeResourceLocation in interface IRoot
public void convertColourValue(IColourValue colour,
LongPointer pDest)
convertColourValue in interface IRootpublic IRenderWindow getAutoCreatedWindow()
getAutoCreatedWindow in interface IRoot
public IRenderWindow createRenderWindow(java.lang.String name,
long width,
long height,
boolean fullScreen,
INameValuePairList miscParams)
createRenderWindow in interface IRootpublic void detachRenderTarget(IRenderTarget pWin)
detachRenderTarget in interface IRootpublic void detachRenderTarget(java.lang.String name)
detachRenderTarget in interface IRootpublic IRenderTarget getRenderTarget(java.lang.String name)
getRenderTarget in interface IRootpublic void loadPlugin(java.lang.String pluginName)
loadPlugin in interface IRootpublic void unloadPlugin(java.lang.String pluginName)
unloadPlugin in interface IRootpublic void installPlugin(IPlugin plugin)
installPlugin in interface IRootpublic void uninstallPlugin(IPlugin plugin)
uninstallPlugin in interface IRootpublic IRoot.IPluginInstanceList getInstalledPlugins()
getInstalledPlugins in interface IRootpublic ITimer getTimer()
getTimer in interface IRootpublic boolean _fireFrameStarted(IFrameEvent evt)
_fireFrameStarted in interface IRootpublic boolean _fireFrameRenderingQueued(IFrameEvent evt)
_fireFrameRenderingQueued in interface IRootpublic boolean _fireFrameEnded(IFrameEvent evt)
_fireFrameEnded in interface IRootpublic boolean _fireFrameStarted()
_fireFrameStarted in interface IRootpublic boolean _fireFrameRenderingQueued()
_fireFrameRenderingQueued in interface IRootpublic boolean _fireFrameEnded()
_fireFrameEnded in interface IRootpublic long getNextFrameNumber()
getNextFrameNumber in interface IRootpublic ISceneManager _getCurrentSceneManager()
_getCurrentSceneManager in interface IRootpublic void _setCurrentSceneManager(ISceneManager sm)
_setCurrentSceneManager in interface IRootpublic boolean _updateAllRenderTargets()
_updateAllRenderTargets in interface IRootpublic IRenderQueueInvocationSequence createRenderQueueInvocationSequence(java.lang.String name)
createRenderQueueInvocationSequence in interface IRootpublic IRenderQueueInvocationSequence getRenderQueueInvocationSequence(java.lang.String name)
getRenderQueueInvocationSequence in interface IRootpublic void destroyRenderQueueInvocationSequence(java.lang.String name)
destroyRenderQueueInvocationSequence in interface IRootpublic void destroyAllRenderQueueInvocationSequences()
destroyAllRenderQueueInvocationSequences in interface IRootpublic void clearEventTimes()
clearEventTimes in interface IRootpublic void setFrameSmoothingPeriod(float period)
setFrameSmoothingPeriod in interface IRootpublic float getFrameSmoothingPeriod()
getFrameSmoothingPeriod in interface IRoot
public void addMovableObjectFactory(IMovableObjectFactory fact,
boolean overrideExisting)
addMovableObjectFactory in interface IRootpublic void removeMovableObjectFactory(IMovableObjectFactory fact)
removeMovableObjectFactory in interface IRootpublic boolean hasMovableObjectFactory(java.lang.String typeName)
hasMovableObjectFactory in interface IRootpublic IMovableObjectFactory getMovableObjectFactory(java.lang.String typeName)
getMovableObjectFactory in interface IRootpublic long _allocateNextMovableObjectTypeFlag()
_allocateNextMovableObjectTypeFlag in interface IRootpublic void getMovableObjectFactoryIterator(IRoot.IMovableObjectFactoryIterator returnValue)
getMovableObjectFactoryIterator in interface IRootpublic static IRoot getSingleton()
public static IRoot getSingletonPtr()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||