camera3d
Class VcPointLight

java.lang.Object
  extended bycamera3d.VcObject
      extended bycamera3d.VcLight
          extended bycamera3d.VcPointLight
All Implemented Interfaces:
RotatableObject, ScalableObject, TranslatableObject
Direct Known Subclasses:
VcSpotLight

public class VcPointLight
extends VcLight

Represents a point light.

Version:
1.0
Author:
Fábio Roberto de Miranda

Field Summary
 
Fields inherited from class camera3d.VcObject
transformationMode
 
Constructor Summary
VcPointLight()
           
 
Method Summary
 javax.vecmath.Point3f getAttenuation()
           
 double getConstantAttenuation()
           
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.
 double getLinearAttenuation()
           
 double getQuadraticAttenuation()
           
 void setAttenuation(double constant, double linear, double quadratic)
           
 void setAttenuation(javax.vecmath.Point3f p3f)
           
 void setColor(float r, float g, float b)
          Sets color of this light.
 void setEnable(boolean b)
          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

VcPointLight

public VcPointLight()
Method Detail

getInstanceCounter

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


getAttenuation

public javax.vecmath.Point3f getAttenuation()

setAttenuation

public void setAttenuation(javax.vecmath.Point3f p3f)

setAttenuation

public void setAttenuation(double constant,
                           double linear,
                           double quadratic)

getConstantAttenuation

public double getConstantAttenuation()

getLinearAttenuation

public double getLinearAttenuation()

getQuadraticAttenuation

public double getQuadraticAttenuation()

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 b)
Description copied from class: VcLight
Sets state (on/off) of this light.

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

setColor

public void setColor(float r,
                     float g,
                     float b)
Description copied from class: VcLight
Sets 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)
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.