org.metasyntactic.graphics.models
Class SpecularModel

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

public class SpecularModel
extends LocalShadeModel


Constructor Summary
SpecularModel()
          Creates a new instance of SpecularModel
SpecularModel(double mirrorReflectance)
           
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          View points toward the eye.
static SpecularModel fromXML(org.w3c.dom.Element element)
           
 double getMirrorReflectance()
          Getter for property mirrorReflectance.
 double getSpecularReflection(Ray patch, Vector view, Light light)
           
 void setMirrorReflectance(double mirrorReflectance)
          Setter for property mirrorReflectance.
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecularModel

public SpecularModel()
Creates a new instance of SpecularModel


SpecularModel

public SpecularModel(double mirrorReflectance)
Method Detail

getMirrorReflectance

public double getMirrorReflectance()
Getter for property mirrorReflectance.

Returns:
Value of property mirrorReflectance.

setMirrorReflectance

public void setMirrorReflectance(double mirrorReflectance)
Setter for property mirrorReflectance.

Parameters:
mirrorReflectance - New value of property mirrorReflectance.

computeShade

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


getSpecularReflection

public double getSpecularReflection(Ray patch,
                                    Vector view,
                                    Light light)

fromXML

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

toXML

public java.lang.String toXML()