material
Class DielectricMaterial

java.lang.Object
  extended by material.DielectricMaterial
All Implemented Interfaces:
IMaterial

public class DielectricMaterial
extends java.lang.Object
implements IMaterial

simulates an dielectric material with
a index of refraction (IOR)
a transmission color
a scattering function
- the Phong exponent (if hg==false)
- the Henvey-Greenstein parameter (if hg==true)


Constructor Summary
DielectricMaterial(IPainter tau, IPainter ri, IPainter scat, boolean hg)
          constructor - Creates a dielectric material
 
Method Summary
 IBSDF getBSDF()
           
 IMaterial getCopy()
           
 IEmitter getEmitter()
           
 ISPF getSPF()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DielectricMaterial

public DielectricMaterial(IPainter tau,
                          IPainter ri,
                          IPainter scat,
                          boolean hg)
constructor - Creates a dielectric material

Parameters:
tau - Transmittance
ri - Index of refraction
scat - Scattering function (either Phong or HG)
hg - use Henyey-Greenstein phase function scattering
Method Detail

getBSDF

public IBSDF getBSDF()
Specified by:
getBSDF in interface IMaterial
Returns:
null since a dielectric material has no diffuse reflection

getSPF

public ISPF getSPF()
Specified by:
getSPF in interface IMaterial
Returns:
the scattering function

getEmitter

public IEmitter getEmitter()
Specified by:
getEmitter in interface IMaterial
Returns:
the emission properties for this material
null if there is not an emitter

getCopy

public IMaterial getCopy()
Specified by:
getCopy in interface IMaterial
Returns:
a copy of the material