org.metasyntactic.graphics.models
Class AmbientLightModel

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

public class AmbientLightModel
extends LocalShadeModel


Constructor Summary
AmbientLightModel()
          Creates a new instance of AmbientLightModel
AmbientLightModel(Color ambientColor)
           
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          View points toward the eye.
static AmbientLightModel fromXML(org.w3c.dom.Element element)
          Setter for property ambientLight.
 Color getAmbientColor()
          Getter for property ambientColor.
 void setAmbientColor(Color ambientColor)
          Setter for property ambientColor.
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AmbientLightModel

public AmbientLightModel()
Creates a new instance of AmbientLightModel


AmbientLightModel

public AmbientLightModel(Color ambientColor)
Method Detail

computeShade

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


getAmbientColor

public Color getAmbientColor()
Getter for property ambientColor.

Returns:
Value of property ambientColor.

setAmbientColor

public void setAmbientColor(Color ambientColor)
Setter for property ambientColor.

Parameters:
ambientColor - New value of property ambientColor.

fromXML

public static AmbientLightModel fromXML(org.w3c.dom.Element element)
Setter for property ambientLight.


toXML

public java.lang.String toXML()