Show GDALElevationLoader.h syntax highlighted
#ifndef _GDALELEVATIONLOADER_DEMETER_
#define _GDALELEVATIONLOADER_DEMETER_
#include "Demeter/Globals.h"
#include "Demeter/Terrain.h"
// If this flag is #defined, then all elevation data loaded by GDAL will be mirrored about the X-axis
// when loaded into Demeter. Turn this #define off if your elevation data seems to be "mirrored" horizontally.
#define _SWAP_VERTICAL
/// \brief The Demeter Terrain Engine.
namespace Demeter
{
class TERRAIN_API GDALElevationLoader
{
public:
static GDALElevationLoader* GetInstance();
bool LoadElevations(std::string filename,float vertexSpacing,float elevationScale,Demeter::Terrain* pTerrain,bool swapVertical = false);
private:
GDALElevationLoader();
~GDALElevationLoader();
void DimensionPowerOf2(int origX, int origY, int &newX, int &newY);
bool m_FirstTimeLoad;
static GDALElevationLoader* m_Instance;
};
}
#endif
See more files for this project here