|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.metasyntactic.graphics.shapes.Shape | +--org.metasyntactic.graphics.shapes.CartesianShape | +--org.metasyntactic.graphics.shapes.ReflectiveShape | +--org.metasyntactic.graphics.shapes.VolumetricShape | +--org.metasyntactic.graphics.lights.Light | +--org.metasyntactic.graphics.lights.SphereLight
Constructor Summary | |
SphereLight()
Creates a new instance of SphereLight |
Method Summary | |
static SphereLight |
fromXML(org.w3c.dom.Element element)
|
double |
getIntensity()
Getter for property intensity. |
double |
getIntensity(Point otherLocation)
|
Intersection |
getIntersection(Ray ray)
returns null if there is no intersection |
void |
setIntensity(double intensity)
Setter for property intensity. |
Methods inherited from class org.metasyntactic.graphics.shapes.VolumetricShape |
getDepth, getHeight, getWidth, setDepth, setHeight, setWidth |
Methods inherited from class org.metasyntactic.graphics.shapes.ReflectiveShape |
getShadeModel, setShadeModel |
Methods inherited from class org.metasyntactic.graphics.shapes.CartesianShape |
getIntersections, getPosition, setPosition |
Methods inherited from class org.metasyntactic.graphics.shapes.Shape |
getColor, setColor, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SphereLight()
Method Detail |
public double getIntensity()
getIntensity
in class Light
public void setIntensity(double intensity)
setIntensity
in class Light
intensity
- New value of property intensity.public double getIntensity(Point otherLocation)
getIntensity
in class Light
public static SphereLight fromXML(org.w3c.dom.Element element)
public Intersection getIntersection(Ray ray)
CartesianShape
getIntersection
in class CartesianShape
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |