|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
Representation of any type of fog in the system
| Field Summary | |
static int |
FOG_TYPE_DISABLE
Constant used to set the fog type to disabled. |
static int |
FOG_TYPE_EXPONENTIAL
Constant used to set the fog type to exponential. |
static int |
FOG_TYPE_LINEAR
Constant used to set the fog type to linear. |
| Method Summary | |
void |
getColor(float[] color)
Get the color of the current fog. |
int |
getFogType()
Get the currently set fog type. |
float |
getVisibilityRange()
Get the current visibility limit on the fog to be viewed. |
void |
setColor(float[] color)
Set the color of the current fog. |
void |
setFogType(int type)
Set the fog type to one of the new values. |
void |
setVisibilityRange(float range)
Set the visibility limit on the fog to be viewed to a new value. |
| Methods inherited from interface org.web3d.vrml.nodes.VRMLNodeType |
addNodeListener, getFieldValue, getMetadataObject, getRefCount, 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 |
| Field Detail |
public static final int FOG_TYPE_DISABLE
public static final int FOG_TYPE_LINEAR
public static final int FOG_TYPE_EXPONENTIAL
| Method Detail |
public void getColor(float[] color)
color - An array to copy the current color to
public void setColor(float[] color)
throws InvalidFieldValueException
color - The new colors to set
InvalidFieldValueException - The colour values were out of range.public float getVisibilityRange()
public void setVisibilityRange(float range)
throws InvalidFieldValueException
range - A non-negative number indicating the distance
InvalidFieldValueException - The number was negativepublic int getFogType()
public void setFogType(int type)
throws InvalidFieldValueException
type - Constant indicating the type. Should be one of
FOG_TYPE_LINEAR or FOG_TYPE_EXPONENTIAL
InvalidFieldValueException - The value type is unknown
|
Xj3D VRML/X3D Code API | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||