You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
804 B
C++

#pragma once
#ifndef __MAPELEVATION_H__
#define __MAPELEVATION_H__
#include "GISManager.h"
#include "Globe.h"
class MapElevation
{
public:
/*!
brief:默认构造函数
*/
MapElevation();
/*!
brief:析构函数
*/
~MapElevation();
/*!
brief:添加高程数据
param:高程路径
return:bool
*/
bool addDem(const char* fileName);
/*!
brief:根据坐标获取高程
param:lon\lat经纬坐标
return:bool高程是否获取成功
*/
bool getElevation(float& alt, const double& lon, const double& lat);
/*!
brief:根据坐标获取高程(另一种获取高程的方式)
param:lon\lat经纬坐标
return:bool高程是否获取成功
*/
bool getElevation2(float& alt, const double& lon, const double& lat);
public:
mapWindow::IGridPtr m_grid;
GISManager* m_gisManager;
bool m_isAdd;
};
#endif