- 5
- 0
- 约7.72千字
- 约 8页
- 2017-12-22 发布于河南
- 举报
自定义实体
自定义实体
//-----------------------------------------------------------------------------
//----- BoundaryLine.h : Declaration of the CBoundaryLine
//-----------------------------------------------------------------------------
#pragma once
#ifdef CADDBX_MODULE
#define DLLIMPEXP __declspec(dllexport)
#else
//----- Note: we dont use __declspec(dllimport) here, because of the
//----- local vtable problem with msvc. If you use __declspec(dllimport),
//----- then, when a client dll does a new on the class, the objects
//----- vtable pointer points to a vtable allocated in that client
//----- dll. If the client dll then passes the object to another dll,
//----- and the client dll is then unloaded, the vtable becomes invalid
//----- and any virtual calls on the object will access invalid memory.
//-----
//----- By not using __declspec(dllimport), we guarantee that the
//----- vtable is allocated in the server dll during the ctor and the
//----- client dll does not overwrite the vtable pointer after calling
//----- the ctor. And, since we expect the server dll to remain in
//----- memory indefinitely, there is no problem with vtables unexpectedly
//----- going away.
#define DLLIMPEXP
#endif
//-----------------------------------------------------------------------------
#include dbcurve.h
#define CBOUNDARYLINE_DBXSERVICE _T(CBOUNDARYLINE_DBXSERVICE)
//-----------------------------------------------------------------------------
class DLLIMPEXP CBoundaryLine : public AcDbCurve {
public:
ACRX_DECLARE_MEMBERS(CBoundaryLine) ;
//------------------------------------------------------------------------------------------------------
public:
AcGePoint3dArray pt3dArry;
public:
void DrawWordLine(AcGiWorldDraw *mode,const AcGePoint3d pnts[],const Adesk::LongPtr markerId,int color);
void DrawPolyLine(AcGiWorldDraw *mode,const Adesk::UInt32 nbPoints,const AcGePoint3d pVertecList[],const Adesk::LongPtr markerId,int color);
;
//-------------------------------------------------------------
您可能关注的文档
最近下载
- 部编版语文五年级下册第二单元教材解读大单元集体备课.pptx VIP
- 部编版语文五年级下册第一单元教材解读大单元集体备课.pptx VIP
- 车工 (数控车床)理论知识考核要素细目表四级.pdf VIP
- 本科课程《基础护理学》教案,第十二章给药.doc VIP
- 农村题材小品剧本村官.pdf VIP
- 小品剧本-小品《绰号》.docx VIP
- 小品剧本-小品《竞选》.docx VIP
- 本科课程基础护理学教给药教案(2025—2026学年).docx VIP
- LaserjetCP1025系列打印机打印质量故障排除手册.pdf VIP
- 年会小品剧本小品剧本:搞笑小品剧本《都是喝酒惹事》台词大全.docx VIP
原创力文档

文档评论(0)