org.metasyntactic.graphics.models
Class TextureModel

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

public class TextureModel
extends java.lang.Object
implements ShadeModel


Nested Class Summary
static interface TextureModel.Texture
           
 
Field Summary
static TextureModel CHESS_BOARD
           
 
Constructor Summary
TextureModel(TextureModel.Texture texture)
          Creates a new instance of TextureModel
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          View points toward the eye.
static TextureModel fromXML(org.w3c.dom.Element element)
           
 TextureModel.Texture getTexture()
          Getter for property texture.
 void setTexture(TextureModel.Texture texture)
          Setter for property texture.
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CHESS_BOARD

public static final TextureModel CHESS_BOARD
Constructor Detail

TextureModel

public TextureModel(TextureModel.Texture texture)
Creates a new instance of TextureModel

Method Detail

computeShade

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

Specified by:
computeShade in interface ShadeModel

getTexture

public TextureModel.Texture getTexture()
Getter for property texture.

Returns:
Value of property texture.

setTexture

public void setTexture(TextureModel.Texture texture)
Setter for property texture.

Parameters:
texture - New value of property texture.

fromXML

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

toXML

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