camera3d
Class VcAmbientLight

java.lang.Object
  extended bycamera3d.VcObject
      extended bycamera3d.VcLight
          extended bycamera3d.VcAmbientLight
All Implemented Interfaces:
RotatableObject, ScalableObject, TranslatableObject

public class VcAmbientLight
extends VcLight

Represents an ambient light.

Version:
1.0
Author:
Fábio Roberto de Miranda

Field Summary
 
Fields inherited from class camera3d.VcObject
transformationMode
 
Constructor Summary
VcAmbientLight()
           
 
Method Summary
static int getInstanceCounter()
          Returns the number of objects instatiated so far.
 javax.media.j3d.Light getJ3DLight()
          Returns ambient light.
 void setColor(float r, float g, float b)
          Sets the color of this light.
 void setEnable(boolean enabled)
          Sets the state (on/off) of this light.
 void setJ3DLight(javax.media.j3d.Light light)
          Sets the ambient light.
 
Methods inherited from class camera3d.VcLight
getBlue, getColor, getGreen, getIcon, getRed, isEnabled, setIcon
 
Methods inherited from class camera3d.VcObject
addChangeListener, addNode, addVcChild, detach, getBoundingBox, getBoundingBoxInVWorld, getBranchGroup, getChildrenList, getInfo, getLabel, getLocalToVworld, getParentRotScaleTG, getParentTransTG, getTooltipText, getTransforms, getTranslation, getXAngleDeg, getXAngleRad, getXScale, getXTranslation, getYAngleDeg, getYAngleRad, getYScale, getYTranslation, getZAngleDeg, getZAngleRad, getZScale, getZTranslation, hideBoundingBox, isInvalidData, isLive, isSelected, printTransform, removeAllChangeListeners, removeAllNodes, removeBoundingBox, removeChangeListener, removeNode, removeVcChild, removeVcChild, rotateAbsolute, rotateEuler, rotateEulerLocal, rotateEulerLocalX, rotateEulerLocalY, rotateEulerLocalZ, rotateEulerX, rotateEulerY, rotateEulerZ, rotateLocal, scaleRelative, scaleX, scaleXRelative, scaleY, scaleYRelative, scaleZ, scaleZRelative, select, setAbsoluteScale, setGlobalAxisVisible, setLabel, setLocalAxisVisible, setOngoingTransformation, setOngoingTransformationMode, setRelativeScale, setTooltipText, setTransform, setTransformsToIdentity, showBoundingBox, translate, translate, translateLocal, underOngoingTransformation, unselect, updateData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

VcAmbientLight

public VcAmbientLight()
Method Detail

getInstanceCounter

public static int getInstanceCounter()
Returns the number of objects instatiated so far.


getJ3DLight

public javax.media.j3d.Light getJ3DLight()
Returns ambient light.

Specified by:
getJ3DLight in class VcLight

setEnable

public void setEnable(boolean enabled)
Sets the state (on/off) of this light.

Specified by:
setEnable in class VcLight
Parameters:
enabled - If true, turns light on. If false, turns light off.

setColor

public void setColor(float r,
                     float g,
                     float b)
Sets the color of this light.

Specified by:
setColor in class VcLight
Parameters:
r - Red component of color.
g - Green component of color.
b - Blue component of color.

setJ3DLight

public void setJ3DLight(javax.media.j3d.Light light)
Sets the ambient light.

Specified by:
setJ3DLight in class VcLight


Copyright © 2001-2003 F.R. Miranda, C.S. Santos, J.E. Kogler Jr.. All Rights Reserved.