org.osm2world.core.target
Class Material

Object
  extended by Material

public class Material
extends Object

describes the material/surface properties of an object for lighting


Nested Class Summary
static class Material.Lighting
           
 
Field Summary
 float ambientFactor
           
 Color color
           
 float diffuseFactor
           
 Material.Lighting lighting
           
 
Constructor Summary
Material(Material.Lighting lighting, Color color)
           
Material(Material.Lighting lighting, Color color, float ambientFactor, float diffuseFactor)
           
 
Method Summary
 Color ambientColor()
           
 Color diffuseColor()
           
 boolean equals(Object obj)
           
 int hashCode()
           
 Material makeSmooth()
           
 String toString()
           
 
Methods inherited from class Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

lighting

public final Material.Lighting lighting

color

public final Color color

ambientFactor

public final float ambientFactor

diffuseFactor

public final float diffuseFactor
Constructor Detail

Material

public Material(Material.Lighting lighting,
                Color color,
                float ambientFactor,
                float diffuseFactor)

Material

public Material(Material.Lighting lighting,
                Color color)
Method Detail

ambientColor

public Color ambientColor()

diffuseColor

public Color diffuseColor()

makeSmooth

public Material makeSmooth()

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object