|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.byu.phun.PropertyContainer
edu.byu.phun.Obj3D
edu.byu.phun.GroupObj
edu.byu.phun.body.BodyPart
edu.byu.phun.body.Arm
public class Arm
This defines an arm for the male body. This class controls the elbow and provides access to the foreArm, which controls the rest of the arm.
Field Summary | |
---|---|
ForeArm |
foreArm
This provides access to all of the arm from the forearm down including the wrist and hand. |
Constructor Summary | |
---|---|
Arm()
Creates a new arm object with the origin at the shoulder. |
Method Summary | |
---|---|
double |
getElbowFlex()
Returns the flex of the elbow. |
Color |
getShirtColor()
Returns the current color of the shirt. |
Color |
getSkinColor()
Returns the color of the skin |
void |
setElbowFlex(double degrees)
This sets the number of degrees that the elbow should be flexed. |
void |
setShirtColor(Color color)
This changes the color of the sleeve. |
void |
setSkinColor(Color color)
This changes the color of the skin. |
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 |
Field Detail |
---|
public ForeArm foreArm
Constructor Detail |
---|
public Arm()
Method Detail |
---|
public void setShirtColor(Color color)
color
- the new color of the sleeve.public Color getShirtColor()
public void setSkinColor(Color color)
color
- new skin color.public Color getSkinColor()
public void setElbowFlex(double degrees)
degrees
- the flex angle of the elbow. Zero degrees will
have the arm straight. 180 degrees will bring the hand up to the
shoulder.public double getElbowFlex()
setElbowFlex(double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |