42 lines
1.1 KiB
C++
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_)
|