edu.byu.phun.body
Class ForeArm

java.lang.Object
  extended by edu.byu.phun.PropertyContainer
      extended by edu.byu.phun.Obj3D
          extended by edu.byu.phun.GroupObj
              extended by edu.byu.phun.body.BodyPart
                  extended by edu.byu.phun.body.ForeArm

public class ForeArm
extends BodyPart

The forearm is all of the arm below the elbow. This controls the flex of the wrist.


Constructor Summary
ForeArm()
          Create a new ForeArm.
 
Method Summary
 Color getSkinColor()
          Returns the skin color.
 double getWristFlex()
          This returns the flex of the wrist.
 double getWristTwist()
          Returns the wrist twist.
 void setSkinColor(Color color)
          Change the skin color.
 void setWristFlex(double degrees)
          Changes the wrist flex.
 void setWristTwist(double degrees)
          This controls the twist of the wrist around the axis of the forearm.
 
Methods inherited from class edu.byu.phun.GroupObj
addPart, getPart, getPart, nParts, partNames, removePart, removePart, setColor, setPart
 
Methods inherited from class edu.byu.phun.Obj3D
getBounds, getColor, getLocation, getName, getRotX, getRotY, getRotZ, getScaleX, getScaleY, getScaleZ, getShininess, setColor, setLocation, setLocation, setName, setRotX, setRotY, setRotZ, setScale, setScale, setScaleX, setScaleY, setScaleZ, setShininess, toString
 
Methods inherited from class edu.byu.phun.PropertyContainer
getPropertyC, getPropertyD, getPropertyP, getPropertyS, propertyIsColor, propertyIsDouble, propertyIsPoint, propertyIsSettable, propertyIsString, propertyNames, setProperty, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ForeArm

public ForeArm()
Create a new ForeArm.

Method Detail

setSkinColor

public void setSkinColor(Color color)
Change the skin color. This is generally called from Arm rather than directly.

Parameters:
color - the new skin color.

getSkinColor

public Color getSkinColor()
Returns the skin color.

Returns:
the skin color.

setWristTwist

public void setWristTwist(double degrees)
This controls the twist of the wrist around the axis of the forearm.

Parameters:
degrees - the degrees of twist. Positive angles will rotate the thumb to the left (from the body).

getWristTwist

public double getWristTwist()
Returns the wrist twist.

Returns:
twist in degrees.
See Also:
setWristTwist(double)

getWristFlex

public double getWristFlex()
This returns the flex of the wrist.

Returns:
wrist flex in degrees.
See Also:
setWristFlex(double)

setWristFlex

public void setWristFlex(double degrees)
Changes the wrist flex.

Parameters:
degrees - 0 will hold the wrist straight. positive will bend the wrist to the right (from the body's view).