Files
envi-code/SourceCode/Code2026/tg_shs/shs_subgeLib/TPGeFitPath.cpp
T
2026-09-28 15:28:50 +08:00

50 lines
1.0 KiB
C++

//-------------------------------------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TPGeFitPath Àà
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TPGeFitPath ¶¨Òå
// = 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;
}