ObjectARX, AutoCAD. C++

         


, file:

          ACRX_NO_CONS_DEFINE_MEMBERS(CLASS_NAME, PARENT_CLASS)

, instantiated.

          ACRX_CONS_DEFINE_MEMBERS(CLASS_NAME, PARENT_CLASS, VERNO)

, instantiated, .

          ACRX_DXF_DEFINE_MEMBERS(CLASS_NAME, PARENT_CLASS, DWG_VERSION,\

MAINTENANCE_VERSION, PROXY_FLAGS, DXF_NAME, APP)

, , , DWG DXF .

:

        

         (. 289)

         desc ()

         isA () ( AcRxObject)

AsdkPoly, :

ACRX_DXF_DEFINE_MEMBERS(AsdkPoly, AcDbCurve, AcDb::kDHL_CURRENT,\

AcDb::kMReleaseCurrent, 0, POLYGON, /*MSG0*/"AutoCAD");



, :

AcRxClass* AsdkPoly::desc()

{

if (AsdkPoly::gpDesc != 0)

return AsdkPoly::gpDesc;

return AsdkPoly::gpDesc =

(AcRxClass*)((AcRxDictionary*)acrxSysRegistry()->

at("ClassDictionary"))->at("AsdkPoly");


}

AcRxClass* AsdkPoly::isA() const

{

return AsdkPoly::desc();

}

AcRxClass* AsdkPoly::gpDesc = 0;

static AcRxObject * makeAsdkPoly()

{

return new AsdkPoly();

}

void AsdkPoly::rxInit()

{

if (AsdkPoly::gpDesc != 0)

return;

AsdkPoly::gpDesc = newAcRxClass("AsdkPoly",

"AsdkCurve", AcDb::kDHL_CURRENT, AcDb::kMReleaseCurrent,

0, &makeAsdkPoly, "POLYGON", "\"AutoCAD\"");

};

, (;) (}) . , .

rxInit () , ACRX_DEFINE_MEMBERS () , desc (), cast (), isA () , rxInit () . AcRxClass, rxInit () .