01: /*
02: * $RCSfile: Light.java,v $
03: *
04: * @(#)Light.java 1.3 98/11/05 20:36:21
05: *
06: * Copyright (c) 1996-1998 Sun Microsystems, Inc. All Rights Reserved.
07: *
08: * Sun grants you ("Licensee") a non-exclusive, royalty free, license to use,
09: * modify and redistribute this software in source and binary code form,
10: * provided that i) this copyright notice and license appear on all copies of
11: * the software; and ii) Licensee does not utilize the software in a manner
12: * which is disparaging to Sun.
13: *
14: * This software is provided "AS IS," without a warranty of any kind. ALL
15: * EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND WARRANTIES, INCLUDING ANY
16: * IMPLIED WARRANTY OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR
17: * NON-INFRINGEMENT, ARE HEREBY EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE
18: * LIABLE FOR ANY DAMAGES SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING
19: * OR DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN OR ITS
20: * LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR FOR DIRECT,
21: * INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR PUNITIVE DAMAGES, HOWEVER
22: * CAUSED AND REGARDLESS OF THE THEORY OF LIABILITY, ARISING OUT OF THE USE OF
23: * OR INABILITY TO USE SOFTWARE, EVEN IF SUN HAS BEEN ADVISED OF THE
24: * POSSIBILITY OF SUCH DAMAGES.
25: *
26: * This software is not designed or intended for use in on-line control of
27: * aircraft, air traffic, aircraft navigation or aircraft communications; or in
28: * the design, construction, operation or maintenance of any nuclear
29: * facility. Licensee represents and warrants that it will not use or
30: * redistribute the Software for such purposes.
31: *
32: *
33: * $Revision: 1.2 $
34: * $Date: 2005/02/03 23:07:10 $
35: * $State: Exp $
36: */
37: /*
38: * @Author: Rick Goldberg
39: * @Author: Doug Gehringer
40: */
41: package org.jdesktop.j3d.loaders.vrml97.node;
42:
43: /**
44: * Base class for all VRML loader lights. VRML lights have an ambient component and
45: * along with a specific component. Java3D defines ambient lights as separate
46: * lights. This interface returns both from the VRML light.
47: */
48: public class Light extends vrml.node.Node {
49:
50: org.jdesktop.j3d.loaders.vrml97.impl.Light impl;
51:
52: /**
53: * This is an internal constructor. All nodes are created through the
54: * the Browser or Loader
55: *
56: *@param init Description of the Parameter
57: */
58: public Light(org.jdesktop.j3d.loaders.vrml97.impl.Light init) {
59: super (init);
60: impl = init;
61: }
62:
63: /**
64: * Gets the ambientLight attribute of the Light object
65: *
66: *@return The ambientLight value
67: */
68: public javax.media.j3d.AmbientLight getAmbientLight() {
69: return impl.getAmbientLight();
70: }
71:
72: /**
73: * Gets the light attribute of the Light object
74: *
75: *@return The light value
76: */
77: public javax.media.j3d.Light getLight() {
78: return impl.getLight();
79: }
80: }
|