Class PhongRenderer.PolygonInfoEx

java.lang.Object
  |
  +--FlatRenderer.PolygonInfo
        |
        +--GouraudRenderer.PolygonInfoEx
              |
              +--PhongRenderer.PolygonInfoEx
Enclosing class:
PhongRenderer

protected class PhongRenderer.PolygonInfoEx
extends GouraudRenderer.PolygonInfoEx

Polygon information -- only functions to create instances of PhongRenderer.EdgeTableEx and ActiveEdgeTable.


Fields inherited from class GouraudRenderer.PolygonInfoEx
intensities, meshInfo
 
Fields inherited from class FlatRenderer.PolygonInfo
AET, color, equation, ET, lights, polygon
 
Constructor Summary
PhongRenderer.PolygonInfoEx(Mesh.Polygon poly, GouraudRenderer.MeshInfo meshInfo, List lights)
          Constructs the object.
 
Method Summary
 Color getColor()
          Shorthand function to return the base color of this polygon.
 
Methods inherited from class GouraudRenderer.PolygonInfoEx
calcIntensities, getIntensity
 
Methods inherited from class FlatRenderer.PolygonInfo
calcLumColor, getAET, getET, getPolygon, getZ
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

PhongRenderer.PolygonInfoEx

public PhongRenderer.PolygonInfoEx(Mesh.Polygon poly,
                                   GouraudRenderer.MeshInfo meshInfo,
                                   List lights)
Constructs the object.
Parameters:
poly - the polygon associated with this info.
meshInfo - the info of the corresponding Mesh object that owns the polygon.
lights - A list of Light objects available in the World.
Method Detail

getColor

public Color getColor()
Shorthand function to return the base color of this polygon.
Overrides:
getColor in class GouraudRenderer.PolygonInfoEx