Class SAIPointLight
java.lang.Object
org.web3d.vrml.scripting.sai.BaseNode
org.xj3d.sai.internal.node.lighting.SAIPointLight
- All Implemented Interfaces:
PointLight
,X3DChildNode
,X3DLightNode
,X3DNode
A concrete implementation of the PointLight node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Field Summary
Fields inherited from class org.web3d.vrml.scripting.sai.BaseNode
accessPermitted, fieldQueue, fieldRefMap, realNode
-
Constructor Summary
ConstructorsConstructorDescriptionSAIPointLight
(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfloat
Return the ambientIntensity float value.void
getAttenuation
(float[] val) Return the attenuation value in the argument float[]void
getColor
(float[] val) Return the color value in the argument float[]boolean
Return the global boolean value.float
Return the intensity float value.void
getLocation
(float[] val) Return the location value in the argument float[]boolean
getOn()
Return the on boolean value.float
Return the radius float value.void
setAmbientIntensity
(float val) Set the ambientIntensity field.void
setAttenuation
(float[] val) Set the attenuation field.void
setColor
(float[] val) Set the color field.void
setGlobal
(boolean val) Set the global field.void
setIntensity
(float val) Set the intensity field.void
setLocation
(float[] val) Set the location field.void
setOn
(boolean val) Set the on field.void
setRadius
(float val) Set the radius field.Methods inherited from class org.web3d.vrml.scripting.sai.BaseNode
checkAccess, dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadata, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAIPointLight
public SAIPointLight(VRMLNodeType node, ReferenceQueue<X3DField> refQueue, FieldFactory fac, FieldAccessListener fal, BaseNodeFactory bnf) Constructor- Parameters:
bnf
-
-
-
Method Details
-
getAmbientIntensity
public float getAmbientIntensity()Return the ambientIntensity float value.- Specified by:
getAmbientIntensity
in interfaceX3DLightNode
- Returns:
- The ambientIntensity float value.
-
setAmbientIntensity
public void setAmbientIntensity(float val) Set the ambientIntensity field.- Specified by:
setAmbientIntensity
in interfaceX3DLightNode
- Parameters:
val
- The float to set.
-
getColor
public void getColor(float[] val) Return the color value in the argument float[]- Specified by:
getColor
in interfaceX3DLightNode
- Parameters:
val
- The float[] to initialize.
-
setColor
public void setColor(float[] val) Set the color field.- Specified by:
setColor
in interfaceX3DLightNode
- Parameters:
val
- The float[] to set.
-
getIntensity
public float getIntensity()Return the intensity float value.- Specified by:
getIntensity
in interfaceX3DLightNode
- Returns:
- The intensity float value.
-
setIntensity
public void setIntensity(float val) Set the intensity field.- Specified by:
setIntensity
in interfaceX3DLightNode
- Parameters:
val
- The float to set.
-
getOn
public boolean getOn()Return the on boolean value.- Specified by:
getOn
in interfaceX3DLightNode
- Returns:
- The on boolean value.
-
setOn
public void setOn(boolean val) Set the on field.- Specified by:
setOn
in interfaceX3DLightNode
- Parameters:
val
- The boolean to set.
-
getGlobal
public boolean getGlobal()Return the global boolean value.- Specified by:
getGlobal
in interfaceX3DLightNode
- Returns:
- The global boolean value.
-
setGlobal
public void setGlobal(boolean val) Set the global field.- Specified by:
setGlobal
in interfaceX3DLightNode
- Parameters:
val
- The boolean to set.
-
getAttenuation
public void getAttenuation(float[] val) Return the attenuation value in the argument float[]- Specified by:
getAttenuation
in interfacePointLight
- Parameters:
val
- The float[] to initialize.
-
setAttenuation
public void setAttenuation(float[] val) Set the attenuation field.- Specified by:
setAttenuation
in interfacePointLight
- Parameters:
val
- The float[] to set.
-
getLocation
public void getLocation(float[] val) Return the location value in the argument float[]- Specified by:
getLocation
in interfacePointLight
- Parameters:
val
- The float[] to initialize.
-
setLocation
public void setLocation(float[] val) Set the location field.- Specified by:
setLocation
in interfacePointLight
- Parameters:
val
- The float[] to set.
-
getRadius
public float getRadius()Return the radius float value.- Specified by:
getRadius
in interfacePointLight
- Returns:
- The radius float value.
-
setRadius
public void setRadius(float val) Set the radius field.- Specified by:
setRadius
in interfacePointLight
- Parameters:
val
- The float to set.
-