|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.jreality.scene.SceneGraphNode
de.jreality.scene.Light
de.jreality.scene.PointLight
de.jreality.scene.SpotLight
public class SpotLight
This is a spot light. The light direction is the z-axis. Other directions may be obtained by changing the transformation.
The cone angle is specified in radians. The distribution is an exponent specifying the distribution of the light directions around the axis. A value of 0 implies the light is evenly distributed around the axis.
Constructor Summary | |
---|---|
SpotLight()
|
|
SpotLight(String name)
|
Method Summary | |
---|---|
void |
accept(SceneGraphVisitor v)
The accept method for a SceneGraphVisitor. |
double |
getConeAngle()
|
double |
getConeDeltaAngle()
|
double |
getDistribution()
|
void |
setConeAngle(double coneAngle)
Sets the coneAngle. |
void |
setConeDeltaAngle(double coneDeltaAngle)
Sets the coneDeltaAngle. |
void |
setDistribution(double distribution)
Sets the distribution. |
Methods inherited from class de.jreality.scene.PointLight |
---|
getFalloffA0, getFalloffA1, getFalloffA2, getShadowMap, getShadowMapX, getShadowMapY, isUseShadowMap, setFalloff, setFalloff, setFalloffA0, setFalloffA1, setFalloffA2, setShadowMap, setShadowMapX, setShadowMapY, setUseShadowMap |
Methods inherited from class de.jreality.scene.Light |
---|
addLightListener, getColor, getIntensity, getScaledColorAsFloat, isAmbientFake, isGlobal, removeLightListener, setAmbientFake, setColor, setGlobal, setIntensity |
Methods inherited from class de.jreality.scene.SceneGraphNode |
---|
getName, getOwner, getThreadSafe, isReadOnly, setName, setOwner, setReadOnly, setThreadSafe, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SpotLight()
public SpotLight(String name)
Method Detail |
---|
public double getConeAngle()
public void setConeAngle(double coneAngle)
coneAngle
- The coneAngle to setpublic double getConeDeltaAngle()
public double getDistribution()
public void setConeDeltaAngle(double coneDeltaAngle)
coneDeltaAngle
- The coneDeltaAngle to setpublic void setDistribution(double distribution)
distribution
- The distribution to setpublic void accept(SceneGraphVisitor v)
SceneGraphNode
accept
in class PointLight
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |