public class LevelSetConfig
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 the level set.
|
int |
numLevels
The number of levels in the level set.
|
Sector |
sector
The sector spanned by the level set.
|
int |
tileHeight
The height in pixels of images associated with tiles in the level set, or the number of sample points in the
latitudinal direction of elevation tiles associated with the level set.
|
int |
tileWidth
The width in pixels of images associated with tiles in the level set, or the number of sample points in the
longitudinal direction of elevation tiles associated with the level set.
|
Constructor and Description |
---|
LevelSetConfig()
Constructs a level set configuration with default values.
|
LevelSetConfig(Sector sector,
double firstLevelDelta,
int numLevels,
int tileWidth,
int tileHeight)
Constructs a level set configuration with specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
numLevelsForMinResolution(double radiansPerPixel)
Returns the number of levels closest to the specified resolution, but does not exceed it.
|
int |
numLevelsForResolution(double radiansPerPixel)
Returns the number of levels necessary to achieve the specified resolution.
|
public final Sector sector
public double firstLevelDelta
public int numLevels
public int tileWidth
public int tileHeight
public LevelSetConfig()
public LevelSetConfig(Sector sector, double firstLevelDelta, int numLevels, int tileWidth, int tileHeight)
sector
- the sector spanned by the level set, may be null in which case the sector spanning the
full sphere is usedfirstLevelDelta
- 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 the level set, or the number of
sample points in the longitudinal direction of elevation tiles associate with the level
settileHeight
- the height in pixels of images associated with tiles in the level set, or the number of
sample points in the latitudinal direction of elevation tiles associate with the level
setpublic int numLevelsForResolution(double radiansPerPixel)
radiansPerPixel
- the desired resolution in radians per pixeljava.lang.IllegalArgumentException
- If the resolution is not positivepublic int numLevelsForMinResolution(double radiansPerPixel)
radiansPerPixel
- the desired not to exceed resolution in radians per pixeljava.lang.IllegalArgumentException
- If the resolution is not positive