org.ogre4j
Class ExternalTextureSourceManager

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ExternalTextureSourceManager
All Implemented Interfaces:
IAllocatedObject<IResourceAllocPolicy>, IExternalTextureSourceManager, IResourceAllocatedObject, ISingleton<IExternalTextureSourceManager>, INativeObject

public class ExternalTextureSourceManager
extends NativeObject
implements IExternalTextureSourceManager


Nested Class Summary
protected static class ExternalTextureSourceManager.TextureSystemList
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IExternalTextureSourceManager
IExternalTextureSourceManager.ITextureSystemList
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ExternalTextureSourceManager()
          Constructor
  ExternalTextureSourceManager(InstancePointer p)
          This constructor is public for internal useage only!
protected ExternalTextureSourceManager(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ExternalTextureSourceManager(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void delete()
          Deletes the corresponding C++ object.
 void destroyAdvancedTexture(java.lang.String sTextureName, java.lang.String groupName)
          Calls the destroy method of all registered plugins...
 void finalize()
           
 IExternalTextureSource getCurrentPlugIn()
          Returns currently selected plugin, may be null if none selected
 IExternalTextureSource getExternalTextureSource(java.lang.String sTexturePlugInType)
          Returns the plugin which reistered itself with a specific name (eg.
static IExternalTextureSourceManager getSingleton()
          Override standard retrieval.
static IExternalTextureSourceManager getSingletonPtr()
          Override standard retrieval.
 void setCurrentPlugIn(java.lang.String sTexturePlugInType)
          Sets active plugin (ie.
 void setExternalTextureSource(java.lang.String sTexturePlugInType, IExternalTextureSource pTextureSystem)
          Called from plugin to register itself
 
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

ExternalTextureSourceManager

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


ExternalTextureSourceManager

protected ExternalTextureSourceManager(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.


ExternalTextureSourceManager

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

ExternalTextureSourceManager

public ExternalTextureSourceManager()
Constructor

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

setCurrentPlugIn

public void setCurrentPlugIn(java.lang.String sTexturePlugInType)
Sets active plugin (ie. "video", "effect", "generic", etc..)

Specified by:
setCurrentPlugIn in interface IExternalTextureSourceManager

getCurrentPlugIn

public IExternalTextureSource getCurrentPlugIn()
Returns currently selected plugin, may be null if none selected

Specified by:
getCurrentPlugIn in interface IExternalTextureSourceManager

destroyAdvancedTexture

public void destroyAdvancedTexture(java.lang.String sTextureName,
                                   java.lang.String groupName)
Calls the destroy method of all registered plugins... Only the owner plugin should perform the destroy action.

Specified by:
destroyAdvancedTexture in interface IExternalTextureSourceManager

getExternalTextureSource

public IExternalTextureSource getExternalTextureSource(java.lang.String sTexturePlugInType)
Returns the plugin which reistered itself with a specific name (eg. "video"), or null if specified plugin not found

Specified by:
getExternalTextureSource in interface IExternalTextureSourceManager

setExternalTextureSource

public void setExternalTextureSource(java.lang.String sTexturePlugInType,
                                     IExternalTextureSource pTextureSystem)
Called from plugin to register itself

Specified by:
setExternalTextureSource in interface IExternalTextureSourceManager

getSingleton

public static IExternalTextureSourceManager getSingleton()
Override standard retrieval.


getSingletonPtr

public static IExternalTextureSourceManager getSingletonPtr()
Override standard retrieval.



Copyright © 2007 netAllied GmbH. All Rights Reserved.