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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CHESS_BOARD
public static final TextureModel CHESS_BOARD
TextureModel
public TextureModel(TextureModel.Texture texture)
- Creates a new instance of TextureModel
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