|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.engine.AbstractSurface
threeD.raytracer.primitives.Sphere
threeD.raytracer.lighting.SphericalLight
A SphericalLight object provides PointLight samples that are randomly distributed across the surface of a sphere.
| Constructor Summary | |
SphericalLight()
Constructs a new SphericalLight object. |
|
SphericalLight(Vector location,
double radius)
Constructs a new SphericalLight object. |
|
| Method Summary | |
double |
getIntensity()
Returns the intensity of this Light object as a double value. |
double[][] |
getParticleVertices()
|
int |
getSampleCount()
|
Light[] |
getSamples()
|
Light[] |
getSamples(int total)
|
void |
setIntensity(double intensity)
Sets the intensity of this Light object. |
void |
setSampleCount(int samples)
Sets the number of samples to use for this SphericalLight object. |
java.lang.String |
toString()
|
| Methods inherited from class threeD.raytracer.primitives.Sphere |
getNormalAt, intersect, intersectAt |
| Methods inherited from class threeD.raytracer.engine.AbstractSurface |
addShader, addTexture, addTransform, calculateTransform, getColor, getColorAt, getLocation, getParent, getRotationCoefficients, getScaleCoefficients, getShadeBack, getShadeFront, getShaderSet, getSize, getTexture, getTextures, getTextureSet, getTransform, getTransform, getTransforms, removeTexture, removeTransform, setColor, setLocation, setParent, setRotationCoefficients, setScaleCoefficients, setShadeBack, setShadeFront, setShaders, setSize, setTexture, setTextures, setTransform, setTransforms, shade |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface threeD.raytracer.lighting.Light |
getColor, getColorAt, setColor |
| Constructor Detail |
public SphericalLight()
public SphericalLight(Vector location,
double radius)
location - Location for sphere.radius - Radius of sphere.| 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 setIntensity(double intensity)
Light
setIntensity in interface LightLight.setIntensity(double)public double getIntensity()
Light
getIntensity in interface LightLight.getIntensity()public double[][] getParticleVertices()
ParticleGroup.getParticleVertices()public java.lang.String toString()
|
Rings Version 0.3 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||