81 lines
1.5 KiB
C++
81 lines
1.5 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TEdJig.h
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: 夹点标注动态显示类的声明
|
|
// = 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"
|
|
|
|
// 夹点标注动态显示
|
|
class GEOAPI TEdJig : public AcEdJig
|
|
{
|
|
public:
|
|
|
|
//代替update功能
|
|
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);
|
|
|
|
//创建夹点和夹点参数,在getGripsPoints时调用
|
|
virtual Acad::ErrorStatus EntityToDim(long iGrip,long iDim);
|
|
|
|
//根据对象数据更新指定夹点参数
|
|
virtual Acad::ErrorStatus DimToEntity(long iGrip,long iDim,double newValue);
|
|
|
|
//由特定夹点参数更新对象数据
|
|
//重载AcEdJig
|
|
virtual AcDbDimDataPtrArray* dimData(const double dimScale);
|
|
|
|
virtual Acad::ErrorStatus setDimValue(const AcDbDimData *pdimData, const double dimValue);
|
|
|
|
protected:
|
|
|
|
AcDbDimDataPtrArray m_dimDataArray;
|
|
|
|
TSPTable<TDbGrip> m_allGrip;//所有控制点
|
|
|
|
long m_iCurGrip;//当前控制点
|
|
|
|
#endif
|
|
|
|
};
|
|
|
|
#endif |