Class SAISpotLight
java.lang.Object
org.web3d.vrml.scripting.external.sai.SAINode
org.xj3d.sai.external.node.lighting.SAISpotLight
- All Implemented Interfaces:
SpotLight,X3DChildNode,X3DLightNode,X3DNode
A concrete implementation of the SpotLight node interface
- Version:
- $Revision: 1.1 $
- Author:
- Rex Melton
-
Constructor Summary
ConstructorsConstructorDescriptionSAISpotLight(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor -
Method Summary
Modifier and TypeMethodDescriptionfloatReturn the ambientIntensity float value.voidgetAttenuation(float[] val) Return the attenuation value in the argument float[]floatReturn the beamWidth float value.voidgetColor(float[] val) Return the color value in the argument float[]floatReturn the cutOffAngle float value.voidgetDirection(float[] val) Return the direction value in the argument float[]booleanReturn the global boolean value.floatReturn the intensity float value.voidgetLocation(float[] val) Return the location value in the argument float[]booleangetOn()Return the on boolean value.floatReturn the radius float value.voidsetAmbientIntensity(float val) Set the ambientIntensity field.voidsetAttenuation(float[] val) Set the attenuation field.voidsetBeamWidth(float val) Set the beamWidth field.voidsetColor(float[] val) Set the color field.voidsetCutOffAngle(float val) Set the cutOffAngle field.voidsetDirection(float[] val) Set the direction field.voidsetGlobal(boolean val) Set the global field.voidsetIntensity(float val) Set the intensity field.voidsetLocation(float[] val) Set the location field.voidsetOn(boolean val) Set the on field.voidsetRadius(float val) Set the radius field.Methods inherited from class org.web3d.vrml.scripting.external.sai.SAINode
dispose, equals, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, hashCode, isRealized, realize, setMetadataMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.web3d.x3d.sai.X3DNode
dispose, getField, getFieldDefinitions, getMetadata, getNodeName, getNodeType, isRealized, realize, setMetadata
-
Constructor Details
-
SAISpotLight
public SAISpotLight(VRMLNodeType node, SAINodeFactory nodeFactory, SAIFieldFactory fieldFactory, ExternalEventQueue queue) Constructor- Parameters:
queue-
-
-
Method Details
-
getAmbientIntensity
public float getAmbientIntensity()Return the ambientIntensity float value.- Specified by:
getAmbientIntensityin interfaceX3DLightNode- Returns:
- The ambientIntensity float value.
-
setAmbientIntensity
public void setAmbientIntensity(float val) Set the ambientIntensity field.- Specified by:
setAmbientIntensityin interfaceX3DLightNode- Parameters:
val- The float to set.
-
getColor
public void getColor(float[] val) Return the color value in the argument float[]- Specified by:
getColorin interfaceX3DLightNode- Parameters:
val- The float[] to initialize.
-
setColor
public void setColor(float[] val) Set the color field.- Specified by:
setColorin interfaceX3DLightNode- Parameters:
val- The float[] to set.
-
getIntensity
public float getIntensity()Return the intensity float value.- Specified by:
getIntensityin interfaceX3DLightNode- Returns:
- The intensity float value.
-
setIntensity
public void setIntensity(float val) Set the intensity field.- Specified by:
setIntensityin interfaceX3DLightNode- Parameters:
val- The float to set.
-
getOn
public boolean getOn()Return the on boolean value.- Specified by:
getOnin interfaceX3DLightNode- Returns:
- The on boolean value.
-
setOn
public void setOn(boolean val) Set the on field.- Specified by:
setOnin interfaceX3DLightNode- Parameters:
val- The boolean to set.
-
getGlobal
public boolean getGlobal()Return the global boolean value.- Specified by:
getGlobalin interfaceX3DLightNode- Returns:
- The global boolean value.
-
setGlobal
public void setGlobal(boolean val) Set the global field.- Specified by:
setGlobalin interfaceX3DLightNode- Parameters:
val- The boolean to set.
-
getAttenuation
public void getAttenuation(float[] val) Return the attenuation value in the argument float[]- Specified by:
getAttenuationin interfaceSpotLight- Parameters:
val- The float[] to initialize.
-
setAttenuation
public void setAttenuation(float[] val) Set the attenuation field.- Specified by:
setAttenuationin interfaceSpotLight- Parameters:
val- The float[] to set.
-
getBeamWidth
public float getBeamWidth()Return the beamWidth float value.- Specified by:
getBeamWidthin interfaceSpotLight- Returns:
- The beamWidth float value.
-
setBeamWidth
public void setBeamWidth(float val) Set the beamWidth field.- Specified by:
setBeamWidthin interfaceSpotLight- Parameters:
val- The float to set.
-
getCutOffAngle
public float getCutOffAngle()Return the cutOffAngle float value.- Specified by:
getCutOffAnglein interfaceSpotLight- Returns:
- The cutOffAngle float value.
-
setCutOffAngle
public void setCutOffAngle(float val) Set the cutOffAngle field.- Specified by:
setCutOffAnglein interfaceSpotLight- Parameters:
val- The float to set.
-
getDirection
public void getDirection(float[] val) Return the direction value in the argument float[]- Specified by:
getDirectionin interfaceSpotLight- Parameters:
val- The float[] to initialize.
-
setDirection
public void setDirection(float[] val) Set the direction field.- Specified by:
setDirectionin interfaceSpotLight- Parameters:
val- The float[] to set.
-
getLocation
public void getLocation(float[] val) Return the location value in the argument float[]- Specified by:
getLocationin interfaceSpotLight- Parameters:
val- The float[] to initialize.
-
setLocation
public void setLocation(float[] val) Set the location field.- Specified by:
setLocationin interfaceSpotLight- Parameters:
val- The float[] to set.
-
getRadius
-
setRadius
-