74 lines
2.0 KiB
C++
74 lines
2.0 KiB
C++
#if !defined(AFX_STAKEDLG_H__9179498C_DC54_461E_9EAD_2031FB6E05CA__INCLUDED_)
|
|
#define AFX_STAKEDLG_H__9179498C_DC54_461E_9EAD_2031FB6E05CA__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif
|
|
|
|
#include "resource.h"
|
|
class CStakeDlg : public CDialog
|
|
{
|
|
public:
|
|
CStakeDlg(CWnd* pParent = NULL); // standard constructor
|
|
|
|
public:
|
|
//单点插入桩
|
|
void InsStakeOnPoint(Entity ent,XPoint ptBefore,double &dBeforeNum,XPoint ptPick,
|
|
CString &sLineDis,CString &sLineLen,CString &sStakePrefix,
|
|
CString &sStartDis,int nLablePlace);
|
|
|
|
//沿线插入桩
|
|
BOOL InsStakeByLine(Entity &ent,Entity ent2, double &dBeforeNum, XPoint &ptBefore,
|
|
XPoint &ptEnd,CString &sLineDis,CString &sLineLen,CString &sStakePrefix,
|
|
CString &sStartDis,int nLablePlace,double dStakeBetween);
|
|
|
|
//得到实体上的选择集
|
|
void GetCurvePickSet(Entity ent,PickSet &ss,RBList &rbMask);
|
|
|
|
//得到新的前一点和距离
|
|
void GetNewPtAddDis(Entity ent,PickSet &ss,XPoint &ptBefore,XPoint ptPick, double &dBeforeNum);
|
|
//{{AFX_DATA(CStakeDlg)
|
|
enum { IDD = IDD_STAKE };
|
|
CComboBox m_comboStakeStyle;
|
|
CString m_sStartDis;
|
|
CString m_sLineDis;
|
|
CString m_sLineLen;
|
|
int m_nLablePlace;
|
|
CString m_sStakeBetween;
|
|
CString m_sStakePrefix;
|
|
CString m_sTextHeight;
|
|
CString m_sDecimalNum;
|
|
int m_nTextAngType;
|
|
//}}AFX_DATA
|
|
|
|
|
|
//{{AFX_VIRTUAL(CStakeDlg)
|
|
protected:
|
|
virtual void DoDataExchange(CDataExchange* pDX);
|
|
//}}AFX_VIRTUAL
|
|
|
|
protected:
|
|
|
|
//{{AFX_MSG(CStakeDlg)
|
|
virtual BOOL OnInitDialog();
|
|
afx_msg void OnClose();
|
|
afx_msg void OnChangeEditstakebetween();
|
|
afx_msg void OnChangeEditstartdis();
|
|
afx_msg void OnEditchangeCmbstakeprefix();
|
|
afx_msg void OnEditchangeComboposition();
|
|
afx_msg void OnDestroy();
|
|
afx_msg void OnKillfocusEditstakebetween();
|
|
//}}AFX_MSG
|
|
afx_msg LONG_PTR onAcadKeepFocus(UINT_PTR, LONG_PTR);
|
|
DECLARE_MESSAGE_MAP()
|
|
|
|
private:
|
|
void SaveFileTo(LPCTSTR lpFilePath);
|
|
void GetFileFrom(LPCTSTR lpFilePath);
|
|
|
|
private:
|
|
AcGeVector3d m_vtFirst; //第一次布置桩的向量
|
|
};
|
|
|
|
#endif // !defined(AFX_STAKEDLG_H__9179498C_DC54_461E_9EAD_2031FB6E05CA__INCLUDED_)
|