org.ogre4j
Class CompositionPass

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

public class CompositionPass
extends NativeObject
implements ICompositionPass


Nested Class Summary
static class CompositionPass.InputTex
           
static class CompositionPass.PassType
           
 
Nested classes/interfaces inherited from interface org.ogre4j.ICompositionPass
ICompositionPass.IInputTex
 
Field Summary
 
Fields inherited from class org.xbig.base.NativeObject
deleted, object, remote
 
Constructor Summary
  CompositionPass(ICompositionTargetPass parent)
           
  CompositionPass(InstancePointer p)
          This constructor is public for internal useage only!
protected CompositionPass(InstancePointer p, boolean remote)
          Creates a Java wrapper object for an existing C++ object.
  CompositionPass(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.
 void clearAllInputs()
          Clear all inputs.
 void delete()
          Deletes the corresponding C++ object.
 void finalize()
           
 long getClearBuffers()
          Get the viewport clear buffers.
 IColourValue getClearColour()
          Get the viewport clear colour (defaults to 0,0,0,0)
 float getClearDepth()
          Get the viewport clear depth (defaults to 1.0)
 long getClearStencil()
          Get the viewport clear stencil value (defaults to 0)
 short getFirstRenderQueue()
          Get the first render queue to be rendered in this pass (inclusive)
 long getIdentifier()
          Get the identifier for this pass
 ICompositionPass.IInputTex getInput(int id)
          Get the value of an input.
 short getLastRenderQueue()
          Get the last render queue to be rendered in this pass (inclusive)
 IMaterialPtr getMaterial()
          Get the material used by this pass
 int getNumInputs()
          Get the number of inputs used.
 ICompositionTargetPass getParent()
          Get parent object
 boolean getQuadCorners(FloatPointer left, FloatPointer top, FloatPointer right, FloatPointer bottom)
          Get quad normalised positions [-1;1]x[-1;1]
 boolean getStencilCheck()
          Get stencil check enable.
 StencilOperation getStencilDepthFailOp()
          Get stencil depth fail operation.
 StencilOperation getStencilFailOp()
          Get stencil fail operation.
 CompareFunction getStencilFunc()
          Get stencil compare function.
 long getStencilMask()
          Get stencil mask.
 StencilOperation getStencilPassOp()
          Get stencil pass operation.
 long getStencilRefValue()
          Get stencil reference value.
 boolean getStencilTwoSidedOperation()
          Get two sided stencil operation.
 CompositionPass.PassType getType()
          Get the type of composition pass
 void setClearBuffers(long val)
          Set the viewport clear buffers (defaults to FBT_COLOUR|FBT_DEPTH)
 void setClearColour(IColourValue val)
          Set the viewport clear colour (defaults to 0,0,0,0)
 void setClearDepth(float depth)
          Set the viewport clear depth (defaults to 1.0)
 void setClearStencil(long value)
          Set the viewport clear stencil value (defaults to 0)
 void setFirstRenderQueue(short id)
          Set the first render queue to be rendered in this pass (inclusive)
 void setIdentifier(long id)
          Set an identifier for this pass.
 void setInput(int id, java.lang.String input, int mrtIndex)
          Set an input local texture.
 void setLastRenderQueue(short id)
          Set the last render queue to be rendered in this pass (inclusive)
 void setMaterial(IMaterialPtr mat)
          Set the material used by this pass
 void setMaterialName(java.lang.String name)
          Set the material used by this pass
 void setQuadCorners(float left, float top, float right, float bottom)
          Set quad normalised positions [-1;1]x[-1;1]
 void setStencilCheck(boolean value)
          Set stencil check on or off.
 void setStencilDepthFailOp(StencilOperation value)
          Set stencil depth fail operation.
 void setStencilFailOp(StencilOperation value)
          Set stencil fail operation.
 void setStencilFunc(CompareFunction value)
          Set stencil compare function.
 void setStencilMask(long value)
          Set stencil mask.
 void setStencilPassOp(StencilOperation value)
          Set stencil pass operation.
 void setStencilRefValue(long value)
          Set stencil reference value.
 void setStencilTwoSidedOperation(boolean value)
          Set two sided stencil operation.
 void setType(CompositionPass.PassType type)
          Set the type of composition 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

CompositionPass

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


CompositionPass

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


CompositionPass

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

See Also:
WithoutNativeObject, INativeObject.disconnectFromNativeObject()

CompositionPass

public CompositionPass(ICompositionTargetPass 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

setType

public void setType(CompositionPass.PassType type)
Set the type of composition pass

Specified by:
setType in interface ICompositionPass

getType

public CompositionPass.PassType getType()
Get the type of composition pass

Specified by:
getType in interface ICompositionPass

setIdentifier

public void setIdentifier(long id)
Set an identifier for this pass. This identifier can be used to "listen in" on this pass with an .

Specified by:
setIdentifier in interface ICompositionPass

getIdentifier

public long getIdentifier()
Get the identifier for this pass

Specified by:
getIdentifier in interface ICompositionPass

setMaterial

public void setMaterial(IMaterialPtr mat)
Set the material used by this pass

Specified by:
setMaterial in interface ICompositionPass

setMaterialName

public void setMaterialName(java.lang.String name)
Set the material used by this pass

Specified by:
setMaterialName in interface ICompositionPass

getMaterial

public IMaterialPtr getMaterial()
Get the material used by this pass

Specified by:
getMaterial in interface ICompositionPass

setFirstRenderQueue

public void setFirstRenderQueue(short id)
Set the first render queue to be rendered in this pass (inclusive)

Specified by:
setFirstRenderQueue in interface ICompositionPass

getFirstRenderQueue

public short getFirstRenderQueue()
Get the first render queue to be rendered in this pass (inclusive)

Specified by:
getFirstRenderQueue in interface ICompositionPass

setLastRenderQueue

public void setLastRenderQueue(short id)
Set the last render queue to be rendered in this pass (inclusive)

Specified by:
setLastRenderQueue in interface ICompositionPass

getLastRenderQueue

public short getLastRenderQueue()
Get the last render queue to be rendered in this pass (inclusive)

Specified by:
getLastRenderQueue in interface ICompositionPass

setClearBuffers

public void setClearBuffers(long val)
Set the viewport clear buffers (defaults to FBT_COLOUR|FBT_DEPTH)

Specified by:
setClearBuffers in interface ICompositionPass

getClearBuffers

public long getClearBuffers()
Get the viewport clear buffers.

Specified by:
getClearBuffers in interface ICompositionPass

setClearColour

public void setClearColour(IColourValue val)
Set the viewport clear colour (defaults to 0,0,0,0)

Specified by:
setClearColour in interface ICompositionPass

getClearColour

public IColourValue getClearColour()
Get the viewport clear colour (defaults to 0,0,0,0)

Specified by:
getClearColour in interface ICompositionPass

setClearDepth

public void setClearDepth(float depth)
Set the viewport clear depth (defaults to 1.0)

Specified by:
setClearDepth in interface ICompositionPass

getClearDepth

public float getClearDepth()
Get the viewport clear depth (defaults to 1.0)

Specified by:
getClearDepth in interface ICompositionPass

setClearStencil

public void setClearStencil(long value)
Set the viewport clear stencil value (defaults to 0)

Specified by:
setClearStencil in interface ICompositionPass

getClearStencil

public long getClearStencil()
Get the viewport clear stencil value (defaults to 0)

Specified by:
getClearStencil in interface ICompositionPass

setStencilCheck

public void setStencilCheck(boolean value)
Set stencil check on or off.

Specified by:
setStencilCheck in interface ICompositionPass

getStencilCheck

public boolean getStencilCheck()
Get stencil check enable.

Specified by:
getStencilCheck in interface ICompositionPass

setStencilFunc

public void setStencilFunc(CompareFunction value)
Set stencil compare function.

Specified by:
setStencilFunc in interface ICompositionPass

getStencilFunc

public CompareFunction getStencilFunc()
Get stencil compare function.

Specified by:
getStencilFunc in interface ICompositionPass

setStencilRefValue

public void setStencilRefValue(long value)
Set stencil reference value.

Specified by:
setStencilRefValue in interface ICompositionPass

getStencilRefValue

public long getStencilRefValue()
Get stencil reference value.

Specified by:
getStencilRefValue in interface ICompositionPass

setStencilMask

public void setStencilMask(long value)
Set stencil mask.

Specified by:
setStencilMask in interface ICompositionPass

getStencilMask

public long getStencilMask()
Get stencil mask.

Specified by:
getStencilMask in interface ICompositionPass

setStencilFailOp

public void setStencilFailOp(StencilOperation value)
Set stencil fail operation.

Specified by:
setStencilFailOp in interface ICompositionPass

getStencilFailOp

public StencilOperation getStencilFailOp()
Get stencil fail operation.

Specified by:
getStencilFailOp in interface ICompositionPass

setStencilDepthFailOp

public void setStencilDepthFailOp(StencilOperation value)
Set stencil depth fail operation.

Specified by:
setStencilDepthFailOp in interface ICompositionPass

getStencilDepthFailOp

public StencilOperation getStencilDepthFailOp()
Get stencil depth fail operation.

Specified by:
getStencilDepthFailOp in interface ICompositionPass

setStencilPassOp

public void setStencilPassOp(StencilOperation value)
Set stencil pass operation.

Specified by:
setStencilPassOp in interface ICompositionPass

getStencilPassOp

public StencilOperation getStencilPassOp()
Get stencil pass operation.

Specified by:
getStencilPassOp in interface ICompositionPass

setStencilTwoSidedOperation

public void setStencilTwoSidedOperation(boolean value)
Set two sided stencil operation.

Specified by:
setStencilTwoSidedOperation in interface ICompositionPass

getStencilTwoSidedOperation

public boolean getStencilTwoSidedOperation()
Get two sided stencil operation.

Specified by:
getStencilTwoSidedOperation in interface ICompositionPass

setInput

public void setInput(int id,
                     java.lang.String input,
                     int mrtIndex)
Set an input local texture. An empty string clears the input.

Specified by:
setInput in interface ICompositionPass

getInput

public ICompositionPass.IInputTex getInput(int id)
Get the value of an input.

Specified by:
getInput in interface ICompositionPass

getNumInputs

public int getNumInputs()
Get the number of inputs used.

Specified by:
getNumInputs in interface ICompositionPass

clearAllInputs

public void clearAllInputs()
Clear all inputs.

Specified by:
clearAllInputs in interface ICompositionPass

getParent

public ICompositionTargetPass getParent()
Get parent object

Specified by:
getParent in interface ICompositionPass

_isSupported

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

Specified by:
_isSupported in interface ICompositionPass

setQuadCorners

public void setQuadCorners(float left,
                           float top,
                           float right,
                           float bottom)
Set quad normalised positions [-1;1]x[-1;1]

Specified by:
setQuadCorners in interface ICompositionPass

getQuadCorners

public boolean getQuadCorners(FloatPointer left,
                              FloatPointer top,
                              FloatPointer right,
                              FloatPointer bottom)
Get quad normalised positions [-1;1]x[-1;1]

Specified by:
getQuadCorners in interface ICompositionPass


Copyright © 2007 netAllied GmbH. All Rights Reserved.