All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.internal.geometry.Fog
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.VrmlObject
|
+----vlc.vrml.internal.geometry.ChildrenNode
|
+----vlc.vrml.internal.geometry.BindableNode
|
+----vlc.vrml.internal.geometry.Fog
- public class Fog
- extends BindableNode
JVerge
- Version:
- 0.8 (beta 4)
Copyright 1997
The Virtual Light Company
under the
GNU LGPL
The latest information and bugs in JVerge can be found at
http://www.vlc.com.au/JVerge
For definition of the Fog node please see the
VRML 97 Fog specification
- Author:
- Justin Couch justin@vlc.com.au
-
Fog()
- Default constructor.
-
Fog(Browser)
- Default constructor if you wish to use your own Browser reference.
-
clone()
- Make a clone of this object
-
get_color()
- Get the current fog color
-
get_fogType()
- Get the current fog type
-
get_visibilityRange()
- Get the current visiblity range of the fog
-
set_color(float[])
- Set the fog color
-
set_fogType(String)
- Set the Fog Type.
-
set_visibilityRange(float)
- Set the visiblity limit of the fog
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
Fog
public Fog()
- Default constructor. Creates a default Fog node
Fog
public Fog(Browser b)
- Default constructor if you wish to use your own Browser reference.
Creates a default Fog node
writeToStream
public void writeToStream(int indent)
- Prints the formatted contents of this node to the given stream.
- Parameters:
- indent - The number of spaces to indent this node in the string
- Overrides:
- writeToStream in class VrmlObject
set_color
public void set_color(float color[])
- Set the fog color
- Parameters:
- color. - The components of the fog color
color[0] = red, color[1] = green, color[2] = blue
get_color
public float[] get_color()
- Get the current fog color
- Returns:
- . The components of the current fog color
color[0] = red, color[1] = green, color[2] = blue
set_fogType
public void set_fogType(String type)
- Set the Fog Type. The default value is "LINEAR".
- Parameters:
- type - A string representing the model to be used for fog
effects. Can be LINEAR or EXPONENTIAL although other values are possible
depending on the browser
get_fogType
public String get_fogType()
- Get the current fog type
- Returns:
- A string describing the fog setting
set_visibilityRange
public void set_visibilityRange(float range)
- Set the visiblity limit of the fog
- Parameters:
- range - The maximum visible range distance
get_visibilityRange
public float get_visibilityRange()
- Get the current visiblity range of the fog
- Returns:
- The current range
clone
public Object clone()
- Make a clone of this object
- Returns:
- A deep clone copy of this object
- Overrides:
- clone in class VrmlObject
All Packages Class Hierarchy This Package Previous Next Index