|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--Light | +--PointLight
PointLight represents a light sources that illuminates from a fixed origin
Field Summary | |
Point |
Origin
Stores the origin of the point light. |
Fields inherited from class Light |
Intensity |
Constructor Summary | |
PointLight()
Create a default light. |
|
PointLight(Point p)
Create a new point light that at the given point. |
Method Summary | |
void |
print(SceneWriter os)
Print a human readable version of the light definition to the given destination |
void |
read(SceneReader is)
Read the light from the given source |
void |
write(SceneWriter os)
Write the light to the given destination |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public Point Origin
Constructor Detail |
public PointLight()
public PointLight(Point p)
p
- The position of the light.Method Detail |
public void read(SceneReader is) throws java.io.IOException, java.lang.NumberFormatException
read
in class Light
is
- The source to read from
java.io.IOException
- if the light can not be read
java.io.NumberFormatException
- if there a number format error is encountered
java.lang.NumberFormatException
public void write(SceneWriter os) throws java.io.IOException
write
in class Light
os
- The destination to write to
java.io.IOException
- if the write fails.public void print(SceneWriter os) throws java.io.IOException
print
in class Light
os
- The destination to write to
java.io.IOException
- if the write fails.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |