#pragma once #include "resource.h" #include "GsPreviewCtrl.h" #include "DlgBase.h" #include "afxwin.h" #include "BtnST.h" class AecDbX3dGroup; class AecDbObjXDataMap; class AecDbEarthWorm; class AecDbEarthWormFitting; class CDGGLDlg : public CBaseDialog { DECLARE_DYNAMIC(CDGGLDlg) public: static void Start(); public: CDGGLDlg(bool bInsertLibrary = false, CWnd* pParent = NULL); virtual ~CDGGLDlg(); int GetX3dSolidRecs(AecDbX3dGroup*& pGroup); int GetX3dSolidRecsRB(AecDbX3dGroup*& pGroup); STSection* GetSTSection( ); void ReloadGLBJ(AecDbObjXDataMap* pXDataMap); void ReloadBZJC(AecDbObjXDataMap* pXDataMap); void GetRoomNames(CStringArray& arRoomNames); enum { IDD = IDD_DGGL_DLG }; protected: virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedBtaddroom(); afx_msg void OnBnClickedBtmodiroom(); afx_msg void OnBnClickedBtaddtodb(); afx_msg void OnBnClickedBtselfromdb(); afx_msg void OnBnClickedBtmodiroom2(); afx_msg void OnEnChangeEdith(); afx_msg void OnEnChangeEditt1(); afx_msg void OnEnChangeEditt2(); afx_msg void OnEnChangeEditcharm(); afx_msg void OnBnClickedButton1(); afx_msg void OnCbnSelchangeCombo4(); afx_msg void OnEnKillfocusEditroomw(); afx_msg void OnBnClickedButton4(); afx_msg void OnEnChangeEdit24(); afx_msg void OnBnClickedButton2(); afx_msg void OnBnClickedBtaddroom2(); afx_msg void OnBnClickedBtaddroom3(); afx_msg void OnBnClickedBtaddroom4(); afx_msg void OnBnClickedBtaddroom5(); afx_msg void OnBnClickedBtaddroom6(); afx_msg void OnBnClickedBtaddroom7(); afx_msg void OnBnClickedBtaddroom9(); afx_msg void OnBnClickedBtaddroom8(); afx_msg void OnBnClickedBtaddroom10(); afx_msg void OnBnClickedBtaddroom11(); afx_msg void OnBnClickedButton6(); afx_msg void OnBnClickedButton5(); afx_msg void OnBnClickedButton3(); virtual void OnViewLButtonDownMsg(); // 设置管廊pEw的舱室功能 void SetFeatureForEarthworm(AecDbEarthWorm *pEw); // 设置AecDbEarthWormFitting的舱室功能 void SetFeatureForEarthworm(AecDbEarthWormFitting *pEw); // 得到管廊pEw的舱室功能,设置到界面上 void InitRoomFeature(const AecDbEarthWorm *pEw); float m_dInterH; float m_dOutT; float m_dRoomWAdd; float m_dIntT; private: //EWFnctNode m_data; // 城市 CString m_sCity; // 道路名 CString m_sRoad; CMapStringToString m_mapAddtion; // 是否是入库模式 bool m_bIsInsertLibrary; AecDbX3dGroup* m_pGroup; AecDbX3dGroup* m_pGroupRB; AecDbObjXDataMap* m_pGLBJXDataMap; AecDbObjXDataMap* m_pGLBZJCDataMap; public: bool m_bIsYXGLJD;//是否异型管廊节点 bool m_bHasGrade;//是否有坡度,建模需要 float m_dYXLen; CString m_sRoomName; CMapStringToString m_mapIndexToName; double m_dG; CStatic m_wndStaticG; CEdit m_wndEditG; CStatic m_wndStaticP; CButton m_wndRoomReducerBt; CButton m_wndBTRainbow; CComboBox m_wndCombo4; double m_dt4; double m_dt5; CImageList m_Imagelist32; CButtonST m_wndButton2; CButtonST m_wndButton4; CButtonST m_wndButton3; CButtonST m_wndButton5; CButtonST m_wndButton6; CButtonST m_wndButton9; CButtonST m_wndButton8; CButtonST m_wndButton10; CButtonST m_wndButton7; CButtonST m_wndButton11; CButtonST m_wndButton12; CButtonST m_wndButton13; CButtonST m_wndButton14; afx_msg void OnBnClickedSetSection(); afx_msg void OnBnClickedHorseshoeSection(); afx_msg void OnBnClickedTest(); int m_iSectionType; // 当前所选的截面描述 STSection m_curSection; afx_msg void OnBnClickedRadio(); };