org.metasyntactic.graphics.models
Class ShadowModel

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

public class ShadowModel
extends java.lang.Object
implements ShadeModel


Constructor Summary
ShadowModel(ShadeModel shadeModel)
          Creates a new instance of ShadowModel
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          View points toward the eye.
static ShadowModel fromXML(org.w3c.dom.Element element)
           
 double getCoverage()
          Getter for property coverage.
 ShadeModel getShadeModel()
          Getter for property shadeModel.
 void setCoverage(double coverage)
          Setter for property coverage.
 void setShadeModel(ShadeModel shadeModel)
          Setter for property shadeModel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.metasyntactic.graphics.models.ShadeModel
toXML
 

Constructor Detail

ShadowModel

public ShadowModel(ShadeModel shadeModel)
Creates a new instance of ShadowModel

Method Detail

getShadeModel

public ShadeModel getShadeModel()
Getter for property shadeModel.

Returns:
Value of property shadeModel.

setShadeModel

public void setShadeModel(ShadeModel shadeModel)
Setter for property shadeModel.

Parameters:
shadeModel - New value of property shadeModel.

computeShade

public Color computeShade(Intersection intersection,
                          Vector view,
                          Scene scene)
Description copied from interface: ShadeModel
View points toward the eye.

Specified by:
computeShade in interface ShadeModel

fromXML

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

getCoverage

public double getCoverage()
Getter for property coverage.

Returns:
Value of property coverage.

setCoverage

public void setCoverage(double coverage)
Setter for property coverage.

Parameters:
coverage - New value of property coverage.