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

56 lines
1.4 KiB
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TADSGePointList点列表类
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TADSGePointList类声明
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TADSGEPOINTLIST_H_
#define _TADSGEPOINTLIST_H_
#ifndef _TDPTRLIST_H_
#include "TDPtrList.h"
#endif
#ifndef _TADSGEPOINT3D_H_
#include "TADSGePoint3d.h"
#endif
class GEOAPI TADSGePointList : public TDPtrList<TADSGePoint3d>
{
public:
TADSGePointList();
TADSGePointList(const TADSGePointList &src);
~TADSGePointList();
virtual void AppendNode(const TADSGePoint3d &pt, ads_real dBulge = 0.0, AcDb::Visibility eVal = AcDb::kVisible);
TADSGePointList & operator = (const TADSGePointList& src);
void TransUCS(const resbuf *pFrom, const resbuf *pTo);
void TransUCS(ads_matrix mat);
int GetExtend(ads_point ptMin, ads_point ptMax);
int GetExtend(ads_point ptMin, ads_point ptMax) const;
TADSGePoint3d *FindPoint(const TADSGePoint3d &ptSrc);
void Center(ads_point ptCen);
void AsPoly2D(TADSGePointList &poly) const;
void SetElevation(ads_real dElev);
//如果不存在,则末尾添入, 返回点的位置序号
int NewAppend(const TADSGePoint3d& ptSrc);
};
#endif