public class SurfaceTileDrawContext extends Object
| Modifier and Type | Field and Description |
|---|---|
protected Matrix |
modelview |
protected Collection<PickedObject> |
pickCandidates |
protected Sector |
sector |
protected Rectangle |
viewport |
| Constructor and Description |
|---|
SurfaceTileDrawContext(Tile tile,
Collection<PickedObject> pickCandidates)
Creates a new SurfaceTileDrawContext from the specified tile and collection of pick candidates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addPickCandidate(PickedObject pickedObject)
Adds the specified picked object to this context's the collection of pick candidates.
|
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.
|
Collection<PickedObject> |
getPickCandidates()
Returns the collection of pick candidates associated with this context.
|
Sector |
getSector()
Returns this context's sector.
|
Rectangle |
getViewport()
Returns this context's viewport.
|
protected Matrix modelview
protected Collection<PickedObject> pickCandidates
protected Sector sector
protected Rectangle viewport
public SurfaceTileDrawContext(Tile tile, Collection<PickedObject> pickCandidates)
tile - the context's tile.pickCandidates - the context's list of pick candidates.IllegalArgumentException - if any argument is null.public void addPickCandidate(PickedObject pickedObject)
getPickCandidates().pickedObject - the object to add.IllegalArgumentException - if the object is null.public Matrix getModelviewMatrix()
public Matrix getModelviewMatrix(LatLon referenceLocation)
referenceLocation - the geographic coordinate origin.IllegalArgumentException - if the reference location is null.public Collection<PickedObject> getPickCandidates()
public Sector getSector()
public Rectangle getViewport()