All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.internal.geometry.PointLight

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

public class PointLight
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 PointLight node please see the VRML 97 PointLight specification

Author:
Justin Couch justin@vlc.com.au

Constructor Index

 o PointLight()
Default Constructor.
 o PointLight(Browser)
Default Constructor when you wish to supply your own Browser reference.

Method Index

 o clone()
Make a clone of this object
 o get_attenuation()
Get the attenuation coefficients
 o get_location()
Get the location of the light in the local coordinate system
 o get_radius()
Get the current maximum radius of the light.
 o set_attenuation(float[])
Set the attenuation coefficients
 o set_location(float[])
Set the location of the light in the local coordinate system
 o set_radius(float)
Set the maximum radius of the light.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

 o PointLight
 public PointLight()
Default Constructor. Creates a default PointLight

 o PointLight
 public PointLight(Browser b)
Default Constructor when you wish to supply your own Browser reference. Creates a default PointLight

Methods

 o 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
 o set_attenuation
 public void set_attenuation(float val[])
Set the attenuation coefficients

Parameters:
val - 3 values of the coefficients
 o get_attenuation
 public float[] get_attenuation()
Get the attenuation coefficients

Returns:
3 values of the coefficients
 o 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
 o 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
 o set_radius
 public void set_radius(float val)
Set the maximum radius of the light.

Parameters:
val - The radius in units
 o get_radius
 public float get_radius()
Get the current maximum radius of the light.

Returns:
The radius.
 o 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