56 lines
1.4 KiB
C++
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
|