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.
60 lines
1.1 KiB
C++
60 lines
1.1 KiB
C++
#ifndef LOADONLINEMAPDIALOG_H
|
|
#define LOADONLINEMAPDIALOG_H
|
|
|
|
|
|
#include "MapEditor/UGMapEditorWnd.h"
|
|
#include <QDialog>
|
|
#include <Workspace/UGWorkspace.h>
|
|
#include "scenecontrol.h"
|
|
|
|
//MSVC编译器界面显示乱码问题
|
|
//#if _MSC_VER >= 1600
|
|
// #pragma execution_character_set("utf-8")
|
|
//#endif
|
|
|
|
using namespace UGC;
|
|
|
|
namespace Ui {
|
|
class LoadOnlineMapDialog;
|
|
}
|
|
|
|
|
|
class LoadOnlineMapDialog : public QDialog
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit LoadOnlineMapDialog(QWidget *parent = nullptr);
|
|
~LoadOnlineMapDialog();
|
|
|
|
void setWorkspace(UGWorkspace* pWorkspace,UGMapEditorWnd* pEditorWnd);
|
|
|
|
void setScene(SceneControl* m_pSceneControl);
|
|
|
|
private slots:
|
|
void on_openMapBtn_clicked();
|
|
|
|
void on_cancelBtn_clicked();
|
|
|
|
private:
|
|
void addMapSourceItem();
|
|
|
|
QString getDataType(int item);
|
|
|
|
bool loadTiandituMap(int item); //加载天地图影像
|
|
|
|
void loadSceneTiandituMap(int item); //加载场景天地图影像
|
|
|
|
private:
|
|
Ui::LoadOnlineMapDialog *ui;
|
|
|
|
UGWorkspace* pWorkspace;
|
|
UGMapEditorWnd* pEditorWnd;
|
|
|
|
SceneControl* m_pSceneControl;
|
|
|
|
bool is3DMap;
|
|
};
|
|
|
|
#endif // LOADONLINEMAPDIALOG_H
|