|
||||||||||
| 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.MaleBody
public class MaleBody
This creates a male body standing at the origin and about 6 units high. The body is facing the positive Z axis with shoulders parallel to the X axis.
| Field Summary | |
|---|---|
Head |
head
This provides access to the head. |
Arm |
leftArm
This provides access to the controls of the left arm with the exception of shoulder movement. |
Leg |
leftLeg
This provides access to the controls of the left leg with the exception of hip movement. |
Arm |
rightArm
This provides access to the controls of the right arm with the exception of shoulder movement. |
Leg |
rightLeg
This provides access to the controls of the right leg with the exception of hip movement. |
| Constructor Summary | |
|---|---|
MaleBody()
|
|
| Method Summary | |
|---|---|
Color |
getEyeColor()
Returns the current eye color |
Color |
getHairColor()
Returns the hair color. |
double |
getHeadLeftRight()
Returns the current left right turn of the head. |
double |
getHeadNod()
Returns the current nod of the head. |
double |
getLeftArmFrontRise()
Return the left arm's front rise angle. |
double |
getLeftArmSideRise()
Returns the left arm's raise angle. |
double |
getLeftLegFrontRise()
Returns the left leg's front rise angle |
double |
getLeftLegSideRise()
Returns the left leg's side rise. |
Color |
getPantsColor()
Returns the color of the pants. |
double |
getRightArmFrontRise()
Return the front rise of the right arm. |
double |
getRightArmSideRise()
Returns the angle of arm raise. |
double |
getRightLegFrontRise()
Return sthe right leg's front rise angle |
double |
getRightLegSideRise()
Returns the amount of side rise for the right leg. |
Color |
getShirtColor()
Returns the color of the shirt. |
Color |
getSkinColor()
Returns the skin color. |
void |
setEyeColor(Color color)
Sets the color of the eyes. |
void |
setHairColor(Color color)
Sets the color of the hair. |
void |
setHeadLeftRight(double degrees)
Turns the head to the left and right. |
void |
setHeadNod(double degrees)
This will nod the head. |
void |
setLeftArmFrontRise(double degrees)
This will raise the left arm to the front or back of the body. |
void |
setLeftArmSideRise(double degrees)
This will raise the left arm at the sholder. |
void |
setLeftLegFrontRise(double degrees)
This will rotate the left leg about the hip so that the leg moves forward. |
void |
setLeftLegSideRise(double degrees)
This will rotate the left leg about the hip so that the leg moves away from the body to the side. |
void |
setPantsColor(Color color)
Sets the color of the pants. |
void |
setRightArmFrontRise(double degrees)
This will raise the right arm to the front or back of the body. |
void |
setRightArmSideRise(double degrees)
This will raise the right arm at the sholder. |
void |
setRightLegFrontRise(double degrees)
This will rotate the right leg about the hip so that the leg moves forward. |
void |
setRightLegSideRise(double degrees)
This will rotate the right leg about the hip so that the leg moves away from the body to the side. |
void |
setShirtColor(Color color)
This will set the shirt color on the torso and arms. |
void |
setSkinColor(Color color)
This will set the skin color of all parts of the body. |
| 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 Head head
public Arm leftArm
public Arm rightArm
public Leg rightLeg
public Leg leftLeg
| Constructor Detail |
|---|
public MaleBody()
| Method Detail |
|---|
public void setSkinColor(Color color)
color - the new skin color.public Color getSkinColor()
public void setShirtColor(Color color)
color - the new shirt color.public Color getShirtColor()
public void setHeadNod(double degrees)
degrees - number of degrees to node. Recommend between
-20 and 45.public double getHeadNod()
setHeadNod(double)public void setHeadLeftRight(double degrees)
degrees - degrees of turn. Positive angles are to
the left.public double getHeadLeftRight()
setHeadLeftRight(double)public void setRightArmSideRise(double degrees)
degrees - the degrees to raise the arm.public double getRightArmSideRise()
setRightArmSideRise(double)public void setLeftArmSideRise(double degrees)
degrees - the degrees to raise the arm.public double getLeftArmSideRise()
setLeftArmSideRise(double)public void setRightArmFrontRise(double degrees)
degrees - the rise of the arm.public double getRightArmFrontRise()
setRightArmFrontRise(double)public void setLeftArmFrontRise(double degrees)
degrees - the rise of the arm.public double getLeftArmFrontRise()
setLeftArmFrontRise(double)public void setRightLegSideRise(double degrees)
degrees - the side rise angle.public double getRightLegSideRise()
setRightLegSideRise(double)public void setLeftLegSideRise(double degrees)
degrees - the side rise angle.public double getLeftLegSideRise()
setLeftLegSideRise(double)public void setRightLegFrontRise(double degrees)
degrees - the amount of front rise.public double getRightLegFrontRise()
setRightLegFrontRise(double)public void setLeftLegFrontRise(double degrees)
degrees - the amount of front rise.public double getLeftLegFrontRise()
setLeftLegFrontRise(double)public void setEyeColor(Color color)
color - new eye color.public Color getEyeColor()
public void setHairColor(Color color)
color - the new hair color.public Color getHairColor()
public void setPantsColor(Color color)
color - new pants color.public Color getPantsColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||