Files
envi-code/SourceCode/Code2026/tg_shs/inc/subgeo/TGMLine3D.h
T
2026-09-28 15:28:50 +08:00

53 lines
1.2 KiB
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TGMLine3D.h
// = Version : ver2.0
// = Author : xlc
// = CreateDate : 2002-09-09
// = Description: 类的声明 空间直多段线
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TGMLINE3D_H_
#define _TGMLINE3D_H_
#ifndef _TPGECURVE3D_H_
#include "TPGeCurve3D.h"
#endif
#ifndef _TARRAY_H_
#include "TArray.h"
#endif
#ifndef _TTABLE_H_
#include "TTable.h"
#endif
#ifndef _TGPOINT_H_
#include "TGPoint.h"
#endif
class GEOAPI TGMLine3D:public TPGeCurve3D
{
DECLARE_RUN_TIME_CLASS(TGMLine3D)
public:
TGMLine3D(long vertexNum = 0, bool bClosed = false);
TGMLine3D(const TArray<TGPoint>&vertexs,bool bClosed = false);
TGMLine3D(const TTable<TGPoint>&vertexs,bool bClosed = false);
virtual ~TGMLine3D();
virtual void SetVertexNum(long num,bool bCopy = false);
virtual bool IsClosed()const;
//edit
TGPoint& operator[](long i);
long GetVertexNum()const;
void SetClosed(bool bClosed=true);
protected:
TArray<TGPoint> points;//节点
};
#endif