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
-
_ambientIntensity
-
-
_color
-
-
_intensity
-
-
_on
-
-
_set_ambientIntensity
-
-
_set_color
-
-
_set_intensity
-
-
_set_on
-
-
Light()
- Empty constructor to prevent people from creating this class
-
Light(Browser)
- Constructor to pass the browser reference down to the base class
-
get_ambientIntensity()
- Get the ambient intensity that this light contributes to the scene.
-
get_color()
- Get the colour this light emits
-
get_intensity()
- Get the intensity that this light contributes to the scene.
-
get_on()
- Gets the current setting of the light.
-
set_ambientIntensity(float)
- Set the ambient intensity that this light contributes to the scene.
-
set_color(float[])
- Set the colour this light emits
-
set_intensity(float)
- Set the intensity that this light contributes to the scene.
-
set_on(boolean)
- Turns the light on and off.
_set_ambientIntensity
protected SFFloat _set_ambientIntensity
_set_color
protected SFColor _set_color
_set_intensity
protected SFFloat _set_intensity
_set_on
protected SFBool _set_on
_ambientIntensity
protected float _ambientIntensity
_color
protected float _color[]
_intensity
protected float _intensity
_on
protected boolean _on
Light
protected Light()
- Empty constructor to prevent people from creating this class
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
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)
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)
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
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
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)
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)
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
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