All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.Fog

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.external.geometry.VrmlObject
                   |
                   +----vlc.vrml.external.geometry.ChildrenNode
                           |
                           +----vlc.vrml.external.geometry.BindableNode
                                   |
                                   +----vlc.vrml.external.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 Anchor node please see the VRML 97 Anchor specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o Fog()
Default constructor.
 o Fog(Browser)
Default constructor if you wish to use your own Browser reference.

Method Index

 o clone()
Make a clone of this object
 o get_color()
Get the current fog color
 o get_fogType()
Get the current fog type
 o get_visibilityRange()
Get the current visiblity range of the fog
 o set_color(float[])
Set the fog color
 o set_fogType(String)
Set the Fog Type.
 o set_visibilityRange(float)
Set the visiblity limit of the fog
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o Fog
 public Fog()
Default constructor. Creates a default Fog node

 o Fog
 public Fog(Browser b)
Default constructor if you wish to use your own Browser reference. Creates a default Fog node

Methods

 o 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
 o 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
 o 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
 o 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
 o get_fogType
 public String get_fogType()
Get the current fog type

Returns:
A string describing the fog setting
 o set_visibilityRange
 public void set_visibilityRange(float range)
Set the visiblity limit of the fog

Parameters:
range - The maximum visible range distance
 o get_visibilityRange
 public float get_visibilityRange()
Get the current visiblity range of the fog

Returns:
The current range
 o 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