org.ogre4j
Class OverlayManager

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.OverlayManager
All Implemented Interfaces:
IAllocatedObject<ISceneObjAllocPolicy>, IOverlayManager, ISceneObjAllocatedObject, IScriptLoader, ISingleton<IOverlayManager>, INativeObject

public class OverlayManager
extends NativeObject
implements IOverlayManager


Nested Class Summary
static class OverlayManager.ElementMap
           
protected static class OverlayManager.FactoryMap
           
protected static class OverlayManager.LoadedScripts
           
static class OverlayManager.OverlayMap
           
static class OverlayManager.OverlayMapIterator
           
static class OverlayManager.TemplateIterator
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IOverlayManager
IOverlayManager.IElementMap, IOverlayManager.IFactoryMap, IOverlayManager.ILoadedScripts, IOverlayManager.IOverlayMap, IOverlayManager.IOverlayMapIterator, IOverlayManager.ITemplateIterator
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  OverlayManager()
           
  OverlayManager(InstancePointer p)
          This constructor is public for internal useage only!
protected OverlayManager(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  OverlayManager(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void _queueOverlaysForRendering(ICamera cam, IRenderQueue pQueue, IViewport vp)
          Internal method for queueing the visible overlays for rendering.
 void addOverlayElementFactory(IOverlayElementFactory elemFactory)
          Registers a new with this manager.
 IOverlayElement cloneOverlayElementFromTemplate(java.lang.String templateName, java.lang.String instanceName)
           
 IOverlay create(java.lang.String name)
          Create a new .
 IOverlayElement createOverlayElement(java.lang.String typeName, java.lang.String instanceName, boolean isTemplate)
          Creates a new of the type requested.
 IOverlayElement createOverlayElementFromFactory(java.lang.String typeName, java.lang.String instanceName)
           
 IOverlayElement createOverlayElementFromTemplate(java.lang.String templateName, java.lang.String typeName, java.lang.String instanceName, boolean isTemplate)
           
 void delete()
          Deletes the corresponding C++ object.
 void destroy(IOverlay overlay)
          Destroys an existing overlay
 void destroy(java.lang.String name)
          Destroys an existing overlay by name
 void destroyAll()
          Destroys all existing overlays
 void destroyAllOverlayElements(boolean isTemplate)
          Destroys all the created so far.
 void destroyOverlayElement(IOverlayElement pInstance, boolean isTemplate)
          Destroys a .
 void destroyOverlayElement(java.lang.String instanceName, boolean isTemplate)
          Destroys a .
 void finalize()
           
 IOverlay getByName(java.lang.String name)
          Retrieve an by name
 float getLoadingOrder()
          Gets the relative loading order of scripts of this type.
 IOverlayElement getOverlayElement(java.lang.String name, boolean isTemplate)
          Gets a reference to an existing element.
 void getOverlayIterator(IOverlayManager.IOverlayMapIterator returnValue)
           
 IStringVector getScriptPatterns()
          Gets the file patterns which should be used to find scripts for this class.
static IOverlayManager getSingleton()
          Override standard retrieval.
static IOverlayManager getSingletonPtr()
          Override standard retrieval.
 void getTemplateIterator(IOverlayManager.ITemplateIterator returnValue)
          Returns an iterator over all templates in this manager.
 float getViewportAspectRatio()
           
 int getViewportHeight()
          Gets the height of the destination viewport in pixels.
 int getViewportWidth()
          Gets the width of the destination viewport in pixels.
 boolean hasViewportChanged()
          Method for determining if the viewport has changed dimensions.
 boolean isTemplate(java.lang.String strName)
           
 void parseScript(IDataStreamPtr stream, java.lang.String groupName)
          Parse a script file.
 
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

OverlayManager

public OverlayManager(InstancePointer p)
This constructor is public for internal useage only! Do not use it!


OverlayManager

protected OverlayManager(InstancePointer p,
                         boolean remote)
Creates a Java wrapper object for an existing C++ object. If remote is set to 'true' this object cannot be deleted in Java.


OverlayManager

public OverlayManager(WithoutNativeObject val)
Allows creation of Java objects without C++ objects.

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

OverlayManager

public OverlayManager()
Method Detail

delete

public void delete()
Description copied from interface: INativeObject
Deletes the corresponding C++ object.

Subclasses must implement this but if the native instance was created by the underlying library the native call to dispose must not happen!

Specified by:
delete in interface INativeObject
Specified by:
delete in class NativeObject
See Also:
#remote

finalize

public void finalize()
Overrides:
finalize in class NativeObject

getScriptPatterns

public IStringVector getScriptPatterns()
Description copied from interface: IScriptLoader
Gets the file patterns which should be used to find scripts for this class.

Specified by:
getScriptPatterns in interface IOverlayManager
Specified by:
getScriptPatterns in interface IScriptLoader

parseScript

public void parseScript(IDataStreamPtr stream,
                        java.lang.String groupName)
Description copied from interface: IScriptLoader
Parse a script file.

Specified by:
parseScript in interface IOverlayManager
Specified by:
parseScript in interface IScriptLoader

getLoadingOrder

public float getLoadingOrder()
Description copied from interface: IScriptLoader
Gets the relative loading order of scripts of this type.

Specified by:
getLoadingOrder in interface IOverlayManager
Specified by:
getLoadingOrder in interface IScriptLoader

create

public IOverlay create(java.lang.String name)
Create a new .

Specified by:
create in interface IOverlayManager

getByName

public IOverlay getByName(java.lang.String name)
Retrieve an by name

Specified by:
getByName in interface IOverlayManager

destroy

public void destroy(java.lang.String name)
Destroys an existing overlay by name

Specified by:
destroy in interface IOverlayManager

destroy

public void destroy(IOverlay overlay)
Destroys an existing overlay

Specified by:
destroy in interface IOverlayManager

destroyAll

public void destroyAll()
Destroys all existing overlays

Specified by:
destroyAll in interface IOverlayManager

getOverlayIterator

public void getOverlayIterator(IOverlayManager.IOverlayMapIterator returnValue)
Specified by:
getOverlayIterator in interface IOverlayManager

_queueOverlaysForRendering

public void _queueOverlaysForRendering(ICamera cam,
                                       IRenderQueue pQueue,
                                       IViewport vp)
Internal method for queueing the visible overlays for rendering.

Specified by:
_queueOverlaysForRendering in interface IOverlayManager

hasViewportChanged

public boolean hasViewportChanged()
Method for determining if the viewport has changed dimensions.

Specified by:
hasViewportChanged in interface IOverlayManager

getViewportHeight

public int getViewportHeight()
Gets the height of the destination viewport in pixels.

Specified by:
getViewportHeight in interface IOverlayManager

getViewportWidth

public int getViewportWidth()
Gets the width of the destination viewport in pixels.

Specified by:
getViewportWidth in interface IOverlayManager

getViewportAspectRatio

public float getViewportAspectRatio()
Specified by:
getViewportAspectRatio in interface IOverlayManager

createOverlayElement

public IOverlayElement createOverlayElement(java.lang.String typeName,
                                            java.lang.String instanceName,
                                            boolean isTemplate)
Creates a new of the type requested.

Specified by:
createOverlayElement in interface IOverlayManager

getOverlayElement

public IOverlayElement getOverlayElement(java.lang.String name,
                                         boolean isTemplate)
Gets a reference to an existing element.

Specified by:
getOverlayElement in interface IOverlayManager

destroyOverlayElement

public void destroyOverlayElement(java.lang.String instanceName,
                                  boolean isTemplate)
Destroys a .

Specified by:
destroyOverlayElement in interface IOverlayManager

destroyOverlayElement

public void destroyOverlayElement(IOverlayElement pInstance,
                                  boolean isTemplate)
Destroys a .

Specified by:
destroyOverlayElement in interface IOverlayManager

destroyAllOverlayElements

public void destroyAllOverlayElements(boolean isTemplate)
Destroys all the created so far.

Specified by:
destroyAllOverlayElements in interface IOverlayManager

addOverlayElementFactory

public void addOverlayElementFactory(IOverlayElementFactory elemFactory)
Registers a new with this manager.

Specified by:
addOverlayElementFactory in interface IOverlayManager

createOverlayElementFromTemplate

public IOverlayElement createOverlayElementFromTemplate(java.lang.String templateName,
                                                        java.lang.String typeName,
                                                        java.lang.String instanceName,
                                                        boolean isTemplate)
Specified by:
createOverlayElementFromTemplate in interface IOverlayManager

cloneOverlayElementFromTemplate

public IOverlayElement cloneOverlayElementFromTemplate(java.lang.String templateName,
                                                       java.lang.String instanceName)
Specified by:
cloneOverlayElementFromTemplate in interface IOverlayManager

createOverlayElementFromFactory

public IOverlayElement createOverlayElementFromFactory(java.lang.String typeName,
                                                       java.lang.String instanceName)
Specified by:
createOverlayElementFromFactory in interface IOverlayManager

getTemplateIterator

public void getTemplateIterator(IOverlayManager.ITemplateIterator returnValue)
Returns an iterator over all templates in this manager.

Specified by:
getTemplateIterator in interface IOverlayManager

isTemplate

public boolean isTemplate(java.lang.String strName)
Specified by:
isTemplate in interface IOverlayManager

getSingleton

public static IOverlayManager getSingleton()
Override standard retrieval.


getSingletonPtr

public static IOverlayManager getSingletonPtr()
Override standard retrieval.



Copyright © 2007 netAllied GmbH. All Rights Reserved.