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

81 lines
1.8 KiB
C++

#pragma once
#include "afxwin.h"
#include "resource.h"
#include "EarThwormDef.h"
#include "GsPreviewCtrl.h"
#include "uiiado.h"
class CPLGZDlg : public CDialog
{
DECLARE_DYNAMIC(CPLGZDlg)
public:
CPLGZDlg(CWnd *pParent = NULL);
virtual~CPLGZDlg(void);
//{{AFX_DATA(CPLGZDlg)
enum { IDD = IDD_PLGZ_DLG };
CComboBox m_wndComSteel;
CComboBox m_wndComboAngle;
CComboBox m_wndComboYSize;
CComboBox m_wndComboXSize;
CComboBox m_wndComboShape;
CGsPreviewCtrl m_wndPreview;
int m_nShape;
double m_dXSize;
double m_dYSize;
CString m_sA;
CString m_sB;
CString m_sC;
CString m_sD;
//}}AFX_DATA
CString m_sBlockName;
AcDbObjectId m_idStellCol;
CUIISQLiteServer m_dbSQLite;
BOOL GetColumnData(ColumnParam& data2) const;
BOOL SetColumnData(ColumnParam &data2,int nCount, BOOL bIsBeam = 0);
protected:
virtual void DoDataExchange(CDataExchange *pDX);
//{{AFX_MSG(CPLGZDlg)
afx_msg void OnSelchangeCmbShape();
afx_msg void OnSelchangeCmbsteel();
afx_msg void OnBnClickedOk();
afx_msg void OnDestroy();
afx_msg void OnBnClickedCheckHatch();
afx_msg void OnBnClickedBtnFill();
//}}AFX_MSG
DECLARE_MESSAGE_MAP()
public:
virtual BOOL OnInitDialog();
void PreviewColumn();
bool GetActiveViewPortInfo(AcDbDatabase *pDb, ads_real &height, ads_real &width, AcGePoint3d &target, AcGeVector3d &viewDir, ads_real &viewTwist, bool getViewCenter);
void SetViewTo(AcGsView *pView, AcDbDatabase *pDb, AcGeMatrix3d &viewMat);
Acad::ErrorStatus InitDrawingControl(AcDbDatabase *pDb, const TCHAR *space = ACDB_MODEL_SPACE);
AcDbObjectId CreateIStellBlock();
AcDbObjectId CreateOStellBlock();
public:
double m_dBomEl;
double m_dH;
CString m_sMaterial;
AcDbDatabase *m_pDb;
AcDbObjectId m_idCol;
CString m_sHatch;
CString m_sModel;
CButton m_wndBtHatch;
BOOL m_bAddHatch;
bool m_bInplace;
int m_nCount;
BOOL m_bIsBeam;
};