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


Field Summary
static ReflectiveModel REFLECTIVE_MODEL
           
 
Constructor Summary
ReflectiveModel()
          Creates a new instance of ReflectiveModel
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          View points toward the eye.
static ShadeModel 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
 

Field Detail

REFLECTIVE_MODEL

public static final ReflectiveModel REFLECTIVE_MODEL
Constructor Detail

ReflectiveModel

public ReflectiveModel()
Creates a new instance of ReflectiveModel

Method Detail

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()