com.jme3.post
クラス FilterPostProcessor

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

public class FilterPostProcessor
extends java.lang.Object
implements SceneProcessor, Savable

A FilterPostProcessor is a processor that can apply several Filters to a rendered scene
It manages a list of filters that will be applied in the order in which they've been added to the list


コンストラクタの概要
FilterPostProcessor()
          Don't use this constructor use FilterPostProcessor(AssetManager assetManager)
This constructor is used for serialization only
FilterPostProcessor(AssetManager assetManager)
          Create a FilterProcessor
 
メソッドの概要
 void addFilter(Filter filter)
          Adds a filter to the filters list
 void cleanup()
          Called when the SP is removed from the RM.
 Texture2D getDepthTexture()
          For internal use only
returns the depth texture of the scene
 java.util.Iterator<Filter> getFilterIterator()
           
 Texture2D getFilterTexture()
          For internal use only
returns the rendered texture of the scene
 int getNumSamples()
          return the number of samples for antialiasing
 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 read(JmeImporter im)
           
 void removeAllFilters()
          Removes all the filters from this processor
 void removeFilter(Filter filter)
          removes this filters from the filters list
 void reshape(ViewPort vp, int w, int h)
          Called when the resolution of the viewport has been changed.
 void setAssetManager(AssetManager assetManager)
          Sets the asset manager for this processor
 void setNumSamples(int numSamples)
          Sets the number of samples for antialiasing
 void write(JmeExporter ex)
           
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FilterPostProcessor

public FilterPostProcessor(AssetManager assetManager)
Create a FilterProcessor

パラメータ:
assetManager - the assetManager

FilterPostProcessor

public FilterPostProcessor()
Don't use this constructor use FilterPostProcessor(AssetManager assetManager)
This constructor is used for serialization only

メソッドの詳細

addFilter

public void addFilter(Filter filter)
Adds a filter to the filters list

パラメータ:
filter - the filter to add

removeFilter

public void removeFilter(Filter filter)
removes this filters from the filters list

パラメータ:
filter -

getFilterIterator

public java.util.Iterator<Filter> getFilterIterator()

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

isInitialized

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

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.

preFrame

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

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

cleanup

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

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

reshape

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

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

getNumSamples

public int getNumSamples()
return the number of samples for antialiasing

戻り値:
numSamples

removeAllFilters

public void removeAllFilters()
Removes all the filters from this processor


setNumSamples

public void setNumSamples(int numSamples)
Sets the number of samples for antialiasing

パラメータ:
numSamples - the number of Samples

setAssetManager

public void setAssetManager(AssetManager assetManager)
Sets the asset manager for this processor

パラメータ:
assetManager -

write

public void write(JmeExporter ex)
           throws java.io.IOException
定義:
インタフェース Savable 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
定義:
インタフェース Savable 内の read
例外:
java.io.IOException

getDepthTexture

public Texture2D getDepthTexture()
For internal use only
returns the depth texture of the scene

戻り値:

getFilterTexture

public Texture2D getFilterTexture()
For internal use only
returns the rendered texture of the scene

戻り値: