All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class vlc.vrml.external.geometry.DirectionalLight

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.DirectionalLight

public class DirectionalLight
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

Constructor Index

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

Method Index

 o clone()
Make a clone of this object
 o get_direction()
Get the direction that this light is pointing.
 o set_direction(float[])
Set the direction that this light is to point.
 o writeToStream(int)
Prints the formatted contents of this node to the given stream.

Constructors

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

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

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_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
 o 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
 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