|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--org.metasyntactic.graphics.models.RefractiveModel
| Constructor Summary | |
RefractiveModel()
Creates a new instance of RefractiveModel |
|
RefractiveModel(double refractionIndex)
|
|
| Method Summary | |
Color |
computeShade(Intersection intersection,
Vector view,
Scene scene)
View points toward the eye. |
static RefractiveModel |
fromXML(org.w3c.dom.Element element)
|
double |
getRefractionIndex()
Getter for property refractionIndex. |
void |
setRefractionIndex(double refractionIndex)
Setter for property refractionIndex. |
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 RefractiveModel()
public RefractiveModel(double refractionIndex)
| Method Detail |
public Color computeShade(Intersection intersection,
Vector view,
Scene scene)
computeShade in interface ShadeModelpublic double getRefractionIndex()
public void setRefractionIndex(double refractionIndex)
refractionIndex - New value of property refractionIndex.public static RefractiveModel fromXML(org.w3c.dom.Element element)
public java.lang.String toXML()
toXML in interface ShadeModel
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||