frontend.java3d
Class SphereGraphicalBase

java.lang.Object
  extended by javax.media.j3d.SceneGraphObject
      extended by javax.media.j3d.Node
          extended by javax.media.j3d.Group
              extended by frontend.java3d.SphereGraphicalBase
Direct Known Subclasses:
SphereGraphicalLineBase, SphereGraphicalPoint

public abstract class SphereGraphicalBase
extends javax.media.j3d.Group

SphereGraphicalBase is the base class for objects that want to be placed in the SphereWorld. The way it is designed is a little strange, but it had to be done this way so we could get a base class for objects that were being placed on the Sphere. Basically you call this constuctor with a Node that Node should be what you are really trying to model. Then you can access the actual Node through the getNode function. However you should add *this* to the scene graph and not the Node that is passed to the constructor.


Field Summary
 
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
SphereGraphicalBase(javax.media.j3d.Node theNode)
          The constructor for SphereGraphicalBase takes a Node to place inside itself and that Node is really supposed to be what this is modeling thing.
 
Method Summary
 boolean getHighlighted()
          getHighlighted can be used to get whether this Node is highlighted or not
abstract  SphereBasicObject getModel()
           
 javax.media.j3d.Node getNode()
          getNode should be used to access the Node we are modeling
 void setHighlighted(boolean newState)
          Used to set the highlight state of this Node
 
Methods inherited from class javax.media.j3d.Group
addChild, cloneNode, 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, getLocale, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, clearCapabilityIsFrequent, getCapability, getCapabilityIsFrequent, getName, getUserData, isCompiled, isLive, setCapability, setCapabilityIsFrequent, setName, setUserData, toString, updateNodeReferences
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SphereGraphicalBase

public SphereGraphicalBase(javax.media.j3d.Node theNode)
The constructor for SphereGraphicalBase takes a Node to place inside itself and that Node is really supposed to be what this is modeling thing.

Parameters:
theNode - the Node to model
Method Detail

getNode

public javax.media.j3d.Node getNode()
getNode should be used to access the Node we are modeling

Returns:
the Node we are modeling

getHighlighted

public boolean getHighlighted()
getHighlighted can be used to get whether this Node is highlighted or not

Returns:
true if highlighted false if not

setHighlighted

public void setHighlighted(boolean newState)
Used to set the highlight state of this Node

Parameters:
newState - is the new state for whether this is highlighted or not

getModel

public abstract SphereBasicObject getModel()