68 lines
2.0 KiB
C++
68 lines
2.0 KiB
C++
// TDoubleLineJig.h: interface for the TDoubleLineJig class.
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
|
|
#if !defined(AFX_TDOUBLELINEJIG_H__403B9456_C807_4A96_B35B_60D11C8131C9__INCLUDED_)
|
|
#define AFX_TDOUBLELINEJIG_H__403B9456_C807_4A96_B35B_60D11C8131C9__INCLUDED_
|
|
|
|
#if _MSC_VER > 1000
|
|
#pragma once
|
|
#endif // _MSC_VER > 1000
|
|
#include "EdJigEx.h"
|
|
#include "DbFloorPipe.h"
|
|
#include "PipeFloorDlg.h"
|
|
|
|
class CDoubleLinePreview: public AcDbEntity
|
|
{
|
|
public:
|
|
CDoubleLinePreview(XPoint ptStart, XPoint ptEnd, double nRoadWidth);
|
|
virtual ~CDoubleLinePreview();
|
|
virtual Adesk::Boolean subWorldDraw(AcGiWorldDraw *pWd);
|
|
XPoint m_ptStart, m_ptEnd;
|
|
double m_nRoadWidth;
|
|
};
|
|
|
|
class TDoubleLineJig : public TSymbEdJig {
|
|
protected:
|
|
CDoubleLinePreview *m_pDrawEnt;
|
|
XPoint m_ptStart, m_ptEnd;
|
|
public:
|
|
TDoubleLineJig(XPoint pt1, double nRoadWidth);
|
|
~TDoubleLineJig();
|
|
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;
|
|
};
|
|
|
|
class TFloorPipeJig : public TSymbEdJig {
|
|
protected:
|
|
TDbFloorPipe *m_pDrawEnt;
|
|
public:
|
|
TFloorPipeJig(CPipeFloorDlg *pDlg, XPoint ptStart, XPoint ptEnd,
|
|
int nLeftDist, int nRightDist, int nTopDist, int nBottomDist,
|
|
double dbPGAngle,int nEntryType,int nPipeType);
|
|
~TFloorPipeJig();
|
|
virtual int DoIt(int *pKeyIndex=NULL);
|
|
DragStatus GetPoint(XPoint &pt);
|
|
CPipeFloorDlg *m_pDlg;
|
|
XPoint m_ptStart;
|
|
XPoint m_ptEnd;
|
|
double m_dbPGAngle;
|
|
int m_nEntryType;
|
|
int m_nLeftDist;
|
|
int m_nRightDist;
|
|
int m_nTopDist;
|
|
int m_nBottomDist;
|
|
int m_nPipeType;
|
|
protected:
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
};
|
|
|
|
#endif // !defined(AFX_TDOUBLELINEJIG_H__403B9456_C807_4A96_B35B_60D11C8131C9__INCLUDED_)
|