|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xbig.base.NativeObject
org.ogre4j.Compositor
public class Compositor
| Nested Class Summary | |
|---|---|
static class |
Compositor.TechniqueIterator
|
static class |
Compositor.Techniques
|
| Nested classes/interfaces inherited from interface org.ogre4j.ICompositor |
|---|
ICompositor.ITechniqueIterator, ICompositor.ITechniques |
| Nested classes/interfaces inherited from interface org.ogre4j.IResource |
|---|
IResource.IListener, IResource.IListenerList |
| Field Summary |
|---|
| Fields inherited from class org.xbig.base.NativeObject |
|---|
deleted, object, remote |
| Constructor Summary | |
|---|---|
|
Compositor(InstancePointer p)
This constructor is public for internal useage only! |
protected |
Compositor(InstancePointer p,
boolean remote)
Creates a Java wrapper object for an existing C++ object. |
|
Compositor(IResourceManager creator,
java.lang.String name,
long handle,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader)
|
|
Compositor(WithoutNativeObject val)
Allows creation of Java objects without C++ objects. |
| Method Summary | |
|---|---|
void |
_dirtyState()
Manually mark the state of this resource as having been changed. |
void |
_fireBackgroundLoadingComplete()
Firing of background loading complete event |
void |
_fireBackgroundPreparingComplete()
Firing of background preparing complete event |
void |
_notifyOrigin(java.lang.String origin)
|
void |
addListener(IResource.IListener lis)
Register a listener on this resource. |
void |
changeGroupOwnership(java.lang.String newGroup)
Change the resource group ownership of a . |
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. |
ICompositionTechnique |
createTechnique()
Create a new technique, and return a pointer to it. |
void |
delete()
Deletes the corresponding C++ object. |
void |
escalateLoading()
Escalates the loading of a background loaded resource. |
void |
finalize()
|
IResourceManager |
getCreator()
|
java.lang.String |
getGroup()
|
long |
getHandle()
|
Resource.LoadingState |
getLoadingState()
Returns the current loading state. |
java.lang.String |
getName()
Gets resource name. |
int |
getNumSupportedTechniques()
Get the number of supported techniques. |
int |
getNumTechniques()
Get the number of techniques. |
java.lang.String |
getOrigin()
Get the origin of this resource, e.g. a script file name. |
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. |
int |
getSize()
Retrieves info about the size of the resource. |
int |
getStateCount()
Returns the number of times this resource has changed state, which generally means the number of times it has been loaded. |
ICompositionTechnique |
getSupportedTechnique(int idx)
Get a supported technique. |
void |
getSupportedTechniqueIterator(ICompositor.ITechniqueIterator returnValue)
Gets an iterator over all the Techniques which are supported by the current card. |
ICompositionTechnique |
getTechnique(int idx)
Get a technique. |
void |
getTechniqueIterator(ICompositor.ITechniqueIterator returnValue)
Get an iterator over the Techniques in this compositor. |
boolean |
isBackgroundLoaded()
Returns whether this has been earmarked for background loading. |
boolean |
isLoaded()
Returns true if the has been loaded, false otherwise. |
boolean |
isLoading()
Returns whether the resource is currently in the process of background loading. |
boolean |
isManuallyLoaded()
Is this resource manually loaded? |
boolean |
isPrepared()
Returns true if the has been prepared, false otherwise. |
boolean |
isReloadable()
Returns true if the is reloadable, false otherwise. |
void |
load(boolean backgroundThread)
Loads the resource, if it is not already. |
void |
prepare()
Prepares the resource for load, if it is not already. |
void |
reload()
Reloads the resource, if it is already loaded. |
void |
removeAllTechniques()
Remove all techniques |
void |
removeListener(IResource.IListener lis)
Remove a listener on this resource. |
void |
removeTechnique(int idx)
Remove a technique. |
void |
setBackgroundLoaded(boolean bl)
Tells the resource whether it is background loaded or not. |
boolean |
setParameter(java.lang.String name,
java.lang.String value)
Generic parameter setting method. |
void |
setParameterList(INameValuePairList paramList)
Generic multiple parameter setting method. |
void |
touch()
'Touches' the resource to indicate it has been used. |
void |
unload()
Unloads the resource; this is not permanent, the resource can be reloaded later if required. |
| 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 Compositor(InstancePointer p)
protected Compositor(InstancePointer p,
boolean remote)
public Compositor(WithoutNativeObject val)
WithoutNativeObject,
INativeObject.disconnectFromNativeObject()
public Compositor(IResourceManager creator,
java.lang.String name,
long handle,
java.lang.String group,
boolean isManual,
IManualResourceLoader loader)
| 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 ICompositionTechnique createTechnique()
createTechnique in interface ICompositorpublic void removeTechnique(int idx)
removeTechnique in interface ICompositorpublic ICompositionTechnique getTechnique(int idx)
getTechnique in interface ICompositorpublic int getNumTechniques()
getNumTechniques in interface ICompositorpublic void removeAllTechniques()
removeAllTechniques in interface ICompositorpublic void getTechniqueIterator(ICompositor.ITechniqueIterator returnValue)
getTechniqueIterator in interface ICompositorpublic ICompositionTechnique getSupportedTechnique(int idx)
getSupportedTechnique in interface ICompositorpublic int getNumSupportedTechniques()
getNumSupportedTechniques in interface ICompositorpublic void getSupportedTechniqueIterator(ICompositor.ITechniqueIterator returnValue)
getSupportedTechniqueIterator in interface ICompositorpublic void prepare()
prepare in interface IResourcepublic void load(boolean backgroundThread)
load in interface IResourcepublic void reload()
reload in interface IResourcepublic boolean isReloadable()
isReloadable in interface IResourcepublic boolean isManuallyLoaded()
isManuallyLoaded in interface IResourcepublic void unload()
unload in interface IResourcepublic int getSize()
getSize in interface IResourcepublic void touch()
touch in interface IResourcepublic java.lang.String getName()
getName in interface IResourcepublic long getHandle()
getHandle in interface IResourcepublic boolean isPrepared()
isPrepared in interface IResourcepublic boolean isLoaded()
isLoaded in interface IResourcepublic boolean isLoading()
isLoading in interface IResourcepublic Resource.LoadingState getLoadingState()
getLoadingState in interface IResourcepublic boolean isBackgroundLoaded()
isBackgroundLoaded in interface IResourcepublic void setBackgroundLoaded(boolean bl)
setBackgroundLoaded in interface IResourcepublic void escalateLoading()
escalateLoading in interface IResourcepublic void addListener(IResource.IListener lis)
addListener in interface IResourcepublic void removeListener(IResource.IListener lis)
removeListener in interface IResourcepublic java.lang.String getGroup()
getGroup in interface IResourcepublic void changeGroupOwnership(java.lang.String newGroup)
changeGroupOwnership in interface IResourcepublic IResourceManager getCreator()
getCreator in interface IResourcepublic java.lang.String getOrigin()
getOrigin in interface IResourcepublic void _notifyOrigin(java.lang.String origin)
_notifyOrigin in interface IResourcepublic int getStateCount()
getStateCount in interface IResourcepublic void _dirtyState()
_dirtyState in interface IResourcepublic void _fireBackgroundLoadingComplete()
_fireBackgroundLoadingComplete in interface IResourcepublic void _fireBackgroundPreparingComplete()
_fireBackgroundPreparingComplete in interface IResourcepublic IParamDictionary getParamDictionary()
getParamDictionary in interface IStringInterfacepublic IParamDictionary getParamDictionary_const()
getParamDictionary_const in interface IStringInterfacepublic IParameterList getParameters()
getParameters in interface IStringInterface
public boolean setParameter(java.lang.String name,
java.lang.String value)
setParameter in interface IStringInterfacepublic void setParameterList(INameValuePairList paramList)
setParameterList in interface IStringInterfacepublic java.lang.String getParameter(java.lang.String name)
getParameter in interface IStringInterfacepublic void copyParametersTo(IStringInterface dest)
copyParametersTo in interface IStringInterfacepublic static void cleanupDictionary()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||