|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.brackeen.javagamebook.graphics3D.ScanConverter
The ScanConverter class converts a projected polygon into a series of horizontal scans for drawing.
Nested Class Summary | |
static class |
ScanConverter.Scan
A horizontal scan line. |
Constructor Summary | |
ScanConverter(ViewWindow view)
Creates a new ScanConverter for the specified ViewWindow. |
Method Summary | |
boolean |
convert(Polygon3D polygon)
Scan-converts a projected polygon. |
int |
getBottomBoundary()
Gets the bottom boundary of the last scan-converted polygon. |
ScanConverter.Scan |
getScan(int y)
Gets the scan line for the specified y value. |
int |
getTopBoundary()
Gets the top boundary of the last scan-converted polygon. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ScanConverter(ViewWindow view)
Method Detail |
public int getTopBoundary()
public int getBottomBoundary()
public ScanConverter.Scan getScan(int y)
public boolean convert(Polygon3D polygon)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |