#pragma once #include "iSubWndBaseAF.h" #include "nmSubWnd_global.h" class nmDataDemo; class NM_SUB_WND_EXPORT nmSubWndGrid : public iSubWndBaseAF { Q_OBJECT public: explicit nmSubWndGrid(QWidget *parent = 0, QString sExt = ""); ~nmSubWndGrid(); // 配置窗体 virtual void configWnd(); // 初始化UI virtual void initUI(); virtual QWidget* initUiMainWx(); // analyzeData setter and getter nmDataDemo *analyzeData() const; void setAnalyzeData(nmDataDemo *newAnalyzeData); public: // 执行命令:通常来自Ribbon virtual bool runCmdBy(QString sName, QString sID); private: // 生成几何文件 void genGeo(QVector outlinePoints, QVector> wellInfo); // 生成网格文件 void genGrid(); private: nmDataDemo* m_pAnalyzeData; };