|
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 VRMLFogNodeType
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, 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 |
| Field Detail |
|---|
static final int FOG_TYPE_DISABLE
static final int FOG_TYPE_LINEAR
static final int FOG_TYPE_EXPONENTIAL
| Method Detail |
|---|
void getColor(float[] color)
color - An array to copy the current color to
void setColor(float[] color)
throws InvalidFieldValueException
color - The new colors to set
InvalidFieldValueException - The colour values were out of range.float getVisibilityRange()
void setVisibilityRange(float range)
throws InvalidFieldValueException
range - A non-negative number indicating the distance
InvalidFieldValueException - The number was negativeint getFogType()
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 2.0 VRML/X3D Code API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||