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

82 lines
1.4 KiB
C++

#pragma once
#include "dbjig.h"
class TDbSectionDirEntity : public AcDbEntity
{
public:
TDbSectionDirEntity();
virtual ~TDbSectionDirEntity(void);
void SetDirToPoint(AcGePoint3d& ptTo2);
void SetBasePoint(AcGePoint3d& ptFr,AcGePoint3d& ptTo);
#if ARX < 18
virtual Adesk::Boolean worldDraw (AcGiWorldDraw *mode) ;
#else
virtual Adesk::Boolean subWorldDraw (AcGiWorldDraw *mode) ;
#endif
Adesk::Boolean worldDraw2d(AcGiWorldDraw *mode);
public:
AcGePoint3d m_ptFr;
AcGePoint3d m_ptTo;
AcGePoint3d m_ptTo2;
};
class TDbSectionDirJig : public AcEdJig
{
public:
TDbSectionDirJig(void);
~TDbSectionDirJig(void);
void SetSectionLine(ads_point ptFr,ads_point ptTo);
BOOL DoIt();
void GetDirPoint(AcGePoint3d& ptDirTo);
public:
virtual AcEdJig::DragStatus sampler();
virtual AcDbEntity* entity() const;
virtual Adesk::Boolean update();
public:
AcGePoint3d m_ptFr;
AcGePoint3d m_ptTo;
AcGePoint3d m_ptTo2;
TDbSectionDirEntity* m_pEnt;
};
class TDbSectionPosJig : public AcEdJig
{
public:
TDbSectionPosJig(void);
~TDbSectionPosJig(void);
void SetWH(double dW,double dH){m_dW = dW,m_dH = dH;}
void SetDfltPt(AcGePoint3d ptTo){m_ptTo = ptTo;}
BOOL DoIt();
void GetPosPoint(AcGePoint3d& ptTo);
public:
virtual AcEdJig::DragStatus sampler();
virtual AcDbEntity* entity() const;
virtual Adesk::Boolean update();
double m_dW,m_dH;
AcGePoint3d m_ptTo;
TDbSectionDirEntity* m_pEnt;
};