org.metasyntactic.graphics.models
Class ReflectiveModel
java.lang.Object
|
+--org.metasyntactic.graphics.models.GlobalShadeModel
|
+--org.metasyntactic.graphics.models.ReflectiveModel
- All Implemented Interfaces:
- ShadeModel
- public class ReflectiveModel
- extends GlobalShadeModel
Constructor Summary |
ReflectiveModel()
Creates a new instance of ReflectiveModel |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
REFLECTIVE_MODEL
public static final ReflectiveModel REFLECTIVE_MODEL
ReflectiveModel
public ReflectiveModel()
- Creates a new instance of ReflectiveModel
fromXML
public static ShadeModel fromXML(org.w3c.dom.Element element)
computeShade
public Color computeShade(Intersection intersection,
Vector view,
Scene scene)
- Description copied from interface:
ShadeModel
- View points toward the eye.
getRefractionIndex
public double getRefractionIndex()
- Getter for property refractionIndex.
- Returns:
- Value of property refractionIndex.
setRefractionIndex
public void setRefractionIndex(double refractionIndex)
- Setter for property refractionIndex.
- Parameters:
refractionIndex
- New value of property refractionIndex.
toXML
public java.lang.String toXML()