Class GouraudRenderer.EdgeTableEx
java.lang.Object
|
+--FlatRenderer.EdgeTable
|
+--GouraudRenderer.EdgeTableEx
- Direct Known Subclasses:
- PhongRenderer.EdgeTableEx
- Enclosing class:
- GouraudRenderer
- protected static class GouraudRenderer.EdgeTableEx
- extends FlatRenderer.EdgeTable
Extended Edge Table containing intensity information at each edge entry.
|
Method Summary |
protected void |
addEdge(Mesh.Polygon owner,
int xlow,
int ylow,
int xhigh,
int yhigh,
int lowIndex,
int highIndex,
int yComp)
Adds an edge to the edge table, ignoring horizontal edges. |
protected void |
addPolygon(Mesh.Polygon poly)
Adds a polygon into the edge table. |
| Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
registerNatives,
wait,
wait,
wait |
info
protected GouraudRenderer.PolygonInfoEx info
- The polygon info
GouraudRenderer.EdgeTableEx
protected GouraudRenderer.EdgeTableEx()
- Constructs a null edge table. Derived classes must initialize
all data members.
GouraudRenderer.EdgeTableEx
public GouraudRenderer.EdgeTableEx(GouraudRenderer.PolygonInfoEx info)
- Constructs an edge table from a polygon object.
- Parameters:
p - the polygon from which to extract edges.
addEdge
protected void addEdge(Mesh.Polygon owner,
int xlow,
int ylow,
int xhigh,
int yhigh,
int lowIndex,
int highIndex,
int yComp)
- Adds an edge to the edge table, ignoring horizontal edges.
- Parameters:
owner - the owner of the edge.xlow - the x coordinate of the lower point in the edge.ylow - the y coordinate of the lower point in the edge.xhigh - the x coordinate of the higher point in the edge.yhigh - the y coordinate of the higher point in the edge.lowIndex - the index of the (xlow,ylow) vertice in the polygon's
verticesIndex[] array.highIndex - the index of the (xhigh,yhigh) vertice in the polygon's
verticesIndex[] array.yComp - the next nonhorizontal y
addPolygon
protected void addPolygon(Mesh.Polygon poly)
- Adds a polygon into the edge table.
- Overrides:
- addPolygon in class FlatRenderer.EdgeTable
- Parameters:
poly - the polygon to add.