下面的代码演示派生自的新类的类声明。AsdkMyClassAcDbObject class AsdkMyClass : public AcDbObject // // This class demonstrates custom objects. // // To keep it simple, this class has a single integer data // member. Get and set functions are provided for this // data member. // { public: ACRX_DECLARE_MEMBERS(AsdkMyClass); AsdkMyClass(): mIntval(0) {}; AsdkMyClass(const Adesk::Int16& val): mIntval(val) {}; Acad::ErrorStatus getData (Adesk::Int16&); Acad::ErrorStatus setData (Adesk::Int16); virtual Acad::ErrorStatus dwgInFields (AcDbDwgFiler*); virtual Acad::ErrorStatus dwgOutFields(AcDbDwgFiler*) const; virtual Acad::ErrorStatus dxfInFields (AcDbDxfFiler*); virtual Acad::ErrorStatus dxfOutFields(AcDbDxfFiler*) const; private: Adesk::Int16 mIntval; }; |
|Archiver|CAD开发者社区 ( 苏ICP备2022047690号-1 苏公网安备32011402011833)
GMT+8, 2025-1-8 19:48
Powered by Discuz! X3.4
Copyright © 2001-2021, Tencent Cloud.