com.jme3.water
クラス ReflectionProcessor

java.lang.Object
  上位を拡張 com.jme3.water.ReflectionProcessor
すべての実装されたインタフェース:
SceneProcessor

public class ReflectionProcessor
extends java.lang.Object
implements SceneProcessor

Reflection Processor Used to render the reflected scene in an off view port


コンストラクタの概要
ReflectionProcessor(Camera reflectionCam, FrameBuffer reflectionBuffer, Plane reflectionClipPlane)
          Creates a ReflectionProcessor
 
メソッドの概要
 void cleanup()
          Called when the SP is removed from the RM.
 FrameBuffer getReflectionBuffer()
          Internal use only
returns the frame buffer
 Camera getReflectionCam()
          returns the reflection cam
 Plane getReflectionClipPlane()
          returns the reflection clip plane
 void initialize(RenderManager rm, ViewPort vp)
          Called in the render thread to initialize the scene processor.
 boolean isInitialized()
           
 void postFrame(FrameBuffer out)
          Called after a frame has been rendered and the queue flushed.
 void postQueue(RenderQueue rq)
          Called after the scene graph has been queued, but before it is flushed.
 void preFrame(float tpf)
          Called before a frame
 void reshape(ViewPort vp, int w, int h)
          Called when the resolution of the viewport has been changed.
 void setReflectionBuffer(FrameBuffer reflectionBuffer)
          Internal use only
sets the frame buffer
 void setReflectionCam(Camera reflectionCam)
          sets the reflection cam
 void setReflectionClipPlane(Plane reflectionClipPlane)
          Sets the reflection clip plane
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

ReflectionProcessor

public ReflectionProcessor(Camera reflectionCam,
                           FrameBuffer reflectionBuffer,
                           Plane reflectionClipPlane)
Creates a ReflectionProcessor

パラメータ:
reflectionCam - the cam to use for reflection
reflectionBuffer - the FrameBuffer to render to
reflectionClipPlane - the clipping plane
メソッドの詳細

initialize

public void initialize(RenderManager rm,
                       ViewPort vp)
インタフェース SceneProcessor の記述:
Called in the render thread to initialize the scene processor.

定義:
インタフェース SceneProcessor 内の initialize
パラメータ:
rm - The render manager to which the SP was added to
vp - The viewport to which the SP is assigned

reshape

public void reshape(ViewPort vp,
                    int w,
                    int h)
インタフェース SceneProcessor の記述:
Called when the resolution of the viewport has been changed.

定義:
インタフェース SceneProcessor 内の reshape

isInitialized

public boolean isInitialized()
定義:
インタフェース SceneProcessor 内の isInitialized
戻り値:
True if initialize() has been called on this SceneProcessor, false if otherwise.

preFrame

public void preFrame(float tpf)
インタフェース SceneProcessor の記述:
Called before a frame

定義:
インタフェース SceneProcessor 内の preFrame
パラメータ:
tpf - Time per frame

postQueue

public void postQueue(RenderQueue rq)
インタフェース SceneProcessor の記述:
Called after the scene graph has been queued, but before it is flushed.

定義:
インタフェース SceneProcessor 内の postQueue
パラメータ:
rq - The render queue

postFrame

public void postFrame(FrameBuffer out)
インタフェース SceneProcessor の記述:
Called after a frame has been rendered and the queue flushed.

定義:
インタフェース SceneProcessor 内の postFrame
パラメータ:
out - The FB to which the scene was rendered.

cleanup

public void cleanup()
インタフェース SceneProcessor の記述:
Called when the SP is removed from the RM.

定義:
インタフェース SceneProcessor 内の cleanup

getReflectionBuffer

public FrameBuffer getReflectionBuffer()
Internal use only
returns the frame buffer

戻り値:

setReflectionBuffer

public void setReflectionBuffer(FrameBuffer reflectionBuffer)
Internal use only
sets the frame buffer

パラメータ:
reflectionBuffer -

getReflectionCam

public Camera getReflectionCam()
returns the reflection cam

戻り値:

setReflectionCam

public void setReflectionCam(Camera reflectionCam)
sets the reflection cam

パラメータ:
reflectionCam -

getReflectionClipPlane

public Plane getReflectionClipPlane()
returns the reflection clip plane

戻り値:

setReflectionClipPlane

public void setReflectionClipPlane(Plane reflectionClipPlane)
Sets the reflection clip plane

パラメータ:
reflectionClipPlane -