#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 CHZGLDlg : public CBaseDialog { DECLARE_DYNAMIC(CHZGLDlg) public: CHZGLDlg(bool bInsertLibrary = false, CWnd* pParent = NULL); virtual ~CHZGLDlg(); int GetX3dSolidRecs(AecDbX3dGroup*& pGroup); int GetX3dSolidRecsRB(AecDbX3dGroup*& pGroup); void ReloadGLBJ(AecDbObjXDataMap* pXDataMap); void ReloadBZJC(AecDbObjXDataMap* pXDataMap); void GetRoomNames(CStringArray& arRoomNames); enum { IDD = IDD_HZGL_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(); afx_msg void OnEnKillfocusEditt4(); afx_msg void OnEnKillfocusEditt3(); afx_msg void OnBnClickedButton17(); afx_msg void OnBnClickedButton56(); afx_msg void OnBnClickedButton11(); afx_msg void OnBnClickedButton19(); afx_msg void OnBnClickedBtmodiroom3(); afx_msg void OnBnClickedCheck1(); afx_msg void OnBnClickedCheck3(); afx_msg void OnEnKillfocusEdith13(); afx_msg void OnEnKillfocusEdith12(); virtual void OnViewLButtonDownMsg(); // 设置管廊pEw的舱室功能 void SetFeatureForEarthworm(AecDbEarthWorm *pEw); // 设置AecDbEarthWormFitting的舱室功能 void SetFeatureForEarthworm(AecDbEarthWormFitting *pEw); // 得到管廊pEw的舱室功能,设置到界面上 void InitRoomFeature(const AecDbEarthWorm *pEw); void ExtractTopAndBomAdd(AcGePoint2d& pt2d); void ExtractExtMap(ESection eSecType,AcGeLineSeg3d ln); bool GetOffsetRect(int nRoomIndex,CString& sOffsets); void UpdateSplitRoomName(AecDbEarthWorm* pWorm); void initByCrossSectionScr(); private: //EWFnctNode m_data; // 城市 CString m_sCity; // 道路名 CString m_sRoad; // 是否是入库模式 bool m_bIsInsertLibrary; AecDbX3dGroup* m_pGroupBJ;//变径 AecDbX3dGroup* m_pGroupRB;//倒虹 AecDbObjXDataMap* m_pGLBJXDataMap; AecDbObjXDataMap* m_pGLBZJCDataMap; public: bool m_bIsLSGL; // 是否是路生管廊 bool m_bIsYXGLJD;//是否异型管廊节点 bool m_bHasGrade;//是否有坡度,建模需要 float m_dYXLen; CString m_sRoomName; double m_dG; double m_dt4; double m_dt5; float m_dInterH; float m_dOutT; float m_dRoomWAdd; float m_dIntT; // 0 内径左 1 内径中线 2 内径右 3 管廊中线 int m_nAlign; BOOL m_bTopNoCharm; BOOL m_bBomNoCharm; double m_dh0; double m_dh1; CStatic m_wndStaticG; CEdit m_wndEditG; CStatic m_wndStaticP; CButton m_wndRoomReducerBt; CButton m_wndBTRainbow; CComboBox m_wndCombo4; 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; CButtonST m_wndButton17; CButtonST m_wndButton56; CButtonST m_wndButtonCo11; CButtonST m_wndButtonO19; double m_dLRAddThick; int m_nLRAddThick; };