Package com.jme3.water
Class ReflectionProcessor
java.lang.Object
com.jme3.water.ReflectionProcessor
- All Implemented Interfaces:
- SceneProcessor
Reflection Processor
 Used to render the reflected scene in an off view port
- 
Constructor SummaryConstructorsConstructorDescriptionReflectionProcessor(Camera reflectionCam, FrameBuffer reflectionBuffer, Plane reflectionClipPlane) Creates a ReflectionProcessor
- 
Method SummaryModifier and TypeMethodDescriptionvoidcleanup()Called when the SP is removed from the RM.Internal use only
 returns the frame bufferreturns the reflection camreturns the reflection clip planevoidinitialize(RenderManager rm, ViewPort vp) Called in the render thread to initialize the scene processor.booleanvoidpostFrame(FrameBuffer out) Called after a frame has been rendered and the queue flushed.voidpostQueue(RenderQueue rq) Called after the scene graph has been queued, but before it is flushed.voidpreFrame(float tpf) Called before a framevoidCalled when the resolution of the viewport has been changed.voidsetProfiler(AppProfiler profiler) Sets a profiler Instance for this processor.voidsetReflectionBuffer(FrameBuffer reflectionBuffer) Internal use only
 sets the frame buffervoidsetReflectionCam(Camera reflectionCam) sets the reflection camvoidsetReflectionClipPlane(Plane reflectionClipPlane) Sets the reflection clip planeMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.jme3.post.SceneProcessorrescale
- 
Constructor Details- 
ReflectionProcessorpublic ReflectionProcessor(Camera reflectionCam, FrameBuffer reflectionBuffer, Plane reflectionClipPlane) Creates a ReflectionProcessor- Parameters:
- reflectionCam- the cam to use for reflection
- reflectionBuffer- the FrameBuffer to render to
- reflectionClipPlane- the clipping plane
 
 
- 
- 
Method Details- 
initializeDescription copied from interface:SceneProcessorCalled in the render thread to initialize the scene processor.- Specified by:
- initializein interface- SceneProcessor
- Parameters:
- rm- The render manager to which the SP was added to
- vp- The viewport to which the SP is assigned
 
- 
reshapeDescription copied from interface:SceneProcessorCalled when the resolution of the viewport has been changed.- Specified by:
- reshapein interface- SceneProcessor
- Parameters:
- vp- the affected ViewPort
- w- the new width (in pixels)
- h- the new height (in pixels)
 
- 
isInitializedpublic boolean isInitialized()- Specified by:
- isInitializedin interface- SceneProcessor
- Returns:
- True if initialize() has been called on this SceneProcessor, false if otherwise.
 
- 
preFramepublic void preFrame(float tpf) Description copied from interface:SceneProcessorCalled before a frame- Specified by:
- preFramein interface- SceneProcessor
- Parameters:
- tpf- Time per frame
 
- 
postQueueDescription copied from interface:SceneProcessorCalled after the scene graph has been queued, but before it is flushed.- Specified by:
- postQueuein interface- SceneProcessor
- Parameters:
- rq- The render queue
 
- 
postFrameDescription copied from interface:SceneProcessorCalled after a frame has been rendered and the queue flushed.- Specified by:
- postFramein interface- SceneProcessor
- Parameters:
- out- The FB to which the scene was rendered.
 
- 
cleanuppublic void cleanup()Description copied from interface:SceneProcessorCalled when the SP is removed from the RM.- Specified by:
- cleanupin interface- SceneProcessor
 
- 
setProfilerDescription copied from interface:SceneProcessorSets a profiler Instance for this processor.- Specified by:
- setProfilerin interface- SceneProcessor
- Parameters:
- profiler- the profiler instance.
 
- 
getReflectionBufferInternal use only
 returns the frame buffer- Returns:
- the pre-existing buffer
 
- 
setReflectionBufferInternal use only
 sets the frame buffer- Parameters:
- reflectionBuffer- the FrameBuffer to use (alias created)
 
- 
getReflectionCamreturns the reflection cam- Returns:
- the pre-existing Camera
 
- 
setReflectionCamsets the reflection cam- Parameters:
- reflectionCam- the Camera to use (alias created)
 
- 
getReflectionClipPlanereturns the reflection clip plane- Returns:
- the pre-existing instance
 
- 
setReflectionClipPlaneSets the reflection clip plane- Parameters:
- reflectionClipPlane- the Plane to use (alias created)
 
 
-