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 Summary
Modifier and TypeMethodDescriptionRequest for all available maps.getNormalMapSource
(int mapId) Request for a normalmap TextureSource of valid type for this Provider.getTerrainSource
(int mapId) Request for a TerrainSource of valid type for this Provider.getTextureSource
(int mapId) Request for a TextureSource of valid type for this Provider.
-
Method Details
-
getAvailableMaps
Request for all available maps. Returns a Map with mapIDs and map names.- Returns:
- Available maps
- Throws:
Exception
- exception
-
getTerrainSource
Request for a TerrainSource of valid type for this Provider.- Parameters:
mapId
- the map id- Returns:
- the terrain source
-
getTextureSource
Request for a TextureSource of valid type for this Provider.- Parameters:
mapId
- the map id- Returns:
- the texture source
-
getNormalMapSource
Request for a normalmap TextureSource of valid type for this Provider.- Parameters:
mapId
- the map id- Returns:
- the texture source of the normal map
-