org.metasyntactic.graphics.models
Class RefractiveModel

java.lang.Object
  |
  +--org.metasyntactic.graphics.models.RefractiveModel
All Implemented Interfaces:
ShadeModel

public class RefractiveModel
extends java.lang.Object
implements ShadeModel


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

RefractiveModel

public RefractiveModel()
Creates a new instance of RefractiveModel


RefractiveModel

public RefractiveModel(double refractionIndex)
Method Detail

computeShade

public Color computeShade(Intersection intersection,
                          Vector view,
                          Scene scene)
View points toward the eye.

Specified by:
computeShade in interface ShadeModel

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.

fromXML

public static RefractiveModel fromXML(org.w3c.dom.Element element)

toXML

public java.lang.String toXML()
Specified by:
toXML in interface ShadeModel