com.jme3.light
クラス DirectionalLight

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

public class DirectionalLight
extends Light

DirectionalLight is a light coming from a certain direction in world space. E.g sun or moon light.

Directional lights have no specific position in the scene, they always come from their direction regardless of where an object is placed.


入れ子のクラスの概要
 
クラス com.jme3.light.Light から継承された入れ子のクラス/インタフェース
Light.Type
 
コンストラクタの概要
DirectionalLight()
           
 
メソッドの概要
 void computeLastDistance(Spatial owner)
          Used internally to compute the last distance value.
 Vector3f getDirection()
          Returns the direction vector of the light.
 Light.Type getType()
          Returns the light type
 void read(JmeImporter im)
           
 void setDirection(Vector3f dir)
          Sets the direction of the light.
 void write(JmeExporter ex)
           
 
クラス com.jme3.light.Light から継承されたメソッド
clone, getColor, getName, setColor, setName
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

DirectionalLight

public DirectionalLight()
メソッドの詳細

computeLastDistance

public void computeLastDistance(Spatial owner)
クラス Light の記述:
Used internally to compute the last distance value.


getDirection

public Vector3f getDirection()
Returns the direction vector of the light.

戻り値:
The direction vector of the light.
関連項目:
setDirection(com.jme3.math.Vector3f)

setDirection

public void setDirection(Vector3f dir)
Sets the direction of the light.

Represents the vector direction the light is coming from. (1, 0, 0) would represent a directional light coming from the X axis.

パラメータ:
dir - the direction of the light.

getType

public Light.Type getType()
クラス Light の記述:
Returns the light type

定義:
クラス Light 内の getType
戻り値:
the light type
関連項目:
Light.Type

write

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

read

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