All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.Light

java.lang.Object
   |
   +----vlc.vrml.generic.geometry.VrmlObject
           |
           +----vlc.vrml.internal.geometry.VrmlObject
                   |
                   +----vlc.vrml.internal.geometry.ChildrenNode
                           |
                           +----vlc.vrml.internal.geometry.Light

public abstract class Light
extends ChildrenNode
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 more information on the Light nodes and properties please see the VRML 97 specification Concepts section 4.14

The base class for all the lights.

Author:
Justin Couch justin@vlc.com.au
See Also:
DirectionalLight, PointLight, SpotLight

Variable Index

 o _ambientIntensity
 o _color
 o _intensity
 o _on
 o _set_ambientIntensity
 o _set_color
 o _set_intensity
 o _set_on

Constructor Index

 o Light()
Empty constructor to prevent people from creating this class
 o Light(Browser)
Constructor to pass the browser reference down to the base class

Method Index

 o get_ambientIntensity()
Get the ambient intensity that this light contributes to the scene.
 o get_color()
Get the colour this light emits
 o get_intensity()
Get the intensity that this light contributes to the scene.
 o get_on()
Gets the current setting of the light.
 o set_ambientIntensity(float)
Set the ambient intensity that this light contributes to the scene.
 o set_color(float[])
Set the colour this light emits
 o set_intensity(float)
Set the intensity that this light contributes to the scene.
 o set_on(boolean)
Turns the light on and off.

Variables

 o _set_ambientIntensity
 protected SFFloat _set_ambientIntensity
 o _set_color
 protected SFColor _set_color
 o _set_intensity
 protected SFFloat _set_intensity
 o _set_on
 protected SFBool _set_on
 o _ambientIntensity
 protected float _ambientIntensity
 o _color
 protected float _color[]
 o _intensity
 protected float _intensity
 o _on
 protected boolean _on

Constructors

 o Light
 protected Light()
Empty constructor to prevent people from creating this class

 o Light
 protected Light(Browser b)
Constructor to pass the browser reference down to the base class

Parameters:
b - The browser reference to be passed on

Methods

 o set_ambientIntensity
 public void set_ambientIntensity(float val)
Set the ambient intensity that this light contributes to the scene.

Parameters:
val - The intensity between 0 (none) and 1 (full)
 o get_ambientIntensity
 public float get_ambientIntensity()
Get the ambient intensity that this light contributes to the scene.

Returns:
The intensity between 0 (none) and 1 (full)
 o set_color
 public void set_color(float val[])
Set the colour this light emits

Parameters:
val - The new colour where val[0 = red, val[1] = green, val[2] = blue
 o get_color
 public float[] get_color()
Get the colour this light emits

Returns:
The new colour where val[0 = red, val[1] = green, val[2] = blue
 o set_intensity
 public void set_intensity(float val)
Set the intensity that this light contributes to the scene.

Parameters:
val - The intensity between 0 (none) and 1 (full)
 o get_intensity
 public float get_intensity()
Get the intensity that this light contributes to the scene.

Returns:
The intensity between 0 (none) and 1 (full)
 o set_on
 public void set_on(boolean val)
Turns the light on and off.

Parameters:
val - true to turn light on, false to turn off
 o get_on
 public boolean get_on()
Gets the current setting of the light.

Returns:
true if the light is on, false if not.

All Packages  Class Hierarchy  This Package  Previous  Next  Index