sim.portrayal3d.simple
Class Arrow

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 sim.portrayal3d.simple.Arrow

public class Arrow
extends javax.media.j3d.TransformGroup


Field Summary
 com.sun.j3d.utils.geometry.Cone arrowHead
           
 com.sun.j3d.utils.geometry.Cylinder arrowTail
           
static javax.vecmath.Color3f defaultArrowColor
           
static javax.media.j3d.Font3D f3d
           
 
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
Arrow(float arrowTailRadius, javax.vecmath.Vector3f stPt, javax.vecmath.Vector3f endPt, java.lang.String stLabel, java.lang.String endLabel, javax.media.j3d.Appearance appearance)
           
 
Method Summary
static Arrow createArrow(float arrowTailRadius, javax.vecmath.Vector3f stPt, javax.vecmath.Vector3f endPt, java.lang.String stLabel, java.lang.String endLabel)
          Creates a 3D arrow between points stPt and endPt if either label is not null, it adds a Text2D obect at the appropriate end.
 
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
 

Field Detail

defaultArrowColor

public static final javax.vecmath.Color3f defaultArrowColor

f3d

public static final javax.media.j3d.Font3D f3d

arrowHead

public com.sun.j3d.utils.geometry.Cone arrowHead

arrowTail

public com.sun.j3d.utils.geometry.Cylinder arrowTail
Constructor Detail

Arrow

public Arrow(float arrowTailRadius,
             javax.vecmath.Vector3f stPt,
             javax.vecmath.Vector3f endPt,
             java.lang.String stLabel,
             java.lang.String endLabel,
             javax.media.j3d.Appearance appearance)
Method Detail

createArrow

public static Arrow createArrow(float arrowTailRadius,
                                javax.vecmath.Vector3f stPt,
                                javax.vecmath.Vector3f endPt,
                                java.lang.String stLabel,
                                java.lang.String endLabel)
Creates a 3D arrow between points stPt and endPt if either label is not null, it adds a Text2D obect at the appropriate end.