Rings
Version 0.3

threeD.raytracer.lighting
Interface SurfaceLight

All Superinterfaces:
Light
All Known Implementing Classes:
RectangularLight, SphericalLight

public interface SurfaceLight
extends Light

A SurfaceLight implementation represents a light that can be represented by some (possible infinite) set of other Light objects. A correct implementation should be able to return any number of samples (Light objects) that are well distributed and representitive of the surface. Factoring in number of samples to create an intensity value for each sample will be handled by the ray tracing engine.


Method Summary
 Light[] getSamples()
           
 Light[] getSamples(int total)
           
 
Methods inherited from interface threeD.raytracer.lighting.Light
getColor, getColorAt, getIntensity, setColor, setIntensity
 

Method Detail

getSamples

public Light[] getSamples(int total)
Parameters:
total - Total number of samples to return.
Returns:
An array containing samples for this SurfaceLight instance.

getSamples

public Light[] getSamples()
Returns:
An array containing samples for this SurfaceLight instance.

Rings
Version 0.3

Copyright 2003-05 Mike Murray