bass.visualisation.graphelements
Class BassSphere

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Group
              extended by com.sun.j3d.utils.geometry.Primitive
                  extended by com.sun.j3d.utils.geometry.Sphere
                      extended by bass.visualisation.graphelements.BassSphere

public class BassSphere
extends com.sun.j3d.utils.geometry.Sphere

The main appearance of a band (sphere) on the screen is specified here

Version:
0.1
Author:
Patrick Mai

Field Summary
private  javax.media.j3d.Appearance a
           
static javax.vecmath.Color3f ambientGreen
           
static javax.vecmath.Color3f ambientRed
           
static javax.vecmath.Color3f diffuseGreen
           
static javax.vecmath.Color3f diffuseRed
           
private  javax.media.j3d.Material mat
           
private  com.sun.j3d.utils.geometry.Sphere sphere
           
 
Fields inherited from class com.sun.j3d.utils.geometry.Sphere
BODY
 
Fields inherited from class com.sun.j3d.utils.geometry.Primitive
ENABLE_APPEARANCE_MODIFY, ENABLE_GEOMETRY_PICKING, GENERATE_NORMALS, GENERATE_NORMALS_INWARD, GENERATE_TEXTURE_COORDS, GEOMETRY_NOT_SHARED
 
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_LOCALE_READ, ALLOW_PARENT_READ, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
BassSphere()
           
 
Method Summary
 com.sun.j3d.utils.geometry.Sphere createSphere(float radius, javax.vecmath.Color3f ambient, javax.vecmath.Color3f diffuse)
           
 
Methods inherited from class com.sun.j3d.utils.geometry.Sphere
cloneNode, duplicateNode, getAppearance, getDivisions, getRadius, getShape, getShape, setAppearance
 
Methods inherited from class com.sun.j3d.utils.geometry.Primitive
cacheGeometry, clearGeometryCache, getAppearance, getCachedGeometry, getNumTriangles, getNumVertices, getPrimitiveFlags, setAppearance, setAppearance, setNumTriangles, setNumVertices, setPrimitiveFlags
 
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, getBounds, getBoundsAutoCompute, getCollidable, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, duplicateSceneGraphObject, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

a

private javax.media.j3d.Appearance a

sphere

private com.sun.j3d.utils.geometry.Sphere sphere

mat

private javax.media.j3d.Material mat

ambientRed

public static javax.vecmath.Color3f ambientRed

diffuseRed

public static javax.vecmath.Color3f diffuseRed

ambientGreen

public static javax.vecmath.Color3f ambientGreen

diffuseGreen

public static javax.vecmath.Color3f diffuseGreen
Constructor Detail

BassSphere

public BassSphere()
Method Detail

createSphere

public com.sun.j3d.utils.geometry.Sphere createSphere(float radius,
                                                      javax.vecmath.Color3f ambient,
                                                      javax.vecmath.Color3f diffuse)
Parameters:
radius - the radius of the sphere (node)
ambient - the ambient color
diffuse - the diffuse color
Returns:
the sphere object with the param data set