org.ogre4j
Class CompositionTargetPass

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

public class CompositionTargetPass
extends NativeObject
implements ICompositionTargetPass


Nested Class Summary
static class CompositionTargetPass.InputMode
           
static class CompositionTargetPass.Passes
           
static class CompositionTargetPass.PassIterator
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ICompositionTargetPass
ICompositionTargetPass.IPasses, ICompositionTargetPass.IPassIterator
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  CompositionTargetPass(ICompositionTechnique parent)
           
  CompositionTargetPass(InstancePointer p)
          This constructor is public for internal useage only!
protected CompositionTargetPass(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  CompositionTargetPass(WithoutNativeObject val)
          Allows creation of Java objects without C++ objects.
 
Method Summary
 boolean _isSupported()
          Determine if this target pass is supported on the current rendering device.
 ICompositionPass createPass()
          Create a new pass, and return a pointer to it.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 CompositionTargetPass.InputMode getInputMode()
          Get input mode
 float getLodBias()
          Get the scene LOD bias used by this pass
 java.lang.String getMaterialScheme()
          Get the material scheme used by this target pass.
 int getNumPasses()
          Get the number of passes.
 boolean getOnlyInitial()
          Get "only initial" flag.
 java.lang.String getOutputName()
          Get output local texture name
 ICompositionTechnique getParent()
          Get parent object
 ICompositionPass getPass(int idx)
          Get a pass.
 void getPassIterator(ICompositionTargetPass.IPassIterator returnValue)
          Get an iterator over the Passes in this TargetPass.
 boolean getShadowsEnabled()
          Get whether shadows are enabled in this target pass.
 long getVisibilityMask()
          Get the scene visibility mask used by this pass
 void removeAllPasses()
          Remove all passes
 void removePass(int idx)
          Remove a pass.
 void setInputMode(CompositionTargetPass.InputMode mode)
          Set input mode of this TargetPass
 void setLodBias(float bias)
          Set the scene LOD bias used by this pass.
 void setMaterialScheme(java.lang.String schemeName)
          Set the material scheme used by this target pass.
 void setOnlyInitial(boolean value)
          Set "only initial" flag.
 void setOutputName(java.lang.String out)
          Set output local texture name
 void setShadowsEnabled(boolean enabled)
          Set whether shadows are enabled in this target pass.
 void setVisibilityMask(long mask)
          Set the scene visibility mask used by this pass
 
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

CompositionTargetPass

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


CompositionTargetPass

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


CompositionTargetPass

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

CompositionTargetPass

public CompositionTargetPass(ICompositionTechnique 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

setInputMode

public void setInputMode(CompositionTargetPass.InputMode mode)
Set input mode of this TargetPass

Specified by:
setInputMode in interface ICompositionTargetPass

getInputMode

public CompositionTargetPass.InputMode getInputMode()
Get input mode

Specified by:
getInputMode in interface ICompositionTargetPass

setOutputName

public void setOutputName(java.lang.String out)
Set output local texture name

Specified by:
setOutputName in interface ICompositionTargetPass

getOutputName

public java.lang.String getOutputName()
Get output local texture name

Specified by:
getOutputName in interface ICompositionTargetPass

setOnlyInitial

public void setOnlyInitial(boolean value)
Set "only initial" flag. This makes that this target pass is only executed initially after the effect has been enabled.

Specified by:
setOnlyInitial in interface ICompositionTargetPass

getOnlyInitial

public boolean getOnlyInitial()
Get "only initial" flag.

Specified by:
getOnlyInitial in interface ICompositionTargetPass

setVisibilityMask

public void setVisibilityMask(long mask)
Set the scene visibility mask used by this pass

Specified by:
setVisibilityMask in interface ICompositionTargetPass

getVisibilityMask

public long getVisibilityMask()
Get the scene visibility mask used by this pass

Specified by:
getVisibilityMask in interface ICompositionTargetPass

setMaterialScheme

public void setMaterialScheme(java.lang.String schemeName)
Set the material scheme used by this target pass.

Specified by:
setMaterialScheme in interface ICompositionTargetPass

getMaterialScheme

public java.lang.String getMaterialScheme()
Get the material scheme used by this target pass.

Specified by:
getMaterialScheme in interface ICompositionTargetPass

setShadowsEnabled

public void setShadowsEnabled(boolean enabled)
Set whether shadows are enabled in this target pass.

Specified by:
setShadowsEnabled in interface ICompositionTargetPass

getShadowsEnabled

public boolean getShadowsEnabled()
Get whether shadows are enabled in this target pass.

Specified by:
getShadowsEnabled in interface ICompositionTargetPass

setLodBias

public void setLodBias(float bias)
Set the scene LOD bias used by this pass. The default is 1.0, everything below that means lower quality, higher means higher quality.

Specified by:
setLodBias in interface ICompositionTargetPass

getLodBias

public float getLodBias()
Get the scene LOD bias used by this pass

Specified by:
getLodBias in interface ICompositionTargetPass

createPass

public ICompositionPass createPass()
Create a new pass, and return a pointer to it.

Specified by:
createPass in interface ICompositionTargetPass

removePass

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

Specified by:
removePass in interface ICompositionTargetPass

getPass

public ICompositionPass getPass(int idx)
Get a pass.

Specified by:
getPass in interface ICompositionTargetPass

getNumPasses

public int getNumPasses()
Get the number of passes.

Specified by:
getNumPasses in interface ICompositionTargetPass

removeAllPasses

public void removeAllPasses()
Remove all passes

Specified by:
removeAllPasses in interface ICompositionTargetPass

getPassIterator

public void getPassIterator(ICompositionTargetPass.IPassIterator returnValue)
Get an iterator over the Passes in this TargetPass.

Specified by:
getPassIterator in interface ICompositionTargetPass

getParent

public ICompositionTechnique getParent()
Get parent object

Specified by:
getParent in interface ICompositionTargetPass

_isSupported

public boolean _isSupported()
Determine if this target pass is supported on the current rendering device.

Specified by:
_isSupported in interface ICompositionTargetPass


Copyright © 2007 netAllied GmbH. All Rights Reserved.