|
Rings Version 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectthreeD.raytracer.surfaceUI.AbstractSurfaceUI
threeD.raytracer.surfaceUI.PolynomialUI
A PolynomialUI object is an extension of the basic Polynomial object that can be used in an application with a user interface.
| Field Summary |
| Fields inherited from class threeD.raytracer.surfaceUI.AbstractSurfaceUI |
surface |
| Constructor Summary | |
PolynomialUI()
Constructs a new PolynomialUI object with no terms. |
|
PolynomialUI(Polynomial polynomial)
Constructs a new PolynomialUI object based on the specified Polynomial object. |
|
PolynomialUI(PolynomialTerm[] terms)
Constructs a new PolynomialUI object with the specified terms. |
|
| Method Summary | |
void |
draw(Graphics g,
Camera camera)
Draws a simple representation of the polynomial surface represented by this PolynomialUI object on the specified Graphics object using the viewing settings of the specified Camera object. |
Dialog |
getDialog()
Returns a Dialog object that can be used to specify extra information about this PolynomialUI object. |
String |
getType()
Returns "Polynomial Surface" as the surface type for this PolynomialUI object. |
boolean |
hasDialog()
Returns true. |
| Methods inherited from class threeD.raytracer.surfaceUI.AbstractSurfaceUI |
getColorAt, getName, getNormalAt, getShadeBack, getShadeFront, getSurface, intersect, intersectAt, setName, setParent, setSurface, shade, toString |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public PolynomialUI()
public PolynomialUI(PolynomialTerm[] terms)
public PolynomialUI(Polynomial polynomial)
| Method Detail |
public String getType()
public boolean hasDialog()
hasDialog in interface SurfaceUIhasDialog in class AbstractSurfaceUIpublic Dialog getDialog()
getDialog in interface SurfaceUIgetDialog in class AbstractSurfaceUI
public void draw(Graphics g,
Camera camera)
|
Rings Version 0.2 |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||