public class SpotLight extends X3DLightNode
Java class for anonymous complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType>
<complexContent>
<extension base="{}X3DLightNode">
<attribute name="attenuation" type="{}SFVec3f" default="1 0 0" />
<attribute name="beamWidth" default="0.7854">
<simpleType>
<restriction base="{}SFFloat">
<minExclusive value="0"/>
<maxInclusive value="1.5708"/>
</restriction>
</simpleType>
</attribute>
<attribute name="cutOffAngle" default="1.5708">
<simpleType>
<restriction base="{}SFFloat">
<minExclusive value="0"/>
<maxInclusive value="1.5708"/>
</restriction>
</simpleType>
</attribute>
<attribute name="direction" type="{}SFVec3f" default="0 0 -1" />
<attribute name="location" type="{}SFVec3f" default="0 0 0" />
<attribute name="radius" default="100">
<simpleType>
<restriction base="{}SFFloat">
<minInclusive value="0"/>
</restriction>
</simpleType>
</attribute>
<attribute name="global" type="{}SFBool" default="true" />
</extension>
</complexContent>
</complexType>
| Modifier and Type | Field and Description |
|---|---|
protected SFVec3f |
attenuation |
protected SFFloat |
beamWidth |
protected SFFloat |
cutOffAngle |
protected SFVec3f |
direction |
protected SFBool |
global |
protected SFVec3f |
location |
protected SFFloat |
radius |
ambientIntensity, color, intensity, oncontainerField| Constructor and Description |
|---|
SpotLight() |
| Modifier and Type | Method and Description |
|---|---|
SFVec3f |
getAttenuation()
Gets the value of the attenuation property.
|
SFFloat |
getBeamWidth()
Gets the value of the beamWidth property.
|
SFFloat |
getCutOffAngle()
Gets the value of the cutOffAngle property.
|
SFVec3f |
getDirection()
Gets the value of the direction property.
|
SFVec3f |
getLocation()
Gets the value of the location property.
|
SFFloat |
getRadius()
Gets the value of the radius property.
|
SFBool |
isGlobal()
Gets the value of the global property.
|
void |
setAttenuation(SFVec3f value)
Sets the value of the attenuation property.
|
void |
setBeamWidth(SFFloat value)
Sets the value of the beamWidth property.
|
void |
setCutOffAngle(SFFloat value)
Sets the value of the cutOffAngle property.
|
void |
setDirection(SFVec3f value)
Sets the value of the direction property.
|
void |
setGlobal(SFBool value)
Sets the value of the global property.
|
void |
setLocation(SFVec3f value)
Sets the value of the location property.
|
void |
setRadius(SFFloat value)
Sets the value of the radius property.
|
getAmbientIntensity, getColor, getIntensity, isOn, setAmbientIntensity, setColor, setIntensity, setOngetContainerField, setContainerFieldgetClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSEprotected SFVec3f attenuation
protected SFFloat beamWidth
protected SFFloat cutOffAngle
protected SFVec3f direction
protected SFVec3f location
protected SFFloat radius
protected SFBool global
public SFVec3f getAttenuation()
SFVec3fpublic void setAttenuation(SFVec3f value)
value - allowed object is
SFVec3fpublic SFFloat getBeamWidth()
SFFloatpublic void setBeamWidth(SFFloat value)
value - allowed object is
SFFloatpublic SFFloat getCutOffAngle()
SFFloatpublic void setCutOffAngle(SFFloat value)
value - allowed object is
SFFloatpublic SFVec3f getDirection()
SFVec3fpublic void setDirection(SFVec3f value)
value - allowed object is
SFVec3fpublic SFVec3f getLocation()
SFVec3fpublic void setLocation(SFVec3f value)
value - allowed object is
SFVec3fpublic SFFloat getRadius()
Floatpublic void setRadius(SFFloat value)
value - allowed object is
SFFloatpublic SFBool isGlobal()
SFBool