Class Gui3DRobot

java.lang.Object
  |
  +--javax.media.j3d.SceneGraphObject
        |
        +--javax.media.j3d.Node
              |
              +--javax.media.j3d.Group
                    |
                    +--javax.media.j3d.TransformGroup
                          |
                          +--Gui3DObject
                                |
                                +--Gui3DRobot
All Implemented Interfaces:
java.util.EventListener, java.beans.PropertyChangeListener

public class Gui3DRobot
extends Gui3DObject


Field Summary
 
Fields inherited from class Gui3DObject
iIdentity, oGuiField, oVector
 
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
 
Fields inherited from class javax.media.j3d.SceneGraphObject
 
Constructor Summary
Gui3DRobot(GuiField _oGuiField, int _iIdentity, SimVector _oVector, java.awt.Color _oColor)
          This constructor creates a new Gui3DRobot object, with wheels and a cube.
 
Method Summary
 javax.media.j3d.TransformGroup createCube()
          This function creates a color cube of size SimSettings.fHALF_CUBE_SIZE.
 javax.media.j3d.TransformGroup createLeftWheel()
          This function creates a wheel and positions it to the left of the GuiRobot3D.
 javax.media.j3d.TransformGroup createRightWheel()
          This function creates a wheel and positions it to the right of the Gui3DRobot.
 javax.media.j3d.TransformGroup createWheel()
          This function creates a Cylinder and gives it a nice color
 javax.media.j3d.Transform3D orient()
          This function rotates the Goal to the right orientation orientation
 javax.media.j3d.Transform3D position()
          This function translates the Goal to the specified x,z position
 void setTransform(javax.media.j3d.Transform3D oTransform3D)
          This function returns will be called by a PickBehavior
 java.lang.String toString()
          This function returns the description of this object
 void transform()
          This function transforms the Robot to the right position and orientation
 
Methods inherited from class Gui3DObject
addPropertyChange, getNewSimVector, getSimObject, propertyChange
 
Methods inherited from class javax.media.j3d.TransformGroup
cloneNode, getTransform
 
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, wait, wait, wait
 

Constructor Detail

Gui3DRobot

public Gui3DRobot(GuiField _oGuiField,
                  int _iIdentity,
                  SimVector _oVector,
                  java.awt.Color _oColor)
This constructor creates a new Gui3DRobot object, with wheels and a cube. The Gui3DRobot will be positioned on specified position

Since:
1.0
Method Detail

transform

public void transform()
This function transforms the Robot to the right position and orientation

Specified by:
transform in class Gui3DObject
Returns:
void
Since:
1.0

orient

public javax.media.j3d.Transform3D orient()
This function rotates the Goal to the right orientation orientation

Returns:
Transform3D
Since:
1.0

position

public javax.media.j3d.Transform3D position()
This function translates the Goal to the specified x,z position

Returns:
Transform3D
Since:
1.0

createLeftWheel

public javax.media.j3d.TransformGroup createLeftWheel()
This function creates a wheel and positions it to the left of the GuiRobot3D.

Returns:
TransformGroup
Since:
1.0

createWheel

public javax.media.j3d.TransformGroup createWheel()
This function creates a Cylinder and gives it a nice color

Returns:
Cylinder the wheel represented in 3d
Since:
1.0

createRightWheel

public javax.media.j3d.TransformGroup createRightWheel()
This function creates a wheel and positions it to the right of the Gui3DRobot.

Returns:
TransformGroup
Since:
1.0

createCube

public javax.media.j3d.TransformGroup createCube()
This function creates a color cube of size SimSettings.fHALF_CUBE_SIZE.

Returns:
TransformGroup
Since:
1.0

toString

public java.lang.String toString()
This function returns the description of this object

Overrides:
toString in class java.lang.Object
Returns:
String
Since:
1.0

setTransform

public void setTransform(javax.media.j3d.Transform3D oTransform3D)
This function returns will be called by a PickBehavior

Overrides:
setTransform in class javax.media.j3d.TransformGroup
Parameters:
oTransform3D - the new matrix
Returns:
void
Since:
1.0