Files
envi-code/SourceCode/Code2026/tg_shs/inc/geo/TEdJig.h
T

81 lines
1.6 KiB
C++
Raw Normal View History

2026-10-04 00:04:20 +08:00
//-----------------------------------------------------------------------------+
2026-09-28 15:28:50 +08:00
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TEdJig.h
// = Version : ver2.0
// = Author : xlc
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: 夹点标注动态显示类的声明
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TEDJIG_H_
#define _TEDJIG_H_
#if ADS > 15
class TDbGrip;
class TDbGripDim;
#ifndef _TSPTABLE_H_
#include "TSPTable.h"
#endif
#endif
#include "dbdimdata.h"
#include "dbjig.h"
2026-10-04 00:04:20 +08:00
// 夹点标注动态显示
2026-09-28 15:28:50 +08:00
class GEOAPI TEdJig : public AcEdJig
{
public:
2026-10-04 00:04:20 +08:00
//代替update功能
2026-09-28 15:28:50 +08:00
virtual Adesk::Boolean Update();
virtual Adesk::Boolean update();
#if ADS>15
public:
TEdJig();
virtual ~TEdJig();
void ReleaseDimData();
void SetGripNum(long num);
void SetCurGrip(long i);
TDbGrip* GetCurGrip();
TDbGrip* GetGrip(long iGrip);
TDbGripDim* GetGripDim(long iGrip,long iDim);
2026-10-04 00:04:20 +08:00
//创建夹点和夹点参数,在getGripsPoints时调用
2026-09-28 15:28:50 +08:00
virtual Acad::ErrorStatus EntityToDim(long iGrip,long iDim);
2026-10-04 00:04:20 +08:00
//根据对象数据更新指定夹点参数
2026-09-28 15:28:50 +08:00
virtual Acad::ErrorStatus DimToEntity(long iGrip,long iDim,double newValue);
2026-10-04 00:04:20 +08:00
//由特定夹点参数更新对象数据
//重载AcEdJig
2026-09-28 15:28:50 +08:00
virtual AcDbDimDataPtrArray* dimData(const double dimScale);
virtual Acad::ErrorStatus setDimValue(const AcDbDimData *pdimData, const double dimValue);
protected:
AcDbDimDataPtrArray m_dimDataArray;
2026-10-04 00:04:20 +08:00
TSPTable<TDbGrip> m_allGrip;//所有控制点
2026-09-28 15:28:50 +08:00
2026-10-04 00:04:20 +08:00
long m_iCurGrip;//当前控制点
2026-09-28 15:28:50 +08:00
#endif
};
#endif