Files
envi-code/SourceCode/Code2026/tg_shs/shs_subgeLib/TPGeFitPath.cpp
T

49 lines
1.0 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 : TPGeFitPath 类
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: TPGeFitPath 定义
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#include "StdAfx.h"
#include "TPGeFitPath.h"
#include "TPGeDscPoint.h"
TPGeFitPath::TPGeFitPath(double Z) : z(Z),bClosed(false)
{
}
TPGeFitPath::~TPGeFitPath()
{
}
void TPGeFitPath::SetClosed()
{
bClosed = true;
}
bool TPGeFitPath::operator >(const TPGeFitPath&) const
{
return false;
}
bool TPGeFitPath::operator <(const TPGeFitPath&) const
{
return false;
}
TGMLine2D* TPGeFitPath::CreateCurve()
{
TGMLine2D *pMLine = new TGMLine2D(GetLength(),bClosed);
for(long i = 0; i < GetLength(); i++)
{
(*pMLine)[i] = (*((*this)[i]));
}
return pMLine;
}