public class TLcdEarthGXYPointDensityLodStrategy extends Object implements ILcdEarthGXYLodSelectionStrategy
Constructor and Description |
---|
TLcdEarthGXYPointDensityLodStrategy()
Creates a LOD strategy with default parameters.
|
TLcdEarthGXYPointDensityLodStrategy(double aNumPointsPerTile,
double aIdealPointDistance)
Creates a LOD strategy with the given parameters.
|
Modifier and Type | Method and Description |
---|---|
double |
getIdealPointDistance() |
int |
getLevel(ILcdEarthTileSet aTileSet,
ILcdEarthTileSetCoverage aCoverage,
Graphics aGraphics,
ILcdGXYContext aContext)
Selects the most appropriate level for the given tileset.
|
double |
getNumPointsPerTile() |
void |
setIdealPointDistance(double aIdealPointDistance) |
void |
setNumPointsPerTile(double aNumPointsPerTile) |
public TLcdEarthGXYPointDensityLodStrategy()
public TLcdEarthGXYPointDensityLodStrategy(double aNumPointsPerTile, double aIdealPointDistance)
aNumPointsPerTile
- The average number of points per tile.aIdealPointDistance
- The ideal distance (in pixels) betweenpublic double getIdealPointDistance()
public void setIdealPointDistance(double aIdealPointDistance)
public double getNumPointsPerTile()
public void setNumPointsPerTile(double aNumPointsPerTile)
public int getLevel(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Graphics aGraphics, ILcdGXYContext aContext)
ILcdEarthGXYLodSelectionStrategy
getLevel
in interface ILcdEarthGXYLodSelectionStrategy
aTileSet
- The tileset.aCoverage
- The coverage of this tileset.aGraphics
- The current graphics.aContext
- The current 2D context.