|
||||||||||
| 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.Head
public class Head
This creates a human head with two eyes, two eyebrows, a nose a upperLip and hair. The head is spherical, centered at the origin and of radius 1.0. The skin color can be changed as well as the hair color.
| Field Summary | |
|---|---|
Eye |
leftEye
This is the left eye as one is looking out from the face. |
Eye |
rightEye
This is the right eye as one is looking out from the face. |
| Constructor Summary | |
|---|---|
Head()
Create a new Head object. |
|
| Method Summary | |
|---|---|
Color |
getEyeColor()
Returns the color of the eyes. |
Color |
getHairColor()
The hair color. |
Color |
getSkinColor()
Returns the current skin color. |
void |
setEyeColor(double red,
double green,
double blue)
Sets the eye color for both eyes. |
void |
setHairColor(Color color)
Changes the color of the hair. |
void |
setHairColor(double red,
double green,
double blue)
Changes the color of the hair. |
void |
setSkinColor(Color color)
Sets the skin color of the face. |
void |
setSkinColor(double red,
double green,
double blue)
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 Eye leftEye
public Eye rightEye
| Constructor Detail |
|---|
public Head()
| Method Detail |
|---|
public void setSkinColor(double red,
double green,
double blue)
red - green - blue - public void setSkinColor(Color color)
color - the new colorpublic Color getSkinColor()
setSkinColor(Color)
public void setHairColor(double red,
double green,
double blue)
red - the red component.green - the green component.blue - the blue component.public void setHairColor(Color color)
color - the hair color.public Color getHairColor()
public void setEyeColor(double red,
double green,
double blue)
red - green - blue - public Color getEyeColor()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||