public class LevelSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
double |
firstLevelDelta
The geographic width and height in degrees of tiles in the first level (lowest resolution) of this level set.
|
Sector |
sector
The sector spanned by this level set.
|
int |
tileHeight
The height in pixels of images associated with tiles in this level set, or the number of sample points in the
latitudinal direction of elevation tiles associated with this level set.
|
int |
tileWidth
The width in pixels of images associated with tiles in this level set, or the number of sample points in the
longitudinal direction of elevation tiles associated with this level set.
|
Constructor and Description |
---|
LevelSet()
Constructs an empty level set with no levels.
|
LevelSet(LevelSetConfig config)
Constructs a level set with parameters from a specified configuration.
|
LevelSet(Sector sector,
double firstLevelDelta,
int numLevels,
int tileWidth,
int tileHeight)
Constructs a level set with specified parameters.
|
Modifier and Type | Method and Description |
---|---|
Level |
firstLevel()
Returns the first level (lowest resolution) of this level set.
|
Level |
lastLevel()
Returns the last level (highest resolution) of this level set.
|
Level |
level(int levelNumber)
Returns the
Level for a specified level number. |
Level |
levelForResolution(double radiansPerPixel)
Returns the level that most closely approximates the specified resolution.
|
int |
numLevels()
Returns the number of levels in this level set.
|
public final Sector sector
public final double firstLevelDelta
public final int tileWidth
public final int tileHeight
public LevelSet()
level
, levelForResolution
,
firstLevel
and lastLevel
always return null.public LevelSet(Sector sector, double firstLevelDelta, int numLevels, int tileWidth, int tileHeight)
sector
- the sector spanned by this level setfirstLevelDelta
- the geographic width and height in degrees of tiles in the first level (lowest resolution)
of the level setnumLevels
- the number of levels in the level settileWidth
- the height in pixels of images associated with tiles in this level set, or the number of
sample points in the longitudinal direction of elevation tiles associate with this level
settileHeight
- the height in pixels of images associated with tiles in this level set, or the number of
sample points in the latitudinal direction of elevation tiles associate with this level
setjava.lang.IllegalArgumentException
- If any argument is null, or if any dimension is zeropublic LevelSet(LevelSetConfig config)
config
- the configuration for this level setjava.lang.IllegalArgumentException
- If the configuration is null, or if any configuration value is invalidpublic int numLevels()
public Level level(int levelNumber)
Level
for a specified level number.levelNumber
- the number of the desired levelpublic Level levelForResolution(double radiansPerPixel)
radiansPerPixel
- the desired resolution in radians per pixeljava.lang.IllegalArgumentException
- If the resolution is not positivepublic Level firstLevel()
public Level lastLevel()