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

    Fields
    Modifier and Type
    Field
    Description
    protected final IDataset<String,VectorGeometry[]>
     

    Fields inherited from class net.buildtheearth.terracore.worldgen.dataset.TiledDataset

    projection, tileSize

    Fields inherited from class net.buildtheearth.terracore.worldgen.dataset.Dataset

    cache
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    CompletableFuture<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, tileSize

    Methods inherited from class net.buildtheearth.terracore.worldgen.dataset.Dataset

    getAsync

    Methods inherited from class com.google.common.cache.CacheLoader

    asyncReloading, from, from, loadAll, reload

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

  • 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:
      load in class Dataset<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: IElementDataset
      Gets all of the elements that intersect the given bounding box.
      Specified by:
      getAsync in interface IElementDataset<net.buildtheearth.terracore.geo.bvh.BVH<VectorGeometry>>
      Parameters:
      bounds - the bounding box
      Returns:
      a CompletableFuture which will be completed with the elements
      Throws:
      net.buildtheearth.terracore.geo.projection.OutOfProjectionBoundsException