public class SurfaceTileDrawContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
modelview |
protected Sector |
sector |
protected Rectangle |
viewport |
| Constructor and Description |
|---|
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.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Matrix modelview
protected Sector sector
protected Rectangle viewport
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.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()