|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectartofillusion.object.Object3D
artofillusion.object.Light
public abstract class Light
Light is an abstract class which represents a light source in a scene.
Field Summary | |
---|---|
static int |
TYPE_AMBIENT
This value for the light type represents a light which adds to the ambient light in the region it affects. |
static int |
TYPE_NORMAL
This value for the light type represents a normal light, one which only illuminates faces pointed toward it and which casts shadows. |
static int |
TYPE_SHADOWLESS
This value for the light type represents a light which does not cast shadows. |
Fields inherited from class artofillusion.object.Object3D |
---|
APPROXIMATELY, CANT_CONVERT, EXACTLY |
Constructor Summary | |
---|---|
Light()
|
|
Light(java.io.DataInputStream in,
Scene theScene)
|
Method Summary | |
---|---|
RGBColor |
getColor()
Get the color of the light. |
float |
getDecayRate()
Get the decay rate of the light. |
float |
getIntensity()
Get the intensity of the light. |
abstract void |
getLight(RGBColor light,
Vec3 position)
Get the attenuated light at a given position relative to the light source. |
int |
getType()
Get the type of light this object represents. |
void |
setColor(RGBColor color)
Set the color of the light. |
void |
setDecayRate(float rate)
Set the decay rate of the light. |
void |
setIntensity(float intensity)
Set the intensity of the light. |
void |
setParameters(RGBColor color,
float intensity,
int type,
float decayRate)
Set the parameters for this light. |
void |
setType(int type)
Set the type of light this object represents. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int TYPE_NORMAL
public static final int TYPE_SHADOWLESS
public static final int TYPE_AMBIENT
Constructor Detail |
---|
public Light()
public Light(java.io.DataInputStream in, Scene theScene) throws java.io.IOException, java.io.InvalidObjectException
java.io.IOException
java.io.InvalidObjectException
Method Detail |
---|
public void setParameters(RGBColor color, float intensity, int type, float decayRate)
public RGBColor getColor()
public void setColor(RGBColor color)
public float getIntensity()
public void setIntensity(float intensity)
public abstract void getLight(RGBColor light, Vec3 position)
public float getDecayRate()
public void setDecayRate(float rate)
public int getType()
public void setType(int type)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |