|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--FlatRenderer.PolygonInfo
Information about a polygon in process.
| Field Summary | |
protected FlatRenderer.ActiveEdgeTable |
AET
The current Active Edge Table for the current scan line of this polygon. |
protected Color |
color
The luminated color of the polygon. |
protected PlaneEquation |
equation
The plane equation of the polygon. |
protected FlatRenderer.EdgeTable |
ET
The global Edge Table for this polygon. |
protected List |
lights
The available lights. |
protected Mesh.Polygon |
polygon
The owner polygon. |
| Constructor Summary | |
protected |
FlatRenderer.PolygonInfo()
Constructs a null PolygonInfo. |
|
FlatRenderer.PolygonInfo(Mesh.Polygon poly,
List lights)
Constructs the object. |
| Method Summary | |
protected Color |
calcLumColor()
Calculates the luminated color of this polygon; returns the polygon's base color if there are no light object. |
FlatRenderer.ActiveEdgeTable |
getAET()
Returns the current Active Edge Table of the polygon. |
Color |
getColor()
Returns the illuminated color of this polygon. |
FlatRenderer.EdgeTable |
getET()
Returns the Edge Table of the polygon. |
Mesh.Polygon |
getPolygon()
returns the owner polygon. |
double |
getZ(double x,
double y)
Returns the Z value of the polygon, given the x and y values. |
| Methods inherited from class java.lang.Object |
|
| Field Detail |
protected Mesh.Polygon polygon
protected PlaneEquation equation
protected FlatRenderer.EdgeTable ET
protected FlatRenderer.ActiveEdgeTable AET
protected List lights
protected Color color
| Constructor Detail |
protected FlatRenderer.PolygonInfo()
public FlatRenderer.PolygonInfo(Mesh.Polygon poly,
List lights)
poly - the polygon this object is tied with.| Method Detail |
protected Color calcLumColor()
public Color getColor()
public double getZ(double x,
double y)
x - the x value in the polygon.y - the y value in the polygon.public FlatRenderer.EdgeTable getET()
public FlatRenderer.ActiveEdgeTable getAET()
public Mesh.Polygon getPolygon()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||