com.jme3.light
クラス PointLight

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

public class PointLight
extends Light

Represents a point light. A point light emits light from a given position into all directions in space. E.g a lamp or a bright effect. Point light positions are in world space.

In addition to a position, point lights also have a radius which can be used to attenuate the influence of the light depending on the distance between the light and the effected object.


入れ子のクラスの概要
 
クラス com.jme3.light.Light から継承された入れ子のクラス/インタフェース
Light.Type
 
コンストラクタの概要
PointLight()
           
 
メソッドの概要
 void computeLastDistance(Spatial owner)
          Used internally to compute the last distance value.
 float getInvRadius()
          for internal use only
 Vector3f getPosition()
          Returns the world space position of the light.
 float getRadius()
          Returns the radius of the light influence.
 Light.Type getType()
          Returns the light type
 void read(JmeImporter im)
           
 void setPosition(Vector3f position)
          Set the world space position of the light.
 void setRadius(float radius)
          Set the radius of the light influence.
 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
 

コンストラクタの詳細

PointLight

public PointLight()
メソッドの詳細

computeLastDistance

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


getPosition

public Vector3f getPosition()
Returns the world space position of the light.

戻り値:
the world space position of the light.
関連項目:
setPosition(com.jme3.math.Vector3f)

setPosition

public void setPosition(Vector3f position)
Set the world space position of the light.

パラメータ:
position - the world space position of the light.

getRadius

public float getRadius()
Returns the radius of the light influence. A radius of 0 means the light has no attenuation.

戻り値:
the radius of the light

setRadius

public void setRadius(float radius)
Set the radius of the light influence.

Setting a non-zero radius indicates the light should use attenuation. If a pixel's distance to this light's position is greater than the light's radius, then the pixel will not be effected by this light, if the distance is less than the radius, then the magnitude of the influence is equal to distance / radius.

パラメータ:
radius - the radius of the light influence.
例外:
java.lang.IllegalArgumentException - If radius is negative

getInvRadius

public float getInvRadius()
for internal use only

戻り値:
the inverse of the radius

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