|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.media.j3d.SceneGraphObject
javax.media.j3d.Node
javax.media.j3d.Group
frontend.java3d.SphereGraphicalBase
public abstract class SphereGraphicalBase
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 |
|---|
public SphereGraphicalBase(javax.media.j3d.Node theNode)
theNode - the Node to model| Method Detail |
|---|
public javax.media.j3d.Node getNode()
public boolean getHighlighted()
public void setHighlighted(boolean newState)
newState - is the new state for whether this is highlighted or notpublic abstract SphereBasicObject getModel()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||