// DormerPar.h: interface for the TDormerPar class. // ////////////////////////////////////////////////////////////////////// #if !defined(AFX_DORMERPAR_H__13E83341_D609_11D2_92CB_0000E82EAAC8__INCLUDED_) #define AFX_DORMERPAR_H__13E83341_D609_11D2_92CB_0000E82EAAC8__INCLUDED_ #if _MSC_VER >= 1000 #pragma once #endif // _MSC_VER >= 1000 #include "ImageDc.h" class TDormerPar { public: int mType; //ads_point mInsertPt; //ads_point mFacePt1; //ads_point mFacePt2; //ads_point mFacePt3; double mRoofGrade; double mGradeHeight; double mWinWith; double mWallHeight; double mBrimThick; double mBrimLength; double mHillLength; public: TDormerPar(); virtual ~TDormerPar(); int getType() const{ return mType; } double getRoofGrade() const { return mRoofGrade; } double getGradeHeight() const { return mGradeHeight; } double getWinWith() const { return mWinWith; } double getWallHeight() const { return mWallHeight; } double getBrimThick() const{ return mBrimThick; } double getHillLength() const{ return mHillLength; } double getBrimLength() const{ return mBrimLength; } }; class CDlgTiggerWin : public GlwCAcUiDialog { // Construction public: CDlgTiggerWin(CWnd* pParent = NULL); // standard constructor ~CDlgTiggerWin(); int DrawDormer(const AcGePlane &face); int ModifyDormer(AcDbObjectId id, AcGePoint3d ptInsert, AcGeVector3d vtNormal); AcDbObjectId MakeDormer(const AcGePlane &face, AcGePoint3d &ptIns); BOOL Obj2Dlg(const TDormerPar *pDormer); // Dialog Data //{{AFX_DATA(CDlgTiggerWin) enum { IDD = IDD_DORMER }; CStatic m_image; CComboBox m_Type; double m_RoofGrade; double m_GradeHeight; double m_WinWith; double m_WallHeight; double m_BrimThick; double m_HillLength; double m_BrimLength; //}}AFX_DATA protected: static int m_iType; XString m_strFilePath; CImageDC m_slideDc; // Overrides // ClassWizard generated virtual function overrides //{{AFX_VIRTUAL(CDlgTiggerWin) protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support //}}AFX_VIRTUAL // Implementation protected: void OpenSlide(XString strFilePath); // Generated message map functions //{{AFX_MSG(CDlgTiggerWin) afx_msg void OnButtoncan(); afx_msg void OnButtonok(); afx_msg void OnButtonhlp(); virtual BOOL OnInitDialog(); afx_msg void OnSelchangeCombo1(); afx_msg void OnPaint(); //}}AFX_MSG DECLARE_MESSAGE_MAP() }; #endif // !defined(AFX_DORMERPAR_H__13E83341_D609_11D2_92CB_0000E82EAAC8__INCLUDED_)