org.selman.java3d.book.avatartest
Class Road

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Group
                    |
                    +--javax.media.j3d.BranchGroup
                          |
                          +--org.selman.java3d.book.common.ComplexObject
                                |
                                +--org.selman.java3d.book.avatartest.Road

public class Road
extends ComplexObject

This class is a simple behavior that invokes the KeyNavigator to modify the view platform transform.


Field Summary
static float ROAD_HEIGHT
           
static float ROAD_LENGTH
           
static float ROAD_WIDTH
           
 
Fields inherited from class org.selman.java3d.book.common.ComplexObject
COLLISION, COLLISION_SOUND, GEOMETRY, m_BehaviorTransformGroup, m_CollideSound, m_Component, m_nFlags, m_ParentGroup, m_TransformGroup, SOUND, TEXTURE
 
Fields inherited from class javax.media.j3d.BranchGroup
ALLOW_DETACH
 
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
Road(java.awt.Component comp, javax.media.j3d.Group g, int nFlags)
           
 
Method Summary
protected  javax.media.j3d.Group createGeometryGroup(javax.media.j3d.Appearance app, javax.vecmath.Vector3d position, javax.vecmath.Vector3d scale, java.lang.String szTextureFile, java.lang.String szSoundFile)
           
 
Methods inherited from class org.selman.java3d.book.common.ComplexObject
attachBehavior, attachSplinePathInterpolator, createObject, getBehaviorTransformGroup, getGeometryBounds, getSoundContinuousEnable, getSoundDistanceGain, getSoundInitialEnable, getSoundInitialGain, getSoundLoop, getSoundPriority, getSoundReleaseEnable, getSoundSchedulingBounds, loadGeometryGroup, onCollide, setSoundAttributes, setTexture
 
Methods inherited from class javax.media.j3d.BranchGroup
cloneNode, compile, detach, pickAll, pickAllSorted, pickAny, pickClosest
 
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
 

Field Detail

ROAD_WIDTH

public static final float ROAD_WIDTH
See Also:
Constant Field Values

ROAD_HEIGHT

public static final float ROAD_HEIGHT
See Also:
Constant Field Values

ROAD_LENGTH

public static final float ROAD_LENGTH
See Also:
Constant Field Values
Constructor Detail

Road

public Road(java.awt.Component comp,
            javax.media.j3d.Group g,
            int nFlags)
Method Detail

createGeometryGroup

protected javax.media.j3d.Group createGeometryGroup(javax.media.j3d.Appearance app,
                                                    javax.vecmath.Vector3d position,
                                                    javax.vecmath.Vector3d scale,
                                                    java.lang.String szTextureFile,
                                                    java.lang.String szSoundFile)
Specified by:
createGeometryGroup in class ComplexObject