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.

87 lines
1.9 KiB
C++

// FaultAmplitudeDlg.h : 头文件
//
#pragma once
#include "afxwin.h"
#include <string>
#include <vector>
#include "afxcolorbutton.h"
class CFaultAmplitudeCreator;
// CFaultAmplitudeDlg 对话框
class CFaultAmplitudeDlg : public CDialog
{
// 构造
public:
CFaultAmplitudeDlg(CWnd* pParent = NULL); // 标准构造函数
~CFaultAmplitudeDlg();
// 对话框数据
#ifdef AFX_DESIGN_TIME
enum { IDD = IDD_FAULTAMPLITUDE_DIALOG };
#endif
protected:
virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV 支持
// 实现
protected:
HICON m_hIcon;
// 生成的消息映射函数
virtual BOOL OnInitDialog();
afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
afx_msg void OnPaint();
afx_msg HCURSOR OnQueryDragIcon();
DECLARE_MESSAGE_MAP()
void FillLayerCombos(void); //填充层位combo
public:
// 断层和测线文件
CString m_strInputFltSurvey;
// 曲面文件
CString m_strInputDfg;
CComboBox m_controlFltLayer;
// 断层名筛选文件
CString m_strFltNameFile;
// 测线层位
CComboBox m_comboSurveyLayer;
// 柱子标识间隔
float m_fStep;
float m_fClrThresholds;
float m_fPillarWidth;
float m_fTextHeight;
float m_fPillarHeightRatio;
// 输出的图形
CString m_strOutFigure;
// 输出的数据
CString m_strOutData;
afx_msg void OnBnClickedButtonInputFltSurvey();
afx_msg void OnBnClickedButtonInputDfg();
afx_msg void OnBnClickedButtonInputFaultNameFile();
afx_msg void OnBnClickedButtonOutputFigure();
afx_msg void OnBnClickedButtonOutputData();
COLORREF GetLowColor(void);
COLORREF GetHighColor(void);
int m_iCalcOption;// 0=等间隔 1=测线计算
//读取参数
void ReadParameters(void);
public:
bool ReadDfd(void);
bool ReadDfg(void);
private:
//CFaultAmplitudeCreator* m_fmc;
std::vector<std::string> m_layers;
public:
CMFCColorButton m_cbtnLow;
CMFCColorButton m_cbtnHigh;
afx_msg void OnBnClickedRadio3();
afx_msg void OnBnClickedRadio4();
afx_msg void OnBnClickedOk();
BOOL m_bLocalDirect;
};