org.wilmascope.light
Class SpotLightCone

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Group
              extended by javax.media.j3d.TransformGroup
                  extended by org.wilmascope.light.SpotLightCone

public class SpotLightCone
extends javax.media.j3d.TransformGroup

This class creates a cone to represent a spot light's colour, position, direction and spreadangle


Field Summary
 
Fields inherited from class javax.media.j3d.TransformGroup
ALLOW_TRANSFORM_READ, ALLOW_TRANSFORM_WRITE
 
Fields inherited from class javax.media.j3d.Group
ALLOW_CHILDREN_EXTEND, ALLOW_CHILDREN_READ, ALLOW_CHILDREN_WRITE, ALLOW_COLLISION_BOUNDS_READ, ALLOW_COLLISION_BOUNDS_WRITE
 
Fields inherited from class javax.media.j3d.Node
ALLOW_AUTO_COMPUTE_BOUNDS_READ, ALLOW_AUTO_COMPUTE_BOUNDS_WRITE, ALLOW_BOUNDS_READ, ALLOW_BOUNDS_WRITE, ALLOW_COLLIDABLE_READ, ALLOW_COLLIDABLE_WRITE, ALLOW_LOCAL_TO_VWORLD_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
SpotLightCone()
           
 
Method Summary
 void setColor(javax.vecmath.Color3f color)
          Sets the colour of the cone
 void setDirection(javax.vecmath.Vector3f direction)
          Sets the direction of the cone
 void setPosition(javax.vecmath.Point3f position)
          sets the position of the cone
 void setSpreadAngle(float spreadAngle)
          Sets the spreadAngle of the cone
 void setTransparency(float tranparency)
           
 
Methods inherited from class javax.media.j3d.TransformGroup
cloneNode, getTransform, setTransform
 
Methods inherited from class javax.media.j3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, indexOfChild, insertChild, moveTo, numChildren, removeAllChildren, removeChild, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, cloneTree, duplicateNode, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setUserData, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpotLightCone

public SpotLightCone()
Method Detail

setColor

public void setColor(javax.vecmath.Color3f color)
Sets the colour of the cone

Parameters:
color - colour of the spot light

setSpreadAngle

public void setSpreadAngle(float spreadAngle)
Sets the spreadAngle of the cone

Parameters:
spreadAngle - spreadangle of the spot light

setPosition

public void setPosition(javax.vecmath.Point3f position)
sets the position of the cone

Parameters:
position - the position of the spotlight

setDirection

public void setDirection(javax.vecmath.Vector3f direction)
Sets the direction of the cone

Parameters:
direction - the direction or the spot light

setTransparency

public void setTransparency(float tranparency)