Package org.web3d.x3d.sai.Lighting
Interface X3DLightNode
- All Superinterfaces:
X3DChildNode,X3DNode
- All Known Subinterfaces:
DirectionalLight,PointLight,SpotLight
- All Known Implementing Classes:
DirectionalLightObject,PointLightObject,SpotLightObject
public interface X3DLightNode extends X3DChildNode
Light nodes provide illumination for rendering geometry in the scene. Implementing nodes must include a global field with type SFBool and accessType inputOutput.
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
Package hint: This interface is defined by the X3D Java Language Binding Specification for the Scene Authoring Interface (SAI).
-
Method Summary
Modifier and Type Method Description floatgetAmbientIntensity()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named ambientIntensity.float[]getColor()Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named color.floatgetIntensity()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named intensity.X3DMetadataObjectgetMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.booleangetOn()Provide boolean value from inputOutput SFBool field named on.X3DLightNodesetAmbientIntensity(float newValue)Accessor method to assign float value to inputOutput SFFloat field named ambientIntensity.X3DLightNodesetColor(float[] newValue)Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named color.X3DLightNodesetIntensity(float newValue)Accessor method to assign float value to inputOutput SFFloat field named intensity.X3DLightNodesetMetadata(X3DMetadataObject newValue)Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.X3DLightNodesetOn(boolean newValue)Accessor method to assign boolean value to inputOutput SFBool field named on.
-
Method Details
-
getAmbientIntensity
float getAmbientIntensity()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named ambientIntensity.- Returns:
- value of ambientIntensity field
-
setAmbientIntensity
Accessor method to assign float value to inputOutput SFFloat field named ambientIntensity.- Parameters:
newValue- is new value for the ambientIntensity field.- Returns:
X3DLightNode- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getColor
float[] getColor()Provide array of 3-tuple float results using RGB values [0..1] using RGB values [0..1] from inputOutput SFColor field named color.- Returns:
- value of color field
-
setColor
Accessor method to assign 3-tuple float array using RGB values [0..1] to inputOutput SFColor field named color.- Parameters:
newValue- is new value for the color field.- Returns:
X3DLightNode- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getIntensity
float getIntensity()Provide float value within allowed range of [0,1] from inputOutput SFFloat field named intensity.- Returns:
- value of intensity field
-
setIntensity
Accessor method to assign float value to inputOutput SFFloat field named intensity.- Parameters:
newValue- is new value for the intensity field.- Returns:
X3DLightNode- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-
getMetadata
X3DMetadataObject getMetadata()Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.- Specified by:
getMetadatain interfaceX3DChildNode- Specified by:
getMetadatain interfaceX3DNode- Returns:
- value of metadata field
- See Also:
- X3D Scene Authoring Hints: Metadata Nodes
-
setMetadata
Accessor method to assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.- Specified by:
setMetadatain interfaceX3DChildNode- Specified by:
setMetadatain interfaceX3DNode- Parameters:
newValue- is new value for the metadata field.- Returns:
X3DLightNode- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).- See Also:
- X3D Scene Authoring Hints: Metadata Nodes
-
getOn
boolean getOn()Provide boolean value from inputOutput SFBool field named on.- Returns:
- value of on field
-
setOn
Accessor method to assign boolean value to inputOutput SFBool field named on.- Parameters:
newValue- is new value for the on field.- Returns:
X3DLightNode- namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).
-