37 lines
872 B
C++
37 lines
872 B
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XDcObject 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XDcObject 声明
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#ifndef _XDcObject_H_
|
|
#define _XDcObject_H_
|
|
|
|
#ifndef _XPOLY2D_H_
|
|
#include "XPoly2D.h"
|
|
#endif
|
|
|
|
#ifndef _DLIST_H_
|
|
#include "DList.h"
|
|
#endif
|
|
|
|
class GEOAPI XDcObject
|
|
{
|
|
public:
|
|
|
|
virtual ~XDcObject(){};
|
|
|
|
virtual AcDbEntity* CreateAcDbEntity()const{return NULL;} //外部释放
|
|
|
|
virtual void CutBy(const XPoly2D &poly,DList<XDcObject>&lstIn,DList<XDcObject>&lstOut,DList<XDcObject>&lstEdge)const{};
|
|
|
|
public:
|
|
|
|
static XDcObject* CreateFrom(const AcDbEntity&ent);
|
|
};
|
|
#endif
|