50 lines
855 B
C++
50 lines
855 B
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XCell 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XCell 类定义
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "XCell.h"
|
|
|
|
XCell::~XCell()
|
|
{
|
|
|
|
}
|
|
|
|
bool XCell::IsKindOf(XEntity::TEntityId entType) const
|
|
{
|
|
switch(entType)
|
|
{
|
|
case XEntity::eEntity:
|
|
case XEntity::eCurve:
|
|
case XEntity::eShape:
|
|
return true;
|
|
}
|
|
return false;
|
|
}
|
|
|
|
XCell::TEntityId XCell::Type() const
|
|
{
|
|
return XEntity::eShape;
|
|
}
|
|
|
|
ShapeType XCell::GetShapeType() const
|
|
{
|
|
return SHAPE_UNKNOWN;
|
|
}
|
|
|
|
void XCell::Center(ads_point ptCen)
|
|
{
|
|
|
|
}
|
|
|
|
ads_real XCell::Area()
|
|
{
|
|
return 0.0;
|
|
}
|