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, on
containerField
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, setOn
getContainerField, setContainerField
getClazz, getDEF, getIS, getMetadataObject, getUSE, setDEF, setIS, setMetadataObject, setUSE
protected SFVec3f attenuation
protected SFFloat beamWidth
protected SFFloat cutOffAngle
protected SFVec3f direction
protected SFVec3f location
protected SFFloat radius
protected SFBool global
public SFVec3f getAttenuation()
SFVec3f
public void setAttenuation(SFVec3f value)
value
- allowed object is
SFVec3f
public SFFloat getBeamWidth()
SFFloat
public void setBeamWidth(SFFloat value)
value
- allowed object is
SFFloat
public SFFloat getCutOffAngle()
SFFloat
public void setCutOffAngle(SFFloat value)
value
- allowed object is
SFFloat
public SFVec3f getDirection()
SFVec3f
public void setDirection(SFVec3f value)
value
- allowed object is
SFVec3f
public SFVec3f getLocation()
SFVec3f
public void setLocation(SFVec3f value)
value
- allowed object is
SFVec3f
public SFFloat getRadius()
Float
public void setRadius(SFFloat value)
value
- allowed object is
SFFloat
public SFBool isGlobal()
SFBool