Package com.luciad.earth.view.gxy
Class TLcdEarthGXYPointDensityLodStrategy
java.lang.Object
com.luciad.earth.view.gxy.TLcdEarthGXYPointDensityLodStrategy
- All Implemented Interfaces:
ILcdEarthGXYLodSelectionStrategy
public class TLcdEarthGXYPointDensityLodStrategy
extends Object
implements ILcdEarthGXYLodSelectionStrategy
A LOD selection strategy that selects the proper level using a fixed point density.
- Since:
- 8.2
-
Constructor Summary
ConstructorDescriptionCreates a LOD strategy with default parameters.TLcdEarthGXYPointDensityLodStrategy
(double aNumPointsPerTile, double aIdealPointDistance) Creates a LOD strategy with the given parameters. -
Method Summary
Modifier and TypeMethodDescriptiondouble
int
getLevel
(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Graphics aGraphics, ILcdGXYContext aContext) Selects the most appropriate level for the given tileset.double
void
setIdealPointDistance
(double aIdealPointDistance) void
setNumPointsPerTile
(double aNumPointsPerTile)
-
Constructor Details
-
TLcdEarthGXYPointDensityLodStrategy
public TLcdEarthGXYPointDensityLodStrategy()Creates a LOD strategy with default parameters. -
TLcdEarthGXYPointDensityLodStrategy
public TLcdEarthGXYPointDensityLodStrategy(double aNumPointsPerTile, double aIdealPointDistance) Creates a LOD strategy with the given parameters.- Parameters:
aNumPointsPerTile
- The average number of points per tile.aIdealPointDistance
- The ideal distance (in pixels) between
-
-
Method Details
-
getIdealPointDistance
public double getIdealPointDistance() -
setIdealPointDistance
public void setIdealPointDistance(double aIdealPointDistance) -
getNumPointsPerTile
public double getNumPointsPerTile() -
setNumPointsPerTile
public void setNumPointsPerTile(double aNumPointsPerTile) -
getLevel
public int getLevel(ILcdEarthTileSet aTileSet, ILcdEarthTileSetCoverage aCoverage, Graphics aGraphics, ILcdGXYContext aContext) Description copied from interface:ILcdEarthGXYLodSelectionStrategy
Selects the most appropriate level for the given tileset.- Specified by:
getLevel
in interfaceILcdEarthGXYLodSelectionStrategy
- Parameters:
aTileSet
- The tileset.aCoverage
- The coverage of this tileset.aGraphics
- The current graphics.aContext
- The current 2D context.- Returns:
- The most appropriate level.
-