All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.external.geometry.Light
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.ChildrenNode
|
+----vlc.vrml.external.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 definition of the Anchor node please see the
VRML 97 Anchor specification
Light abstract class. The base class for all the lights.
- Author:
- Justin Couch justin@vlc.com.au
-
_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 EventInSFFloat _set_ambientIntensity
_set_color
protected EventInSFColor _set_color
_set_intensity
protected EventInSFFloat _set_intensity
_set_on
protected EventInSFBool _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