camera3d
Class VcDirectLight

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

public class VcDirectLight
extends VcLight

Represents a directional light.

Version:
1.0
Author:
Fábio Roberto de Miranda

Field Summary
 
Fields inherited from class camera3d.VcObject
transformationMode
 
Constructor Summary
VcDirectLight()
           
 
Method Summary
static int getInstanceCounter()
          Returns the number of objects instatiated so far.
 javax.media.j3d.Light getJ3DLight()
          Returns the Java 3D light encapsulated by this VcLight.
 void setColor(float red, float green, float blue)
          Sets color of this light.
 void setEnable(boolean enabled)
          Sets state (on/off) of this light.
 void setJ3DLight(javax.media.j3d.Light light)
          Sets the Java 3D light encapsulated by this VcLight.
 
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

VcDirectLight

public VcDirectLight()
Method Detail

getJ3DLight

public javax.media.j3d.Light getJ3DLight()
Description copied from class: VcLight
Returns the Java 3D light encapsulated by this VcLight.

Specified by:
getJ3DLight in class VcLight

setEnable

public void setEnable(boolean enabled)
Description copied from class: VcLight
Sets 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 red,
                     float green,
                     float blue)
Description copied from class: VcLight
Sets color of this light.

Specified by:
setColor in class VcLight
Parameters:
red - red component of color.
green - green component of color.
blue - blue component of color.

getInstanceCounter

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


setJ3DLight

public void setJ3DLight(javax.media.j3d.Light light)
Description copied from class: VcLight
Sets the Java 3D light encapsulated by this VcLight.

Specified by:
setJ3DLight in class VcLight


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