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