|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectgov.nasa.worldwind.util.SurfaceTileDrawContext
public class SurfaceTileDrawContext
SurfaceTileDrawContext contains the context needed to render to an off-screen surface tile. SurfaceTileDrawContext is defined by a geographic Sector and a corresponding tile viewport. The Sector maps geographic coordinates to pixels in an abstract off-screen tile.
| Field Summary | |
|---|---|
protected Matrix |
modelview
|
protected Sector |
sector
|
protected Rectangle |
viewport
|
| Constructor Summary | |
|---|---|
SurfaceTileDrawContext(Sector sector,
int viewportWidth,
int viewportHeight)
Constructs a SurfaceTileDrawContext with a specified surface Sector and viewport dimension. |
|
SurfaceTileDrawContext(Sector sector,
Rectangle viewport)
Constructs a SurfaceTileDrawContext with a specified surface Sector and viewport. |
|
| Method Summary | |
|---|---|
Matrix |
getModelviewMatrix()
Returns a Matrix mapping geographic coordinates to pixels in the off-screen tile. |
Matrix |
getModelviewMatrix(LatLon referenceLocation)
Returns a Matrix mapping geographic coordinates to pixels in the off-screen tile. |
Sector |
getSector()
Returns the context's Sector. |
Rectangle |
getViewport()
Returns the context's viewport. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected Matrix modelview
protected Sector sector
protected Rectangle viewport
| Constructor Detail |
|---|
public SurfaceTileDrawContext(Sector sector,
int viewportWidth,
int viewportHeight)
sector - the context's Sector.viewportWidth - the context's viewport width in pixels.viewportHeight - the context's viewport height in pixels.
IllegalArgumentException - if the sector is null, or if the viewport width or height is less than or equal
to zero.
public SurfaceTileDrawContext(Sector sector,
Rectangle viewport)
sector - the context's Sector.viewport - the context's viewport in pixels.
IllegalArgumentException - if either the sector or viewport are null, or if the viewport width or height is
less than or equal to zero.| Method Detail |
|---|
public Matrix getModelviewMatrix()
public Matrix getModelviewMatrix(LatLon referenceLocation)
referenceLocation - the geographic coordinate origin.
IllegalArgumentException - if the reference location is null.public Sector getSector()
public Rectangle getViewport()
|
NASA World Wind | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||