|
||||||||||
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.Leg
public class Leg
This is a Leg object that controls the knee flex and the foot.
Field Summary | |
---|---|
LowerLeg |
lowerLeg
|
Constructor Summary | |
---|---|
Leg()
Creates a new leg with the hip at the origin and the leg pointed down. |
Method Summary | |
---|---|
double |
getFootFlex()
Returns the current flex of the foot. |
double |
getKneeFlex()
Return the flex of the knee. |
Color |
getPantsColor()
Returns the color of the pants. |
Color |
getSkinColor()
Returns the color of the skin. |
void |
setFootFlex(double degrees)
This will flex the foot. |
void |
setKneeFlex(double degrees)
Controls te flex of the knee joint. |
void |
setPantsColor(Color color)
Sets the color of the pants. |
void |
setSkinColor(Color color)
Sets the skin color. |
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 LowerLeg lowerLeg
Constructor Detail |
---|
public Leg()
Method Detail |
---|
public void setPantsColor(Color color)
color
- the new pants color.public Color getPantsColor()
public void setSkinColor(Color color)
color
- new skin color.public Color getSkinColor()
public void setKneeFlex(double degrees)
degrees
- knee flex in degrees. 0 keeps the leg
straight. Positive flex will bend the knee normally. Negative
flex looks very painful.public double getKneeFlex()
setKneeFlex(double)
public void setFootFlex(double degrees)
degrees
- degrees of foot flex. 0 degrees will hold
the foot perpendicular to the shin. Positive will bring the toe up.
Negative will point the toe down.public double getFootFlex()
setFootFlex(double)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |