Files
envi-code/SourceCode/Code2026/EarthWormCmd/BZGDDlg.h
T
2026-09-28 15:28:50 +08:00

86 lines
1.9 KiB
C++

#pragma once
#include "resource.h"
#include "afxcmn.h"
#include "afxwin.h"
#include "GsPreviewCtrl.h"
#include "uiiado.h"
#include "AcDbX3dSolid.h"
class AecDbX3dGroup;
class AecDbEwPipe;
class CBZGDDlg : public CDialog
{
DECLARE_DYNAMIC(CBZGDDlg)
public:
CBZGDDlg(CWnd* pParent = NULL);
virtual ~CBZGDDlg();
enum { IDD = IDD_BZGD_DLG };
void SetCrossSectionScr(LPCTSTR psz){ m_sCrossSectionScr = psz; }
int GetX3dSolidRecs( AecDbX3dGroup*& pGroup);
int GetPipe(AecDbEwPipe*& pPipe);
int GetPipe(AcDbVoidPtrArray& arPipePtrs,AcDbLine* pLine = NULL);
int GetPathPipe(AcDbVoidPtrArray& arPipePtrs,AcDbVoidPtrArray& arFittPtrs);
void SetEWFittingId(AcDbObjectId& id,double dLen);
void SetXXXHouseID(AcDbObjectId& id);
protected:
virtual void DoDataExchange(CDataExchange* pDX);
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
afx_msg void OnBnClickedOk();
afx_msg LRESULT OnViewLButtonDown(WPARAM wp,LPARAM lp);
afx_msg void OnStnClickedStaticColor();
afx_msg HBRUSH OnCtlColor(CDC* pDC, CWnd* pWnd, UINT nCtlColor);
afx_msg void OnBnClickedButton1();
afx_msg void OnBnClickedButton2();
afx_msg void OnBnClickedButton11();
afx_msg void OnBnClickedButton52();
void ShowEarthWorm();
void InitPipeList();
void InitElbowCrt();
public:
double m_dX;
double m_dZ;
int m_nN;
double m_dRRato;
double m_dLen;
BOOL m_bRight;
CString m_sCurrSys;
CString m_sMertial;
double m_dDn;
double m_dt;
double m_dOD;
int m_nPipeColor;
int m_idxRoom;
AcGePoint3d m_ptInfLast;
BOOL m_bInfLast;
CString m_sCrossSectionScr;
AcGeVector3d m_vtDir;
bool m_bAllRoomPipes;
bool m_bByPath;
AcGePoint3dArray m_arPtsPath;
public:
AcDbObjectId m_idEWFit;
AcDbObjectId m_idHouse;
CGsPreviewCtrl m_wndViewCtrl;
AcDbPolyline* m_pRectCell;
CListCtrl m_wndPipeList;
CUIISQLiteServer m_dbSQLite;
CListBox m_wndListBoxMaters;
CListBox m_wndSysListBox;
AecInterface* m_pInf;
CString m_sInfDir;
CString m_sPipeNo;
CListBox m_wndListBox;
};