Files
envi-code/SourceCode/Code2026/tg_shs/shs_geLib/TGGeDbCurveEntity.cpp
T

32 lines
995 B
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 : TGGeDbCurveEntity 类
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: TGGeDbCurveEntity 定义
2026-09-28 15:28:50 +08:00
// = Maintainers:
//
//-------------------------------------------------------------------------------------------------------+
#include "StdAfx.h"
#include "TGGeDbCurveEntity.h"
#include "TGGeDbCurveSegEntity.h"
#include "TGGeDbPolyline.h"
TGGeDbCurveEntity* TGGeDbCurveEntity::CreateFrom(const AcDbEntity &ent)
{
if (ent.isKindOf(AcDbLine::desc()))
{
return new TGGeDbCurveSegEntity((const AcDbLine&)ent);
}
else if (ent.isKindOf(AcDbArc::desc()))
{
return new TGGeDbCurveSegEntity((const AcDbArc&)ent);
}
else if (ent.isKindOf(AcDbPolyline::desc()))
{
return new TGGeDbPolyline((const AcDbPolyline&)ent);
}
return NULL;
}