com.jme3.post.filters
クラス FadeFilter

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

public class FadeFilter
extends Filter

Fade Filter allows you to make an animated fade effect on a scene.


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
FadeFilter()
          Creates a FadeFilter
FadeFilter(float duration)
          Creates a FadeFilter with the given duration
 
メソッドの概要
 void fadeIn()
          fades the scene in (black to scene)
 void fadeOut()
          fades the scene out (scene to black)
 float getDuration()
          returns the duration of the effect
 float getValue()
          return the current value of the fading can be used to chack if fade is complete (eg value=1)
 void read(JmeImporter im)
          Override this method if you want to load extra properties when the filter is loaded else only basic properties of the filter will be loaded This method should always begin by super.read(im);
 void setDuration(float duration)
          Sets the duration of the filter default is 1 second
 void setValue(float value)
          sets the fade value can be used to force complete black or compete scene
 void write(JmeExporter ex)
          Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved This method should always begin by super.write(ex);
 
クラス com.jme3.post.Filter から継承されたメソッド
getName, isEnabled, setEnabled, setName
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

FadeFilter

public FadeFilter()
Creates a FadeFilter


FadeFilter

public FadeFilter(float duration)
Creates a FadeFilter with the given duration

パラメータ:
duration -
メソッドの詳細

getDuration

public float getDuration()
returns the duration of the effect

戻り値:

setDuration

public void setDuration(float duration)
Sets the duration of the filter default is 1 second

パラメータ:
duration -

fadeIn

public void fadeIn()
fades the scene in (black to scene)


fadeOut

public void fadeOut()
fades the scene out (scene to black)


write

public void write(JmeExporter ex)
           throws java.io.IOException
クラス Filter の記述:
Override this method if you want to save extra properties when the filter is saved else only basic properties of the filter will be saved This method should always begin by super.write(ex);

定義:
インタフェース Savable 内の write
オーバーライド:
クラス Filter 内の write
例外:
java.io.IOException

read

public void read(JmeImporter im)
          throws java.io.IOException
クラス Filter の記述:
Override this method if you want to load extra properties when the filter is loaded else only basic properties of the filter will be loaded This method should always begin by super.read(im);

定義:
インタフェース Savable 内の read
オーバーライド:
クラス Filter 内の read
例外:
java.io.IOException

getValue

public float getValue()
return the current value of the fading can be used to chack if fade is complete (eg value=1)

戻り値:

setValue

public void setValue(float value)
sets the fade value can be used to force complete black or compete scene

パラメータ:
value -