#pragma once #include "resource.h" #include "afxwin.h" #include "BtnST.h" #include "GsPreviewCtrl.h" #include "AecDbObjXDataMap.h" #include "EarThwormDef.h" class CDGJMDlg : public CDialog { DECLARE_DYNAMIC(CDGJMDlg) public: CDGJMDlg(CWnd* pParent = NULL); virtual ~CDGJMDlg(); enum { IDD = IDD_DGJM_DLG }; protected: virtual void DoDataExchange(CDataExchange* pDX); DECLARE_MESSAGE_MAP() public: virtual BOOL OnInitDialog(); afx_msg void OnBnClickedOk(); afx_msg void OnBnClickedButton1(); afx_msg void OnBnClickedBtaddtodb(); afx_msg void OnBnClickedBtselfromdb(); afx_msg void OnBnClickedButton4(); afx_msg void OnBnClickedButton13(); afx_msg void OnBnClickedButton17(); afx_msg void OnBnClickedButton56(); afx_msg void OnDestroy(); afx_msg LRESULT OnViewLButtonDown(WPARAM wp,LPARAM lp); afx_msg void OnCbnSelchangeCombo4(); afx_msg void OnEnChangeEdit24(); afx_msg void OnBnClickedBtaddroom2(); afx_msg void OnBnClickedBtaddroom3(); afx_msg void OnBnClickedBtaddroom4(); afx_msg void OnBnClickedBtaddroom5(); afx_msg void OnBnClickedBtaddroom6(); afx_msg void OnBnClickedBtaddroom9(); afx_msg void OnBnClickedBtaddroom8(); afx_msg void OnBnClickedBtaddroom10(); afx_msg void OnBnClickedBtaddroom7(); afx_msg void OnBnClickedBtaddroom11(); afx_msg void OnBnClickedButton6(); afx_msg void OnBnClickedButton19(); afx_msg void OnBnClickedButton74(); afx_msg void OnBnClickedButton11(); afx_msg void OnBnClickedButton81(); afx_msg void OnBnClickedButton3(); void ShowEwSection(); void ShowLastSection(); void SetInplaceEdit(bool bInput); void SetCrossSectionScr(LPCTSTR pszCrossSectionScr,const AcGePoint3d& pt); void SetAddtionScr(LPCTSTR pszAddtionScr); void GetAddtionScr(CString& sScr) const; STSection* GetSTSection(); void SetSTSection(STSection* pSection); AecDbObjXDataMap* GetSpecMapData( ); void ExtrAddtionToMap(); void FormatAddtionScr(); bool GetThick(double& dt); int GetIdxOfRoom(); void ExtractRegionRooms(); void GetRoomNames(CStringArray& arRooms); void RedrawDrawRegion(); void ShowRoomName(); void ShowAddtion(); int GetDrawBuffer(AcDbVoidPtrArray& arDrawbuffer) const; protected: 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_wndButton19; CButtonST m_wndButton74; CButtonST m_wndButtonCo11; CButtonST m_wndButton81; //舱室名称和偏移 CMapStringToString m_mapIndexToName; //附属脚本如支架 CMapStringToString m_mapAddtion; // gsview控件 CGsPreviewCtrl m_wndViewCtrl; // 缓存,出图用 AcDbVoidPtrArray m_arDrawBuffer; // 舱体类型 std::vector m_roomTypes; CMapStringToPtr m_mapIndexToDbText; //点击的舱室 AcDbEntity* m_pRegionRoom; //所有的舱室 AcDbVoidPtrArray m_arRegionRooms; // 城市 CString m_sCity; // 道路名 CString m_sRoad; // 当前所选的截面描述 STSection m_curSection; CString m_sCrossSectionScr; CString m_sAddtionScr; AecDbObjXDataMap m_mapSpecXData; public: double m_dYXLen; double m_dT1; double m_dT2; double m_dT4; double m_dT5; bool m_bIsYXGLJD; CComboBox m_wndCombo4; CString m_sRoomName; CEdit m_wndEditName; BOOL m_bShowAddtion3d; BOOL m_bBHShortDraw; };