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

42 lines
1.1 KiB
C++

// TRoadJig.h: interface for the TRoadJig class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_TROADJIG_H__FEDE2FD2_34A5_419F_8AA9_1D6A85295C33__INCLUDED_)
#define AFX_TROADJIG_H__FEDE2FD2_34A5_419F_8AA9_1D6A85295C33__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "EdJigEx.h"
class CRoadPreview: public AcDbEntity
{
public:
CRoadPreview(XPoint ptStart, XPoint ptEnd, double nRoadWidth);
virtual ~CRoadPreview();
virtual Adesk::Boolean subWorldDraw(AcGiWorldDraw *pWd);
XPoint m_ptStart, m_ptEnd;
double m_nRoadWidth;
};
class TRoadJig : public TSymbEdJig {
protected:
CRoadPreview *m_pDrawEnt;
XPoint m_ptStart, m_ptEnd;
public:
TRoadJig(XPoint pt1, double nRoadWidth);
~TRoadJig();
virtual int DoIt(int *pKeyIndex=NULL);
DragStatus GetPoint(XPoint &pt);
double m_nRoadWidth;
void SetStartPoint(XPoint pt);
double m_nDist;
protected:
virtual Adesk::Boolean update();
virtual AcDbEntity* entity() const;
};
#endif // !defined(AFX_TROADJIG_H__FEDE2FD2_34A5_419F_8AA9_1D6A85295C33__INCLUDED_)