material
Class PerfectReflectorSPF

java.lang.Object
  extended by material.PerfectReflectorSPF
All Implemented Interfaces:
ISPF

public class PerfectReflectorSPF
extends java.lang.Object
implements ISPF

spf of a perfect reflector material


Constructor Summary
PerfectReflectorSPF(IPainter ref)
          constructor
 
Method Summary
 RGBColor getRayColor(IntersectionInfo intersection)
          returns the color at intersection point
 void scatter(IntersectionInfo ri, ScatteredRayContainer scattered)
          Given parameters describing the intersection of a ray with a surface, this will return the reflected and transmitted rays along with attenuation factors.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerfectReflectorSPF

public PerfectReflectorSPF(IPainter ref)
constructor

Parameters:
ref - [in] diffuse reflection
Method Detail

scatter

public void scatter(IntersectionInfo ri,
                    ScatteredRayContainer scattered)
Description copied from interface: ISPF
Given parameters describing the intersection of a ray with a surface, this will return the reflected and transmitted rays along with attenuation factors.

Specified by:
scatter in interface ISPF
Parameters:
ri - [in] information of the point of intersection
scattered - [in/out] container with the scattered rays

getRayColor

public RGBColor getRayColor(IntersectionInfo intersection)
Description copied from interface: ISPF
returns the color at intersection point

Specified by:
getRayColor in interface ISPF
Parameters:
intersection - [in] information of the point of intersection
Returns:
the color at the intersection