|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--org.metasyntactic.graphics.models.LocalShadeModel
|
+--org.metasyntactic.graphics.models.SpecularModel
| Constructor Summary | |
SpecularModel()
Creates a new instance of SpecularModel |
|
SpecularModel(double mirrorReflectance)
|
|
| Method Summary | |
Color |
computeShade(Intersection intersection,
Vector view,
Scene scene)
View points toward the eye. |
static SpecularModel |
fromXML(org.w3c.dom.Element element)
|
double |
getMirrorReflectance()
Getter for property mirrorReflectance. |
double |
getSpecularReflection(Ray patch,
Vector view,
Light light)
|
void |
setMirrorReflectance(double mirrorReflectance)
Setter for property mirrorReflectance. |
java.lang.String |
toXML()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SpecularModel()
public SpecularModel(double mirrorReflectance)
| Method Detail |
public double getMirrorReflectance()
public void setMirrorReflectance(double mirrorReflectance)
mirrorReflectance - New value of property mirrorReflectance.
public Color computeShade(Intersection intersection,
Vector view,
Scene scene)
ShadeModel
public double getSpecularReflection(Ray patch,
Vector view,
Light light)
public static SpecularModel fromXML(org.w3c.dom.Element element)
public java.lang.String toXML()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||