public interface DirectionalLight extends X3DLightNode
| Modifier and Type | Method and Description |
|---|---|
float |
getAmbientIntensity()
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.
|
float[] |
getDirection()
Provide array of 3-tuple float results from inputOutput SFVec3f field named direction.
|
boolean |
getGlobal()
Provide boolean value from inputOutput SFBool field named global.
|
float |
getIntensity()
Provide float value within allowed range of [0,1] from inputOutput SFFloat field named intensity.
|
X3DMetadataObject |
getMetadata()
Provide X3DMetadataObject instance (using a properly typed node) from inputOutput SFNode field metadata.
|
boolean |
getOn()
Provide boolean value from inputOutput SFBool field named on.
|
DirectionalLight |
setAmbientIntensity(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named ambientIntensity.
|
DirectionalLight |
setColor(float[] newValue)
Assign 3-tuple float array using RGB values [0..1] using RGB values [0..1] to inputOutput SFColor field named color.
|
DirectionalLight |
setCssClass(java.lang.String newValue)
Assign String value to inputOutput SFString field named class.
|
DirectionalLight |
setDEF(java.lang.String newValue)
Assign String value to inputOutput SFString field named DEF.
|
DirectionalLight |
setDirection(float[] newValue)
Assign 3-tuple float array to inputOutput SFVec3f field named direction.
|
DirectionalLight |
setGlobal(boolean newValue)
Assign boolean value to inputOutput SFBool field named global.
|
DirectionalLight |
setIntensity(float newValue)
Assign float value within allowed range of [0,1] to inputOutput SFFloat field named intensity.
|
DirectionalLight |
setMetadata(X3DMetadataObject newValue)
Assign X3DMetadataObject instance (using a properly typed node) to inputOutput SFNode field metadata.
|
DirectionalLight |
setOn(boolean newValue)
Assign boolean value to inputOutput SFBool field named on.
|
DirectionalLight |
setUSE(java.lang.String newValue)
Assign String value to inputOutput SFString field named USE.
|
float getAmbientIntensity()
getAmbientIntensity in interface X3DLightNodeDirectionalLight setAmbientIntensity(float newValue)
setAmbientIntensity in interface X3DLightNodenewValue - is new value for the ambientIntensity field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getColor()
getColor in interface X3DLightNodeDirectionalLight setColor(float[] newValue)
setColor in interface X3DLightNodenewValue - is new value for the color field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float[] getDirection()
DirectionalLight setDirection(float[] newValue)
newValue - is new value for the direction field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getGlobal()
DirectionalLight setGlobal(boolean newValue)
newValue - is new value for the global field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).float getIntensity()
getIntensity in interface X3DLightNodeDirectionalLight setIntensity(float newValue)
setIntensity in interface X3DLightNodenewValue - is new value for the intensity field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).X3DMetadataObject getMetadata()
getMetadata in interface X3DChildNodegetMetadata in interface X3DLightNodegetMetadata in interface X3DNodeDirectionalLight setMetadata(X3DMetadataObject newValue)
setMetadata in interface X3DChildNodesetMetadata in interface X3DLightNodesetMetadata in interface X3DNodenewValue - is new value for the metadata field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).boolean getOn()
getOn in interface X3DLightNodeDirectionalLight setOn(boolean newValue)
setOn in interface X3DLightNodenewValue - is new value for the on field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).DirectionalLight setDEF(java.lang.String newValue)
setDEF in interface X3DChildNodesetDEF in interface X3DLightNodesetDEF in interface X3DNodenewValue - is new value for the DEF field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).DirectionalLight setUSE(java.lang.String newValue)
USE node is still an independent object, with the USE value matching the DEF value in the preceding object.
setUSE() method on this node resets all other fields to their default values (except for containerField) and also releases all child nodes.setUSE in interface X3DChildNodesetUSE in interface X3DLightNodesetUSE in interface X3DNodenewValue - is new value for the USE field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).DirectionalLight setCssClass(java.lang.String newValue)
setCssClass in interface X3DChildNodesetCssClass in interface X3DLightNodesetCssClass in interface X3DNodenewValue - is new value for the class field.DirectionalLight - namely this same object to allow sequential method pipelining (i.e. consecutive method invocations on the same object).Copyright ©2005-2017 Web3D Consortium under an open-source license, free for any use. Feedback is welcome.