90 lines
1.4 KiB
C++
90 lines
1.4 KiB
C++
#include "StdAfx.h"
|
|
#include "GeLinearEnt.h"
|
|
|
|
GeLinearEnt::GeLinearEnt()
|
|
{
|
|
|
|
}
|
|
|
|
GeLinearEnt::~GeLinearEnt()
|
|
{
|
|
}
|
|
|
|
void GeLinearEnt::CopyFrom(const GeEntity* pSrc)
|
|
{
|
|
|
|
}
|
|
|
|
void GeLinearEnt::TransformBy(ads_matrix mat)
|
|
{
|
|
|
|
}
|
|
|
|
int GeLinearEnt::GetExtend(ADSGePoint3d &ptlow, ADSGePoint3d &ptup) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
ads_real GeLinearEnt::GetLength() const
|
|
{
|
|
return 0.0;
|
|
}
|
|
|
|
int GeLinearEnt::Make(const TCHAR *szlay) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int GeLinearEnt::MakeEntity(const EntitySet* pEntity) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
// 0--错误;1-左边;2-右边;3-起始点;4-终止点;5-线内;6-起始侧延长线;7-终止侧延长线
|
|
int GeLinearEnt::HitTest2d(const ADSGePoint3d &ptTest) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
ADSGePoint3d GeLinearEnt::MidPoint() const
|
|
{
|
|
return ADSGePoint3d();
|
|
}
|
|
|
|
void GeLinearEnt::SetPoints(const ADSGePoint3d& pt1, const ADSGePoint3d& pt2)
|
|
{
|
|
|
|
}
|
|
|
|
int GeLinearEnt::OSnap(int nMode, ADSGePoint3d &ptPick) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int GeLinearEnt::Intersection(const GeArc* pArc, ads_point ptrp1, ads_point ptrp2) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
int GeLinearEnt::Intersection(const GeCircle* pCircle, ads_point ptrp1, ads_point ptrp2) const
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
bool GeLinearEnt::IsKindOf(GeEntity::TEntityId entType) const
|
|
{
|
|
switch(entType)
|
|
{
|
|
case GeEntity::eEntity:
|
|
case GeEntity::eCurve:
|
|
case GeEntity::eLinearEnt:
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
GeEntity::TEntityId GeLinearEnt::Type() const
|
|
{
|
|
return GeEntity::eLinearEnt;
|
|
}
|