Interface TerrainDataProvider

All Known Implementing Classes:
ArrayTerrainDataProvider, InMemoryTerrainDataProvider, ProceduralTerrainDataProvider, SimpleArrayTerrainDataProvider

public interface TerrainDataProvider
The TerrainDataProvider is the connection between the terrain core and external data.
  • Method Details

    • getAvailableMaps

      Map<Integer,String> getAvailableMaps() throws Exception
      Request for all available maps. Returns a Map with mapIDs and map names.
      Returns:
      Available maps
      Throws:
      Exception - exception
    • getTerrainSource

      TerrainSource getTerrainSource(int mapId)
      Request for a TerrainSource of valid type for this Provider.
      Parameters:
      mapId - the map id
      Returns:
      the terrain source
    • getTextureSource

      TextureSource getTextureSource(int mapId)
      Request for a TextureSource of valid type for this Provider.
      Parameters:
      mapId - the map id
      Returns:
      the texture source
    • getNormalMapSource

      TextureSource getNormalMapSource(int mapId)
      Request for a normalmap TextureSource of valid type for this Provider.
      Parameters:
      mapId - the map id
      Returns:
      the texture source of the normal map