org.ogre4j
Class ExternalTextureSource

java.lang.Object
  extended by org.xbig.base.NativeObject
      extended by org.ogre4j.ExternalTextureSource
All Implemented Interfaces:
IExternalTextureSource, IStringInterface, INativeObject

public class ExternalTextureSource
extends NativeObject
implements IExternalTextureSource


Nested Class Summary
static class ExternalTextureSource.CmdFPS
           
static class ExternalTextureSource.CmdInputFileName
           
static class ExternalTextureSource.CmdPlayMode
           
static class ExternalTextureSource.CmdTecPassState
           
 
Nested classes/interfaces inherited from interface org.ogre4j.IExternalTextureSource
IExternalTextureSource.ICmdFPS, IExternalTextureSource.ICmdInputFileName, IExternalTextureSource.ICmdPlayMode, IExternalTextureSource.ICmdTecPassState
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  ExternalTextureSource(InstancePointer p)
          This constructor is public for internal useage only!
protected ExternalTextureSource(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  ExternalTextureSource(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 void addBaseParams()
          Call from derived classes to ensure the dictionary is setup
static void cleanupDictionary()
          Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes.
 void copyParametersTo(IStringInterface dest)
          Method for copying this object's parameters to another object.
 void createDefinedTexture(java.lang.String sMaterialName, java.lang.String groupName)
          Creates a texture into an already defined material or one that is created new (it's up to plugin to use a material or create one) Before calling, ensure that needed params have been defined via the stringInterface or regular methods
 void delete()
          Deletes the corresponding C++ object.
 void destroyAdvancedTexture(java.lang.String sTextureName, java.lang.String groupName)
          What this destroys is dependent on the plugin...
 void finalize()
           
 java.lang.String getDictionaryStringName()
          Returns dictionary name
 int getFPS()
           
 java.lang.String getInputName()
           
 IParamDictionary getParamDictionary_const()
           
 IParamDictionary getParamDictionary()
          Retrieves the parameter dictionary for this class.
 java.lang.String getParameter(java.lang.String name)
          Generic parameter retrieval method.
 IParameterList getParameters()
          Retrieves a list of parameters valid for this object.
 eTexturePlayMode getPlayMode()
           
 java.lang.String getPlugInStringName()
          Returns the string name of this PlugIn (as set by the PlugIn)
 void getTextureTecPassStateLevel(IntegerPointer t, IntegerPointer p, IntegerPointer s)
           
 boolean initialise()
          Call this function from manager to init system
 void setFPS(int iFPS)
           
 void setInputName(java.lang.String sIN)
           
 boolean setParameter(java.lang.String name, java.lang.String value)
          Generic parameter setting method.
 void setParameterList(INameValuePairList paramList)
          Generic multiple parameter setting method.
 void setPlayMode(eTexturePlayMode eMode)
           
 void setTextureTecPassStateLevel(int t, int p, int s)
           
 void shutDown()
          Shuts down PlugIn
 
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

ExternalTextureSource

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


ExternalTextureSource

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


ExternalTextureSource

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()
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

setInputName

public void setInputName(java.lang.String sIN)
Specified by:
setInputName in interface IExternalTextureSource

getInputName

public java.lang.String getInputName()
Specified by:
getInputName in interface IExternalTextureSource

setFPS

public void setFPS(int iFPS)
Specified by:
setFPS in interface IExternalTextureSource

getFPS

public int getFPS()
Specified by:
getFPS in interface IExternalTextureSource

setPlayMode

public void setPlayMode(eTexturePlayMode eMode)
Specified by:
setPlayMode in interface IExternalTextureSource

getPlayMode

public eTexturePlayMode getPlayMode()
Specified by:
getPlayMode in interface IExternalTextureSource

setTextureTecPassStateLevel

public void setTextureTecPassStateLevel(int t,
                                        int p,
                                        int s)
Specified by:
setTextureTecPassStateLevel in interface IExternalTextureSource

getTextureTecPassStateLevel

public void getTextureTecPassStateLevel(IntegerPointer t,
                                        IntegerPointer p,
                                        IntegerPointer s)
Specified by:
getTextureTecPassStateLevel in interface IExternalTextureSource

addBaseParams

public void addBaseParams()
Call from derived classes to ensure the dictionary is setup

Specified by:
addBaseParams in interface IExternalTextureSource

getPlugInStringName

public java.lang.String getPlugInStringName()
Returns the string name of this PlugIn (as set by the PlugIn)

Specified by:
getPlugInStringName in interface IExternalTextureSource

getDictionaryStringName

public java.lang.String getDictionaryStringName()
Returns dictionary name

Specified by:
getDictionaryStringName in interface IExternalTextureSource

initialise

public boolean initialise()
Call this function from manager to init system

Specified by:
initialise in interface IExternalTextureSource

shutDown

public void shutDown()
Shuts down PlugIn

Specified by:
shutDown in interface IExternalTextureSource

createDefinedTexture

public void createDefinedTexture(java.lang.String sMaterialName,
                                 java.lang.String groupName)
Creates a texture into an already defined material or one that is created new (it's up to plugin to use a material or create one) Before calling, ensure that needed params have been defined via the stringInterface or regular methods

Specified by:
createDefinedTexture in interface IExternalTextureSource

destroyAdvancedTexture

public void destroyAdvancedTexture(java.lang.String sTextureName,
                                   java.lang.String groupName)
What this destroys is dependent on the plugin... See specific plugin doc to know what is all destroyed (normally, plugins will destroy only what they created, or used directly - ie. just texture unit)

Specified by:
destroyAdvancedTexture in interface IExternalTextureSource

getParamDictionary

public IParamDictionary getParamDictionary()
Retrieves the parameter dictionary for this class.

Specified by:
getParamDictionary in interface IStringInterface

getParamDictionary_const

public IParamDictionary getParamDictionary_const()
Specified by:
getParamDictionary_const in interface IStringInterface

getParameters

public IParameterList getParameters()
Retrieves a list of parameters valid for this object.

Specified by:
getParameters in interface IStringInterface

setParameter

public boolean setParameter(java.lang.String name,
                            java.lang.String value)
Generic parameter setting method.

Specified by:
setParameter in interface IStringInterface

setParameterList

public void setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method.

Specified by:
setParameterList in interface IStringInterface

getParameter

public java.lang.String getParameter(java.lang.String name)
Generic parameter retrieval method.

Specified by:
getParameter in interface IStringInterface

copyParametersTo

public void copyParametersTo(IStringInterface dest)
Method for copying this object's parameters to another object.

Specified by:
copyParametersTo in interface IStringInterface

cleanupDictionary

public static void cleanupDictionary()
Cleans up the static 'msDictionary' required to reset , otherwise the containers are left with invalid pointers, which will lead to a crash as soon as one of the implementers (e.g. ) initializes.



Copyright © 2007 netAllied GmbH. All Rights Reserved.