52 lines
1.1 KiB
C++
52 lines
1.1 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TPGeFitPath3D Àà
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TPGeFitPath3D ¶¨Òå
|
|
// = Maintainers:
|
|
//
|
|
//-------------------------------------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "TPGeFitPath3D.h"
|
|
#include "TPGeDscPoint3D.h"
|
|
#include "TGMLine3D.h"
|
|
|
|
TPGeFitPath3D::TPGeFitPath3D(double value)
|
|
: m_fValue(value),bClosed(false)
|
|
{
|
|
|
|
}
|
|
|
|
TPGeFitPath3D::~TPGeFitPath3D()
|
|
{
|
|
|
|
}
|
|
|
|
void TPGeFitPath3D::SetClosed()
|
|
{
|
|
bClosed = true;
|
|
}
|
|
|
|
bool TPGeFitPath3D::operator >(const TPGeFitPath3D&) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool TPGeFitPath3D::operator <(const TPGeFitPath3D&) const
|
|
{
|
|
return false;
|
|
}
|
|
|
|
TGMLine3D* TPGeFitPath3D::CreateCurve()
|
|
{
|
|
TGMLine3D *pMLine = new TGMLine3D(GetLength(),bClosed);
|
|
for(long i = 0; i < GetLength(); i++)
|
|
{
|
|
(*pMLine)[i] = (*((*this)[i]));
|
|
}
|
|
|
|
return pMLine;
|
|
}
|