HeightmapDataLoader Class Reference

Helper class for loading heightmap data. More...

#include <common/common.hh>

Static Public Member Functions

static HeightmapDataLoadTerrainFile (const std::string &_filename)
 Load a terrain file specified by _filename. More...
 

Detailed Description

Helper class for loading heightmap data.

Member Function Documentation

static HeightmapData* LoadTerrainFile ( const std::string &  _filename)
static

Load a terrain file specified by _filename.

The terrain file format might be an image or a DEM file. libgdal is required to enable DEM support. For a list of all raster formats supported you can type the command "gdalinfo --formats".

Parameters
[in]_filenameThe path to the terrain file.
Returns
0 when the operation succeeds to load a file or -1 when fails.

The documentation for this class was generated from the following file: