com.jme.light
Class PointLight

java.lang.Object
  extended bycom.jme.light.Light
      extended bycom.jme.light.PointLight
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
SpotLight

public class PointLight
extends Light

PointLight defines a light that has a location in space and emits light in all directions evenly. This would be something similar to a light bulb. Typically this light's values are attenuated based on the distance of the point light and the object it illuminates.

Version:
$Id: PointLight.java,v 1.3 2004/09/14 21:52:18 mojomonkey Exp $
Author:
Mark Powell
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jme.light.Light
LT_AMBIENT, LT_DIRECTIONAL, LT_POINT, LT_SPOT
 
Constructor Summary
PointLight()
          Constructor instantiates a new PointLight object.
 
Method Summary
 Vector3f getLocation()
          getLocation returns the position of this light.
 int getType()
          getType returns the type of this light (LT_POINT).
 void setLocation(Vector3f location)
          setLocation sets the position of the light.
 
Methods inherited from class com.jme.light.Light
getAmbient, getConstant, getDiffuse, getLinear, getQuadratic, getSpecular, isAttenuate, isEnabled, setAmbient, setAttenuate, setConstant, setDiffuse, setEnabled, setLinear, setQuadratic, setSpecular
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PointLight

public PointLight()
Constructor instantiates a new PointLight object. The initial position of the light is (0,0,0) and it's colors are white.

Method Detail

getLocation

public Vector3f getLocation()
getLocation returns the position of this light.

Returns:
the position of the light.

setLocation

public void setLocation(Vector3f location)
setLocation sets the position of the light.

Parameters:
location - the position of the light.

getType

public int getType()
getType returns the type of this light (LT_POINT).

Specified by:
getType in class Light
Returns:
the type of light that has been created.
See Also:
Light.getType()