com.jme3.post.filters
クラス FogFilter

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

public class FogFilter
extends Filter

A filter to render a fog effect


入れ子のクラスの概要
 
クラス com.jme3.post.Filter から継承された入れ子のクラス/インタフェース
Filter.Pass
 
コンストラクタの概要
FogFilter()
          Creates a FogFilter
FogFilter(ColorRGBA fogColor, float fogDensity, float fogDistance)
          Create a fog filter
 
メソッドの概要
 ColorRGBA getFogColor()
          returns the fog color
 float getFogDensity()
          returns the fog density
 float getFogDistance()
          returns the fog distance
 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 setFogColor(ColorRGBA fogColor)
          Sets the color of the fog
 void setFogDensity(float fogDensity)
          Sets the density of the fog, a high value gives a thick fog
 void setFogDistance(float fogDistance)
          the distance of the fog. the higer the value the distant the fog looks
 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
 

コンストラクタの詳細

FogFilter

public FogFilter()
Creates a FogFilter


FogFilter

public FogFilter(ColorRGBA fogColor,
                 float fogDensity,
                 float fogDistance)
Create a fog filter

パラメータ:
fogColor - the color of the fog (default is white)
fogDensity - the density of the fog (default is 0.7)
fogDistance - the distance of the fog (default is 1000)
メソッドの詳細

getFogColor

public ColorRGBA getFogColor()
returns the fog color

戻り値:

setFogColor

public void setFogColor(ColorRGBA fogColor)
Sets the color of the fog

パラメータ:
fogColor -

getFogDensity

public float getFogDensity()
returns the fog density

戻り値:

setFogDensity

public void setFogDensity(float fogDensity)
Sets the density of the fog, a high value gives a thick fog

パラメータ:
fogColor -

getFogDistance

public float getFogDistance()
returns the fog distance

戻り値:

setFogDistance

public void setFogDistance(float fogDistance)
the distance of the fog. the higer the value the distant the fog looks

パラメータ:
fogDistance -

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