uml3d.visual
Class SimpleShape

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Group
                    |
                    +--javax.media.j3d.TransformGroup
                          |
                          +--uml3d.visual.SimpleShape
Direct Known Subclasses:
SimpleBox, SimpleConnection, TestSphere

public class SimpleShape
extends javax.media.j3d.TransformGroup

A SimpleShape is the anchestor of all Simplexxx. Thus, each heir can be jumped to a position in space. Capabilities are set properly and a static operation serves as a simple way to produce standard apperance.


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_PICK, ALLOW_PICKABLE_READ, ALLOW_PICKABLE_WRITE, ENABLE_COLLISION_REPORTING, ENABLE_PICK_REPORTING
 
Constructor Summary
SimpleShape()
          Constructor sets Capabilities
 
Method Summary
 javax.vecmath.Vector3f getTranslation()
           
 void jumpTo(float x, float y, float z)
           
 void jumpTo(javax.vecmath.Vector3f v)
          moves the shape instantly to the position
 
Methods inherited from class javax.media.j3d.TransformGroup
cloneNode, duplicateNode, getTransform, setTransform
 
Methods inherited from class javax.media.j3d.Group
addChild, getAllChildren, getAlternateCollisionTarget, getChild, getCollisionBounds, insertChild, moveTo, numChildren, removeChild, setAlternateCollisionTarget, setChild, setCollisionBounds
 
Methods inherited from class javax.media.j3d.Node
cloneTree, cloneTree, cloneTree, getBounds, getBoundsAutoCompute, getCollidable, getLocalToVworld, getLocalToVworld, getParent, getPickable, setBounds, setBoundsAutoCompute, setCollidable, setPickable
 
Methods inherited from class javax.media.j3d.SceneGraphObject
clearCapability, duplicateSceneGraphObject, getCapability, getUserData, isCompiled, isLive, setCapability, setUserData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleShape

public SimpleShape()
Constructor sets Capabilities
Method Detail

jumpTo

public void jumpTo(javax.vecmath.Vector3f v)
moves the shape instantly to the position
Parameters:
v - determins the position

jumpTo

public void jumpTo(float x,
                   float y,
                   float z)

getTranslation

public javax.vecmath.Vector3f getTranslation()