org.metasyntactic.graphics.models
Class MultipleModel

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

public class MultipleModel
extends java.lang.Object
implements ShadeModel


Constructor Summary
MultipleModel(java.util.List shadeModels, java.util.List modelWeights)
          Creates a new instance of MultipleModel
 
Method Summary
 Color computeShade(Intersection intersection, Vector view, Scene scene)
          View points toward the eye.
static MultipleModel fromXML(org.w3c.dom.Element element)
           
 java.util.List getModelWeights()
          Getter for property modelWeights.
 java.util.List getShadeModels()
          Getter for property shadeModels.
 void setModelWeights(java.util.List modelWeights)
          Setter for property modelWeights.
 void setShadeModels(java.util.List shadeModels)
          Setter for property shadeModels.
 java.lang.String toXML()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MultipleModel

public MultipleModel(java.util.List shadeModels,
                     java.util.List modelWeights)
Creates a new instance of MultipleModel

Method Detail

getShadeModels

public java.util.List getShadeModels()
Getter for property shadeModels.

Returns:
Value of property shadeModels.

setShadeModels

public void setShadeModels(java.util.List shadeModels)
Setter for property shadeModels.

Parameters:
shadeModels - New value of property shadeModels.

getModelWeights

public java.util.List getModelWeights()
Getter for property modelWeights.

Returns:
Value of property modelWeights.

setModelWeights

public void setModelWeights(java.util.List modelWeights)
Setter for property modelWeights.

Parameters:
modelWeights - New value of property modelWeights.

computeShade

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

Specified by:
computeShade in interface ShadeModel

fromXML

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

toXML

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