Files
gjm 164968b62e chore
把非utf8-bom编码的cpp/h文件改为 utf8 bom 编码, msvc识别utf8编码时,如果不是bom格式的,会使用当前cp_oem来解码.
2026-10-04 00:04:20 +08:00

316 lines
9.3 KiB
C++

#pragma once
#include "resource.h"
#include "afxcmn.h"
#include "afxwin.h"
#include "BtnST.h"
#include "JDXZDlg.h"
class CGJYXJMDlg : public CDialog
{
DECLARE_DYNAMIC(CGJYXJMDlg)
public:
CGJYXJMDlg(CWnd* pParent = NULL);
virtual ~CGJYXJMDlg();
enum { IDD = IDD_GJYXJM_DLG };
protected:
virtual void DoDataExchange(CDataExchange* pDX);
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedOk();
afx_msg LONG_PTR onAcadKeepFocus( UINT_PTR, LONG_PTR);
afx_msg void OnBnClickedButton24();
afx_msg void OnBnClickedButton6();
afx_msg void OnDestroy();
afx_msg void OnNMClickTree1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnClose();
afx_msg void OnBnClickedButton33();
afx_msg void OnBnClickedButton32();
afx_msg void OnBnClickedButton27();
afx_msg void OnBnClickedButton31();
afx_msg void OnBnClickedButton8();
afx_msg void OnBnClickedButton9();
afx_msg void OnBnClickedButton25();
afx_msg void OnBnClickedButton22();
afx_msg void OnBnClickedButton17();
afx_msg void OnBnClickedButton19();
afx_msg void OnBnClickedButton13();
afx_msg void OnBnClickedButton11();
afx_msg void OnBnClickedButton23();
afx_msg void OnBnClickedButton34();
afx_msg void OnBnClickedButton28();
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton4();
afx_msg void OnBnClickedButton5();
afx_msg void OnBnClickedButton14();
afx_msg void OnBnClickedButton26();
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton3();
afx_msg void OnBnClickedButton21();
afx_msg void OnBnClickedButton30();
afx_msg void OnBnClickedCancel();
afx_msg void OnBnClickedButton41();
afx_msg void OnBnClickedButton15();
afx_msg void OnBnClickedButton40();
afx_msg void OnBnClickedButton39();
afx_msg void OnBnClickedButton38();
afx_msg void OnBnClickedButton36();
afx_msg void OnBnClickedOk3();
afx_msg void OnBnClickedOk4();
afx_msg void OnBnClickedOk2();
afx_msg void OnBnClickedButton12();
afx_msg void OnBnClickedButton16();
afx_msg void OnBnClickedButton37();
afx_msg void OnBnClickedButton35();
afx_msg void OnBnClickedButton42();
afx_msg void OnBnClickedButton43();
afx_msg void OnBnClickedOk5();
afx_msg void OnBnClickedOk6();
afx_msg void OnNMDblclkTree1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg void OnBnClickedButton29();
afx_msg void OnBnClickedButton20();
afx_msg void OnBnClickedButton44();
afx_msg void OnBnClickedOk7();
afx_msg void OnBnClickedButton45();
afx_msg void OnBnClickedButton46();
afx_msg void OnBnClickedButton7();
afx_msg void OnBnClickedButton47();
afx_msg void OnBnClickedButton48();
afx_msg void OnBnClickedButton18();
afx_msg void OnBnClickedButton49();
afx_msg void OnBnClickedButton51();
afx_msg void OnBnClickedButton50();
afx_msg void OnBnClickedButton52();
afx_msg void OnBnClickedButton64();
afx_msg void OnBnClickedButton57();
afx_msg void OnBnClickedButton65();
afx_msg void OnBnClickedButton53();
afx_msg void OnBnClickedButton58();
afx_msg void OnBnClickedCheck1();
afx_msg void OnBnClickedButton62();
afx_msg void OnBnClickedButton61();
afx_msg void OnBnClickedButton63();
afx_msg void OnBnClickedButton66();
afx_msg void OnBnClickedButton67();
afx_msg void OnBnClickedButton68();
afx_msg void OnBnClickedButton54();
afx_msg void OnBnClickedButton55();
afx_msg void OnBnClickedButton56();
afx_msg void OnBnClickedButton69();
afx_msg void OnBnClickedButton59();
afx_msg void OnBnClickedButton60();
afx_msg void OnBnClickedButton70();
afx_msg void OnNMRClickTree1(NMHDR *pNMHDR, LRESULT *pResult);
afx_msg LRESULT OnItemSelect(WPARAM wp,LPARAM lp);
afx_msg LRESULT OnItemModify(WPARAM wp,LPARAM lp);
afx_msg LRESULT OnItemClick(WPARAM wp,LPARAM lp);
afx_msg void OnTimer(UINT_PTR nIDEvent);
afx_msg LRESULT OnSelFinished(WPARAM wp,LPARAM lp);
afx_msg void OnBnClickedButton71();
afx_msg void OnBnClickedButton72();
afx_msg void OnBnClickedButton73();
afx_msg void OnBnClickedButton74();
afx_msg void OnBnClickedButton76();
afx_msg void OnBnClickedButton75();
afx_msg void OnBnClickedButton77();
afx_msg void OnSize(UINT nType, int cx, int cy);
afx_msg void OnSizing(UINT fwSide, LPRECT pRect);
afx_msg void OnBnClickedButton78();
afx_msg void OnBnClickedButton79();
afx_msg void OnBnClickedButton80();
afx_msg void OnBnClickedButton81();
protected:
void AddX3dPart(AecDbX3dPart* pGroup,LPCTSTR pszName,BOOL bHasOpenFromDb = FALSE);
void AddX3dGroupRec(AecDbX3dGroup* pGroup,LPCTSTR pszName,BOOL bHasOpenFromDb = FALSE);
void AddSubDMeshRec(AecDbX3dGroup* pGroup, LPCTSTR pszName, HTREEITEM parentItem);
void AddPipeLine(AecDbEwPipe* pPipe,BOOL bHasOpenFromDb = FALSE);
void AddFitting(AecDbEwFitting* pFit,LPCTSTR pszName,BOOL bHasOpenFromDb = FALSE);
void AddCableLine(AecDbEwCable* pCable,BOOL bHasOpenFromDb = FALSE);
void AddEquipment(AecDbEwEquipment* pEqu,LPCTSTR pszName,BOOL bHasOpenFromDb = FALSE);
void AddPipeLineForRevit(AcDbVoidPtrArray &arr,BOOL bHasOpenFromDb = FALSE);
void AddCableLineForRevit(AcDbVoidPtrArray &arr,BOOL bHasOpenFromDb = FALSE);
void AddJsGroupForRevit(AcArray<AecDbX3dGroup*> &arr);
bool SaveEarthWormNode(LPCTSTR pszFile,BOOL bHasTip = TRUE);
bool SaveXXXDoghouseNode(LPCTSTR pszFile,BOOL bHasTip = TRUE);
void ShowSubGroup(AecDbX3dGroup* pGroup,HTREEITEM hItemCur);
void ShowSubCable(AecDbEwCable* pCable,HTREEITEM hItem);
void CreateRainbowPippe(AecDbEwPipe* pPipe,AcGePoint3dArray& arPts,bool bIsPipeFromFit = true);
void CreateRoadAxisPippes(AecDbEwPipe* pPipe,AcGePoint3dArray& arPts);
//选定管子按倒虹铺设[测试代码]
void PipeByRainbow();
void UnCheckAllItem(HTREEITEM hItem);
void GetCheckItem(HTREEITEM hParent,CPtrArray& arItemPtrs);
BOOL DoPipeSelPopMenu(HTREEITEM hItem,CPoint point);
BOOL DoPipeExitSelPopMenu(HTREEITEM hItem,CPoint point);
BOOL DoCableExitSelMenu(HTREEITEM hItem,CPoint point);
BOOL DoUShapeAvoidMenu(HTREEITEM hItem,CPoint point);
void DoConnectPipe();
void DoPipeExit();
void DoCableExit();
void DoUShapeAvoid();
void DeletePipe(HTREEITEM hItem);
BOOL DeleteItem(HTREEITEM hItem);
void DeleteItems(CPtrArray &arItems);
void ClickTreeItem(HTREEITEM hItem);
void MoveNodeItem(HTREEITEM hItemCur);
void MoveNodeItems(CPtrArray &arItems);
void RotateNodeItem(HTREEITEM hItemCur);
void RotateNodeItems(CPtrArray &arItems);
void UShapeCable(HTREEITEM hItemCur);
void UShapeCable(HTREEITEM hItemCur,UShapeData& dlg);
BOOL LoadFromFile(CString& sEfeFile,BOOL bIsRecreate = FALSE);
BOOL MergeLoadFromFile(CString& sEfeFile);
int SelectPoint(LPCTSTR pszTip,const AcGePoint3d* pptFr,AcGePoint3d& ptTo);
bool CopyNodeItem(HTREEITEM hItem,const AcGePoint3d& ptFr,const AcGePoint3d& ptTo);
bool MirrorNodeItem(HTREEITEM hItemCur,const AcGePoint3d& ptFr,const AcGePoint3d& ptTo);
// 从SAT格式文件导入
bool ImportBySAT(LPCTSTR pszFile);
#if ARX > 17
// 从js格式文件导入
bool ImportByThreeJS(std::vector<CString> &paths, double &dEwLen);
#endif
public:
AcDbObjectId m_idEWFit; //AecDbEarthWormFitting
AcDbObjectId m_idXXDgh; //AecDbXXXDoghouse
protected:
CTreeCtrl m_wndModelTree;
CImageList m_Imagelist;
CImageList m_Imagelist32;
CImageList m_Imagelist16;
HTREEITEM m_hItemEw;//主管廊
HTREEITEM m_hItemDH;//附属房子
HTREEITEM m_hItemPR;//管线
HTREEITEM m_hItemCb;//线缆
HTREEITEM m_hItemCur;//当前位置
CPtrArray m_arhItemsSelection;
public:
int m_nAxisIndex;
int m_nIndexAxis2;
double m_dMove;
double m_dAngle;
BOOL m_bCheckMSel;
BOOL m_bPipeConnectSelMenu;
BOOL m_bPipeExitSelMenu;
BOOL m_bCableExitSelMenu;
BOOL m_bUShapeAvoidMenu;
int m_nObjInf;
int m_nMovInf;
CString m_sObjInf;
CString m_sMovInf;
CSize m_szDlg;
public:
CButtonST m_wndBt6;
CButtonST m_wndBt24;
CButtonST m_wndBt8;
CButtonST m_wndBt9;
CButtonST m_wndBt22;
CButtonST m_wndeBt17;
CButtonST m_wndBt19;
CButtonST m_wndBt13;
CButtonST m_wndBt11;
CButtonST m_wndBt23;
CButtonST m_wndBt39;
CButtonST m_wndBt38;
CButtonST m_wndBt1;
CButtonST m_wndBt5;
CButtonST m_wndBt14;
CButtonST m_wndBt26;
CButtonST m_wndBt15;
CButtonST m_wndBt2;
CButtonST m_wndBt3;
CButtonST m_wndBt21;
CButtonST m_wndBt30;
CButtonST m_wndBt40;
CButtonST m_wndBt41;
CButtonST m_wndBt4;
CButtonST m_wndBt43;
CButtonST m_wndBt42;
CButtonST m_wndBt37;
CButtonST m_wndBt35;
CButtonST m_wndBt45;
CButtonST m_wndBt46;
CButtonST m_wndBt25;
CButtonST m_wndBT47;
CButtonST m_wndBT52;
CButtonST m_wndBt7;
CButtonST m_wndBtSat;
CButtonST m_wndBt64;
CButtonST m_wndBt65;
CButtonST m_wndBt57;
CButtonST m_wndBt58;
CButtonST m_wndBt60;
CButtonST m_wndBt59;
CButtonST m_wndBt62;
CStatic m_wndInfObj;
CStatic m_wndInfMov;
CButtonST m_wndBt61;
CButtonST m_wndBt63;
CButtonST m_wndBt66;
CButtonST m_wndBt69;
CButtonST m_wndBt70;
CJDXZDlg m_wndSelDlg;
CButtonST m_wndBt74;
CButtonST m_wndBt31;
CButtonST m_wndBt71;
CButtonST m_wndBt36;
CButtonST m_wndBt34;
CButtonST m_wndBt27;
CButtonST m_wndBt72;
CButtonST m_wndBt49;
CButtonST m_wndBt28;
CButtonST m_wndBt75;
CButtonST m_wndBt77;
CButtonST m_wndBt32;
CButtonST m_wndBt76;
CButtonST m_wndBt33;
CButtonST m_wndBt20;
CButtonST m_wndBt44;
CButtonST m_wndBt51;
CButtonST m_wndBtOK7;
CButtonST m_wndBt73;
CButtonST m_wndBtOK2;
CButtonST m_wndBt16;
CButtonST m_wndBtOK3;
CButtonST m_wndBt12;
CButtonST m_wndBtOK;
CButtonST m_wndBt48;
CButtonST m_wndBtOK4;
CButtonST m_wndBtCan;
CButtonST m_wndBt78;
CButtonST m_wndBt79;
CButtonST m_wndBt80;
CButtonST m_wndBt81;
};