org.xith3d.scenegraph
Class AmbientLight

java.lang.Object
  extended by org.xith3d.scenegraph.SceneGraphObject
      extended by org.xith3d.scenegraph.Node
          extended by org.xith3d.scenegraph.Leaf
              extended by org.xith3d.scenegraph.Light
                  extended by org.xith3d.scenegraph.AmbientLight
All Implemented Interfaces:
org.jagatoo.datatypes.Enableable, org.jagatoo.datatypes.NamableObject, org.jagatoo.datatypes.NamedObject, org.openmali.spatial.SpatialNode

public class AmbientLight
extends Light

AmbientLight defines an ambient light source.


Field Summary
 
Fields inherited from class org.xith3d.scenegraph.Light
DEFAULT_COLOR
 
Fields inherited from class org.xith3d.scenegraph.Node
bounds, boundsAutoCompute, boundsDirty, globalIgnoreBounds, instanceBoundsTypeHint, transformGroup, untransformedBounds
 
Fields inherited from class org.xith3d.scenegraph.SceneGraphObject
XITH3D_USERDATAKEY_OLDUSERDATA
 
Constructor Summary
AmbientLight()
          Constructs a new AmbientLight object with a default color of white.
AmbientLight(boolean enabled)
          Constructs a new AmbientLight object with a default color of white.
AmbientLight(boolean enabled, org.openmali.vecmath2.Colorf color)
          Constructs a new AmbientLight object with the specified color.
AmbientLight(org.openmali.vecmath2.Colorf color)
          Constructs a new AmbientLight object with the specified color.
 
Method Summary
 
Methods inherited from class org.xith3d.scenegraph.Light
freeOpenGLResources, getCol, getColor, getInfluencingBoundingLeaf, getInfluencingBounds, getLightID, isEnabled, setColor, setColor, setEnabled, setInfluencingBoundingLeaf, setInfluencingBounds, setPickable, traverse
 
Methods inherited from class org.xith3d.scenegraph.Leaf
dump, getPickHost, setPickHost
 
Methods inherited from class org.xith3d.scenegraph.Node
absorbDetails, cloneNode, detach, duplicateNode, freeOpenGLResources, getBounds, getBoundsAutoCompute, getBoundsType, getBoundsTypeHint, getDefaultPickable, getIndentString, getInheritedNodeAttributes, getModListener, getOrderedChild, getOrderedState, getParent, getRoot, getShadowAttachment, getShowBounds, getTransformGroup, getTreeCell, getWorldBounds, getWorldTransform, getWorldTransform, isBillboard, isIgnoreBounds, isOccluder, isPickable, isRenderable, isUpdatableNode, mergeInheritedClipper, mergeInheritedNodes, mergeInheritedScissorRect, popGlobalIgnoreBounds, printBounds, pushGlobalIgnoreBounds, setBounds, setBoundsAutoCompute, setBoundsDirty, setBoundsDirtyUpward, setBoundsTypeHint, setDefaultPickable, setGlobalIgnoreBounds, setIgnoreBounds, setIsOccluder, setModListener, setOrderedChild, setParent, setPickableRecursive, setPickableRecursive, setRenderable, setShadowAttachment, setShowBounds, setTransformGroup, setTreeCell, sharedCopy, sharedCopy, traverse, unmergeInheritedFog, unmergeInheritedLight, unmergeInheritedNodes, updateBounds, updateBoundsCheap, updateOrderedChild, updateTransformGroup, updateWorldTransform
 
Methods inherited from class org.xith3d.scenegraph.SceneGraphObject
getName, getUserData, getUserData, getUserDataMap, isLive, setLive, setName, setUserData, setUserData, setUserDataRecursive, setUserDataRecursive, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AmbientLight

public AmbientLight(boolean enabled,
                    org.openmali.vecmath2.Colorf color)
Constructs a new AmbientLight object with the specified color.

Parameters:
enabled - if true, the light will be enabled, else it will be disabled.
color - the ambient light color

AmbientLight

public AmbientLight(org.openmali.vecmath2.Colorf color)
Constructs a new AmbientLight object with the specified color.

Parameters:
color - The ambient light color

AmbientLight

public AmbientLight(boolean enabled)
Constructs a new AmbientLight object with a default color of white.

Parameters:
enabled -

AmbientLight

public AmbientLight()
Constructs a new AmbientLight object with a default color of white.