//-------------------------------------------------------------------------------------------------------+ // 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; }