|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.j3d.threeD.raytracer.engine.AbstractSurface
net.sf.j3d.threeD.raytracer.primitives.Plane
net.sf.j3d.threeD.raytracer.lighting.RectangularLight
public class RectangularLight
A RectangularLight object provides PointLight samples that are randomly distributed across the a plane surface. The location of the plane is used for the upper left corner of the area to sample.
| Field Summary |
|---|
| Fields inherited from class net.sf.j3d.threeD.raytracer.primitives.Plane |
|---|
XY, XZ, YZ |
| Fields inherited from interface net.sf.j3d.threeD.raytracer.lighting.Light |
|---|
castShadows |
| Constructor Summary | |
|---|---|
RectangularLight()
Constructs a new RectangularLight object. |
|
RectangularLight(double width,
double height)
Constructs a new RectangularLight object. |
|
| Method Summary | |
|---|---|
double |
getHeight()
|
double |
getIntensity()
Returns the intensity of this Light object as a double value. |
int |
getSampleCount()
|
Light[] |
getSamples()
|
Light[] |
getSamples(int total)
|
double |
getWidth()
|
void |
setHeight(double height)
Sets the height of the rectangular area of this RectangularLight object. |
void |
setIntensity(double intensity)
Sets the intensity of this Light object. |
void |
setSampleCount(int samples)
Sets the number of samples to use for this RectangularLight object. |
void |
setWidth(double width)
Sets the width of the rectangular area of this RectangularLight object. |
String |
toString()
|
| Methods inherited from class net.sf.j3d.threeD.raytracer.primitives.Plane |
|---|
getNormalAt, getParticleVertices, getType, intersect, intersectAt, setType |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface net.sf.j3d.threeD.raytracer.lighting.Light |
|---|
getColor, getColorAt, setColor |
| Constructor Detail |
|---|
public RectangularLight()
public RectangularLight(double width,
double height)
width - Width of rectangle.height - Hieght of rectangle.| Method Detail |
|---|
public void setSampleCount(int samples)
samples - public int getSampleCount()
public Light[] getSamples(int total)
getSamples in interface SurfaceLighttotal - Total number of samples to return.
SurfaceLight.getSamples(int)public Light[] getSamples()
getSamples in interface SurfaceLightSurfaceLight.getSamples()public void setWidth(double width)
public void setHeight(double height)
public double getWidth()
public double getHeight()
public void setIntensity(double intensity)
Light
setIntensity in interface LightLight.setIntensity(double)public double getIntensity()
Light
getIntensity in interface LightLight.getIntensity()public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||