camera3d
Class VcSpotLight

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

public class VcSpotLight
extends VcPointLight

Represents a spot light.

Version:
1.0
Author:
Fábio Roberto de Miranda

Field Summary
 
Fields inherited from class camera3d.VcObject
transformationMode
 
Constructor Summary
VcSpotLight()
           
 
Method Summary
 javax.vecmath.Point3f getAttenuation()
           
 double getConcentration()
           
 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()
           
 double getSpreadAngle()
           
 void setColor(float r, float g, float b)
          Sets color of this light.
 void setConcentration(double concentration)
           
 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.
 void setSpreadAngle(double angle)
           
 
Methods inherited from class camera3d.VcPointLight
setAttenuation, setAttenuation
 
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

VcSpotLight

public VcSpotLight()
Method Detail

getInstanceCounter

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


setConcentration

public void setConcentration(double concentration)

getConcentration

public double getConcentration()

setSpreadAngle

public void setSpreadAngle(double angle)

getSpreadAngle

public double getSpreadAngle()

getAttenuation

public javax.vecmath.Point3f getAttenuation()
Overrides:
getAttenuation in class VcPointLight

getConstantAttenuation

public double getConstantAttenuation()
Overrides:
getConstantAttenuation in class VcPointLight

getLinearAttenuation

public double getLinearAttenuation()
Overrides:
getLinearAttenuation in class VcPointLight

getQuadraticAttenuation

public double getQuadraticAttenuation()
Overrides:
getQuadraticAttenuation in class VcPointLight

getJ3DLight

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

Overrides:
getJ3DLight in class VcPointLight

setEnable

public void setEnable(boolean b)
Description copied from class: VcLight
Sets state (on/off) of this light.

Overrides:
setEnable in class VcPointLight

setColor

public void setColor(float r,
                     float g,
                     float b)
Description copied from class: VcLight
Sets color of this light.

Overrides:
setColor in class VcPointLight

setJ3DLight

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

Overrides:
setJ3DLight in class VcPointLight


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