org.ogre4j
Class CompositionTechnique

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

public class CompositionTechnique
extends NativeObject
implements ICompositionTechnique


Nested Class Summary
static class CompositionTechnique.TargetPasses
           
static class CompositionTechnique.TargetPassIterator
           
static class CompositionTechnique.TextureDefinition
           
static class CompositionTechnique.TextureDefinitionIterator
           
static class CompositionTechnique.TextureDefinitions
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ICompositionTechnique
ICompositionTechnique.IInstances, ICompositionTechnique.ITargetPasses, ICompositionTechnique.ITargetPassIterator, ICompositionTechnique.ITextureDefinition, ICompositionTechnique.ITextureDefinitionIterator, ICompositionTechnique.ITextureDefinitions
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  CompositionTechnique(ICompositor parent)
           
  CompositionTechnique(InstancePointer p)
          This constructor is public for internal useage only!
protected CompositionTechnique(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  CompositionTechnique(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 ICompositorInstance createInstance(ICompositorChain chain)
          Create an instance of this technique.
 ICompositionTargetPass createTargetPass()
          Create a new target pass, and return a pointer to it.
 ICompositionTechnique.ITextureDefinition createTextureDefinition(java.lang.String name)
          Create a new local texture definition, and return a pointer to it.
 void delete()
          Deletes the corresponding C++ object.
 void destroyInstance(ICompositorInstance instance)
          Destroy an instance of this technique.
 void finalize()
           
 int getNumTargetPasses()
          Get the number of target passes.
 int getNumTextureDefinitions()
          Get the number of local texture definitions.
 ICompositionTargetPass getOutputTargetPass()
          Get output (final) target pass
 ICompositor getParent()
          Get parent object
 ICompositionTargetPass getTargetPass(int idx)
          Get a target pass.
 void getTargetPassIterator(ICompositionTechnique.ITargetPassIterator returnValue)
          Get an iterator over the TargetPasses in this .
 ICompositionTechnique.ITextureDefinition getTextureDefinition(int idx)
          Get a local texture definition.
 void getTextureDefinitionIterator(ICompositionTechnique.ITextureDefinitionIterator returnValue)
          Get an iterator over the TextureDefinitions in this .
 boolean isSupported(boolean allowTextureDegradation)
          Determine if this technique is supported on the current rendering device.
 void removeAllTargetPasses()
          Remove all target passes.
 void removeAllTextureDefinitions()
          Remove all Definitions
 void removeTargetPass(int idx)
          Remove a target pass.
 void removeTextureDefinition(int idx)
          Remove and destroy a local texture definition.
 
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

CompositionTechnique

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


CompositionTechnique

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


CompositionTechnique

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

CompositionTechnique

public CompositionTechnique(ICompositor parent)
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

createTextureDefinition

public ICompositionTechnique.ITextureDefinition createTextureDefinition(java.lang.String name)
Create a new local texture definition, and return a pointer to it.

Specified by:
createTextureDefinition in interface ICompositionTechnique

removeTextureDefinition

public void removeTextureDefinition(int idx)
Remove and destroy a local texture definition.

Specified by:
removeTextureDefinition in interface ICompositionTechnique

getTextureDefinition

public ICompositionTechnique.ITextureDefinition getTextureDefinition(int idx)
Get a local texture definition.

Specified by:
getTextureDefinition in interface ICompositionTechnique

getNumTextureDefinitions

public int getNumTextureDefinitions()
Get the number of local texture definitions.

Specified by:
getNumTextureDefinitions in interface ICompositionTechnique

removeAllTextureDefinitions

public void removeAllTextureDefinitions()
Remove all Definitions

Specified by:
removeAllTextureDefinitions in interface ICompositionTechnique

getTextureDefinitionIterator

public void getTextureDefinitionIterator(ICompositionTechnique.ITextureDefinitionIterator returnValue)
Get an iterator over the TextureDefinitions in this .

Specified by:
getTextureDefinitionIterator in interface ICompositionTechnique

createTargetPass

public ICompositionTargetPass createTargetPass()
Create a new target pass, and return a pointer to it.

Specified by:
createTargetPass in interface ICompositionTechnique

removeTargetPass

public void removeTargetPass(int idx)
Remove a target pass. It will also be destroyed.

Specified by:
removeTargetPass in interface ICompositionTechnique

getTargetPass

public ICompositionTargetPass getTargetPass(int idx)
Get a target pass.

Specified by:
getTargetPass in interface ICompositionTechnique

getNumTargetPasses

public int getNumTargetPasses()
Get the number of target passes.

Specified by:
getNumTargetPasses in interface ICompositionTechnique

removeAllTargetPasses

public void removeAllTargetPasses()
Remove all target passes.

Specified by:
removeAllTargetPasses in interface ICompositionTechnique

getTargetPassIterator

public void getTargetPassIterator(ICompositionTechnique.ITargetPassIterator returnValue)
Get an iterator over the TargetPasses in this .

Specified by:
getTargetPassIterator in interface ICompositionTechnique

getOutputTargetPass

public ICompositionTargetPass getOutputTargetPass()
Get output (final) target pass

Specified by:
getOutputTargetPass in interface ICompositionTechnique

isSupported

public boolean isSupported(boolean allowTextureDegradation)
Determine if this technique is supported on the current rendering device.

Specified by:
isSupported in interface ICompositionTechnique

createInstance

public ICompositorInstance createInstance(ICompositorChain chain)
Create an instance of this technique.

Specified by:
createInstance in interface ICompositionTechnique

destroyInstance

public void destroyInstance(ICompositorInstance instance)
Destroy an instance of this technique.

Specified by:
destroyInstance in interface ICompositionTechnique

getParent

public ICompositor getParent()
Get parent object

Specified by:
getParent in interface ICompositionTechnique


Copyright © 2007 netAllied GmbH. All Rights Reserved.