Class VectorTiledDataset
java.lang.Object
com.google.common.cache.CacheLoader<net.buildtheearth.terracore.geo.TileLocation,CompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>>
net.buildtheearth.terracore.worldgen.dataset.Dataset<net.buildtheearth.terracore.geo.TileLocation,net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>
net.buildtheearth.terracore.worldgen.dataset.TiledDataset<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>
net.buildtheearth.terracore.worldgen.dataset.vector.VectorTiledDataset
- All Implemented Interfaces:
IDataset<net.buildtheearth.terracore.geo.TileLocation,,net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>> IElementDataset<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>
public class VectorTiledDataset
extends TiledDataset<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>
implements IElementDataset<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.common.cache.CacheLoader
com.google.common.cache.CacheLoader.InvalidCacheLoadException, com.google.common.cache.CacheLoader.UnsupportedLoadingOperationException -
Field Summary
FieldsFields inherited from class net.buildtheearth.terracore.worldgen.dataset.TiledDataset
projection, tileSize -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[]> getAsync(@NonNull net.buildtheearth.terracore.geo.CornerBoundingBox2d bounds) Gets all of the elements that intersect the given bounding box.CompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>> load(@NonNull net.buildtheearth.terracore.geo.TileLocation key) Methods inherited from class net.buildtheearth.terracore.worldgen.dataset.TiledDataset
projection, tileSizeMethods inherited from class com.google.common.cache.CacheLoader
asyncReloading, from, from, loadAll, reload
-
Field Details
-
delegate
-
-
Constructor Details
-
VectorTiledDataset
-
-
Method Details
-
load
public CompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>> load(@NonNull @NonNull net.buildtheearth.terracore.geo.TileLocation key) throws Exception - Specified by:
loadin classDataset<net.buildtheearth.terracore.geo.TileLocation,net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>> - Throws:
Exception
-
getAsync
public CompletableFuture<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>[]> getAsync(@NonNull @NonNull net.buildtheearth.terracore.geo.CornerBoundingBox2d bounds) throws net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException Description copied from interface:IElementDatasetGets all of the elements that intersect the given bounding box.- Specified by:
getAsyncin interfaceIElementDataset<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>- Parameters:
bounds- the bounding box- Returns:
- a
CompletableFuturewhich will be completed with the elements - Throws:
net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException
-