Files
envi-code/SourceCode/Code2026/tg_shs/inc/subgeo/TPGeDscEdge3D.h
T

66 lines
1.5 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.
2026-10-04 00:04:20 +08:00
// = FileName : TPGeDscEdge3D 类
2026-09-28 15:28:50 +08:00
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
2026-10-04 00:04:20 +08:00
// = Description: TPGeDscEdge3D 声明 离散无向边集合
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#ifndef _TPGEDSCEDGE3D_H_
#define _TPGEDSCEDGE3D_H_
#ifndef _TWFLAG_H_
#include "TWFlag.h"
#endif
#ifndef _TPGEFITPATH3D_H_
#include "TPGeFitPath3D.h"
#endif
#ifndef _TPGEEXTEND2D_H_
#include "TPGeExtend2D.h"
#endif
#ifndef _TPGEDSCEDGE_H_
#include "TPGeDscEdge.h"
#endif
class GDscPoint;
class TPGeFitTriangle;
class TPGeDscPoint3D;
class GEOAPI TPGeDscEdge3D : public TWFlag
{
public:
2026-10-04 00:04:20 +08:00
//同时建立点连接!
2026-09-28 15:28:50 +08:00
TPGeDscEdge3D(TPGeDscPoint3D*p0,TPGeDscPoint3D*p1);
virtual ~TPGeDscEdge3D();
TPGeDscPoint3D* GetNextPoint(TPGeDscPoint3D*pPt) const;
2026-10-04 00:04:20 +08:00
//计算一般线性插值点,失败返回NULL
2026-09-28 15:28:50 +08:00
TPGeDscPoint3D* GetFitPoint(double value);
2026-10-04 00:04:20 +08:00
//从这一边起构造拟合路径,沿途边加VISITED标志
2026-09-28 15:28:50 +08:00
void ConnectPath(TPGeFitPath3D&path);
double GetMinValue();
bool operator >(const TPGeDscEdge&e) const;
bool operator <(const TPGeDscEdge&e) const;
public:
2026-10-04 00:04:20 +08:00
//第一点,第二点<引用>
2026-09-28 15:28:50 +08:00
TPGeDscPoint3D*pPt0,*pPt1;
2026-10-04 00:04:20 +08:00
//当前拟合点<引用>
2026-09-28 15:28:50 +08:00
TPGeDscPoint3D*pPtFit;
};
#endif