|
||||||||||
| 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.Eye
public class Eye
This is a spherical eyeball centered at the origin with a radius of 1.0. The color of the iris can be changed. The default is brown.
| Constructor Summary | |
|---|---|
Eye()
Creates a new eyeball of radius 1.0 centered at the origin. |
|
| Method Summary | |
|---|---|
Color |
getEyeColor()
Returns the color of the iris of the eye. |
double |
getRotLeftRight()
Get the left/right rotation angle. |
double |
getRotUpDown()
Get the up and down angle of rotation |
void |
setEyeColor(Color newColor)
Sets the color of the iris of the. |
void |
setEyeColor(double red,
double green,
double blue)
Sets the color of the iris of the eye. |
void |
setRotLeftRight(double degrees)
This will rotate the eye left and right. |
void |
setRotUpDown(double degrees)
This will rotate the eye up and down. |
| 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 |
|---|
public Eye()
| Method Detail |
|---|
public Color getEyeColor()
public void setEyeColor(double red,
double green,
double blue)
red - the red component. 0.0 to 1.0green - the green component. 0.0 to 1.0blue - the blue component. 0.0 to 1.0public void setEyeColor(Color newColor)
newColor - the new iris color.public void setRotUpDown(double degrees)
degrees - number of degrees to rotate eye. Suggested
that it stays between 20 and -20.public double getRotUpDown()
setRotUpDown(double)public void setRotLeftRight(double degrees)
degrees - number of degrees to rotate eye. Suggested
that it stays between 20 and -20.public double getRotLeftRight()
setRotLeftRight(double)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||