100 lines
1.9 KiB
C++
100 lines
1.9 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGGeLinearEnt.cpp
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: 线性图形基类TGGeLinearEnt类的定义
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "TGGeLinearEnt.h"
|
|
|
|
TGGeLinearEnt::TGGeLinearEnt()
|
|
{
|
|
|
|
}
|
|
|
|
TGGeLinearEnt::~TGGeLinearEnt()
|
|
{
|
|
}
|
|
|
|
void TGGeLinearEnt::CopyFrom(const TGGeEntity* pSrc)
|
|
{
|
|
|
|
}
|
|
|
|
void TGGeLinearEnt::TransformBy(ads_matrix mat)
|
|
{
|
|
|
|
}
|
|
|
|
int TGGeLinearEnt::GetExtend(TADSGePoint3d &ptlow, TADSGePoint3d &ptup) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
ads_real TGGeLinearEnt::GetLength() const
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
int TGGeLinearEnt::Make(const TCHAR *szlay) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int TGGeLinearEnt::MakeEntity(const TEntitySet* pEntity) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// 0--错误;1-左边;2-右边;3-起始点;4-终止点;5-线内;6-起始侧延长线;7-终止侧延长线
|
|
int TGGeLinearEnt::HitTest2d(const TADSGePoint3d &ptTest) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
TADSGePoint3d TGGeLinearEnt::MidPoint() const
|
|
{
|
|
return TADSGePoint3d();
|
|
}
|
|
|
|
void TGGeLinearEnt::SetPoints(const TADSGePoint3d& pt1, const TADSGePoint3d& pt2)
|
|
{
|
|
|
|
}
|
|
|
|
int TGGeLinearEnt::OSnap(int nMode, TADSGePoint3d &ptPick) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int TGGeLinearEnt::Intersection(const TGGeArc* pArc, ads_point ptrp1, ads_point ptrp2) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int TGGeLinearEnt::Intersection(const TGGeCircle* pCircle, ads_point ptrp1, ads_point ptrp2) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
bool TGGeLinearEnt::IsKindOf(TGGeEntity::TEntityId entType) const
|
|
{
|
|
switch(entType)
|
|
{
|
|
case TGGeEntity::eEntity:
|
|
case TGGeEntity::eCurve:
|
|
case TGGeEntity::eLinearEnt:
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
TGGeEntity::TEntityId TGGeLinearEnt::Type() const
|
|
{
|
|
return TGGeEntity::eLinearEnt;
|
|
}
|