65 lines
1.9 KiB
C++
65 lines
1.9 KiB
C++
#ifndef _TDRAWINGIDXEDJIG_H__
|
|
#define _TDRAWINGIDXEDJIG_H__
|
|
|
|
#include "dbSymbolAnnotate.h"
|
|
#include "DimPipeSerialDlg.h"
|
|
#include "DimSanitaryDlg.h"
|
|
#include "TDbPipeMultDim.h"
|
|
#include "EdJigEx.h"
|
|
|
|
class TDrawingIdxEdJig : public TSymbEdJig
|
|
{
|
|
protected:
|
|
TDbSymbDrawingIndex *m_pDrawEnt;
|
|
public:
|
|
TDrawingIdxEdJig(TDbSymbDrawingIndex *pIdx, CDimPipeSerialDlg *pDlg);
|
|
TDrawingIdxEdJig(TDbSymbDrawingIndex *pIdx, CDimSanitaryDlg *pDlg);
|
|
TDrawingIdxEdJig(TDbSymbDrawingIndex *pIdx);
|
|
virtual int DoIt(int *pKeyIndex=NULL);
|
|
DragStatus GetPoint(XPoint &pt);
|
|
CDimPipeSerialDlg* m_pDlg;
|
|
CDimSanitaryDlg* m_pDlg2;
|
|
XPoint m_ptRef;
|
|
protected:
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
};
|
|
|
|
//***************************************************************************************************
|
|
// 管道坡度箭头
|
|
//***************************************************************************************************
|
|
|
|
class TArrowEdJig : public TSymbEdJig {
|
|
protected:
|
|
TDbSymbArrow *m_pDrawEnt;
|
|
public:
|
|
TArrowEdJig(TDbSymbArrow *pIdx, XPoint ptRef, XPoint ptStart, XPoint ptEnd, double dDimDist2Pipe);
|
|
virtual int DoIt(int *pKeyIndex=NULL);
|
|
DragStatus GetPoint(XPoint &pt);
|
|
|
|
XPoint m_ptRef, m_ptStart, m_ptEnd;
|
|
BOOL m_bFromStart;
|
|
double m_dDimDist2Pipe;
|
|
double m_dDist;
|
|
protected:
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
void SetArrow2TextDist();
|
|
};
|
|
|
|
class TMultPipeDimEdJig : public TSymbEdJig {
|
|
public:
|
|
XPoint m_ptLeftUp, m_ptRightUp, m_ptLeftDown, m_ptRightDown;
|
|
|
|
protected:
|
|
TDbPipeMultDim *m_pDrawEnt;
|
|
public:
|
|
TMultPipeDimEdJig(TDbPipeMultDim *);
|
|
virtual int DoIt(int *pKeyIndex=NULL);
|
|
DragStatus GetPoint(XPoint &pt);
|
|
protected:
|
|
virtual Adesk::Boolean update();
|
|
virtual AcDbEntity* entity() const;
|
|
};
|
|
|
|
#endif |