All Packages Class Hierarchy This Package Previous Next Index
Class vlc.vrml.external.geometry.SpotLight
java.lang.Object
|
+----vlc.vrml.generic.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.VrmlObject
|
+----vlc.vrml.external.geometry.ChildrenNode
|
+----vlc.vrml.external.geometry.Light
|
+----vlc.vrml.external.geometry.SpotLight
- public class SpotLight
- extends Light
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
-
SpotLight()
- Default Constructor.
-
SpotLight(Browser)
- Default Constructor when you wish to supply your own Browser reference.
-
clone()
- Make a clone of this object
-
get_attenuation()
- Get the attenuation coefficients
-
get_beamWidth()
- Get the current beam width of the light.
-
get_cutOffAngle()
- Get the cutoff angle of the light.
-
get_direction()
- Get the direction that this light is pointing.
-
get_location()
- Get the location of the light in the local coordinate system
-
get_radius()
- Get the current maximum radius of the light.
-
set_attenuation(float[])
- Set the attenuation coefficients
-
set_beamWidth(float)
- Set the beam width of the light.
-
set_cutOffAngle(float)
- Set the cutoff angle of the light.
-
set_direction(float[])
- Set the direction that this light is to point.
-
set_location(float[])
- Set the location of the light in the local coordinate system
-
set_radius(float)
- Set the maximum radius of the light.
-
writeToStream(int)
- Prints the formatted contents of this node to the given stream.
SpotLight
public SpotLight()
- Default Constructor. Creates a default SpotLight
SpotLight
public SpotLight(Browser b)
- Default Constructor when you wish to supply your own Browser reference.
Creates a default SpotLight
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
set_attenuation
public void set_attenuation(float val[])
- Set the attenuation coefficients
- Parameters:
- val - 3 values of the coefficients
get_attenuation
public float[] get_attenuation()
- Get the attenuation coefficients
- Returns:
- 3 values of the coefficients
set_location
public void set_location(float val[])
- Set the location of the light in the local coordinate system
- Parameters:
- val - The position where
val[0] = x, val[1] = y, val[2] = z
get_location
public float[] get_location()
- Get the location of the light in the local coordinate system
- Returns:
- The position where
val[0] = x, val[1] = y, val[2] = z
set_radius
public void set_radius(float val)
- Set the maximum radius of the light.
- Parameters:
- val - The radius in units
get_radius
public float get_radius()
- Get the current maximum radius of the light.
- Returns:
- The radius.
set_beamWidth
public void set_beamWidth(float val)
- Set the beam width of the light. This is the minimum angle for full
intensity of the light.
- Parameters:
- val - The angle from the centre direction in radians.
get_beamWidth
public float get_beamWidth()
- Get the current beam width of the light.
- Returns:
- The angle from the centre direction in radians.
set_cutOffAngle
public void set_cutOffAngle(float val)
- Set the cutoff angle of the light. This is the maximum angle for
displaying any lighting effects
- Parameters:
- val - The angle from the centre direction in radians.
get_cutOffAngle
public float get_cutOffAngle()
- Get the cutoff angle of the light.
- Returns:
- The angle from the centre direction in radians.
set_direction
public void set_direction(float val[])
- Set the direction that this light is to point. The vector points in
the required direction relative to the origin. From the default
viewpoint of looking along -Z a direction of -1 -1 -1 would shine
light from above your right shoulder
- Parameters:
- val - The direction. where val[0] = x, val[1] = y, val[2] = z
get_direction
public float[] get_direction()
- Get the direction that this light is pointing.
- Returns:
- The direction. where val[0] = x, val[1] = y, val[2] = z
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