|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface VRMLLightNodeType
An abstract representation of any form of light node.
| Method Summary | |
|---|---|
float |
getAmbientIntensity()
Get the current value of field ambientIntensity. |
float[] |
getColor()
Get the current value of field color. |
boolean |
getGlobal()
Accessor method to get current value of field global. |
float |
getIntensity()
Get the current value of field Intensity. |
boolean |
getOn()
Get the current value of field On. |
void |
setAmbientIntensity(float newAmbientIntensity)
Set the new value of the ambientIntensity field. |
void |
setColor(float[] newColor)
Set the new value of the color field. |
void |
setGlobal(boolean global)
Set the current value of the global field. |
void |
setIntensity(float newIntensity)
Get the current value of field Intensity |
void |
setOn(boolean newOn)
Set the value of field On. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
|---|
addNodeListener, clearRemovedLayerIds, getFieldValue, getLayerIds, getMetadataObject, getRefCount, getRemovedLayerIds, hasFieldChanged, isSetupFinished, notifyExternProtoLoaded, removeNodeListener, sendRoute, setDEF, setFrameStateManager, setMetadataObject, setupFinished, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, updateRefCount |
| Methods inherited from interface org.web3d.vrml.lang.VRMLNode |
|---|
getFieldDeclaration, getFieldIndex, getNodeFieldIndices, getNumFields, getPrimaryType, getSecondaryType, getUserData, getVRMLNodeName, isDEF, setErrorReporter, setUserData, setVersion |
| Methods inherited from interface org.web3d.vrml.nodes.FrameStateListener |
|---|
allEventsComplete |
| Method Detail |
|---|
float getAmbientIntensity()
float[] getColor()
float getIntensity()
boolean getOn()
boolean getGlobal()
void setAmbientIntensity(float newAmbientIntensity)
throws InvalidFieldValueException
newAmbientIntensity - A value between 0 and 1
InvalidFieldValueException - The value was out of the valid range
void setColor(float[] newColor)
throws InvalidFieldValueException
newColor - The new value. Each component must be between 0 and 1
InvalidFieldValueException - The value was out of the valid range
void setIntensity(float newIntensity)
throws InvalidFieldValueException
newIntensity - A value between 0 and 1
InvalidFieldValueException - The value was out of the valid rangevoid setOn(boolean newOn)
newOn - true will turn the light on, false to turn it off
void setGlobal(boolean global)
throws InvalidFieldException
global - true if this should have global effect, false for scoped
InvalidFieldException - Called on a node that belongs to VRML or
X3D 3.0.
|
Xj3D 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||