All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.generic.geometry.Light
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.generic.geometry.ChildrenNode
|
+----vlc.vrml.generic.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
-
-
Light()
- Empty constructor to prevent people from creating this class
-
clone()
- Make a clone of this object
-
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.
_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
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.
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