HPS::DWG::Component

class HPS.DWG.Component : public HPS.Component

The Component class is a smart pointer. It represents a variety of DWG components. The primary purpose of this class is simply to provide access to the underlying DWG object for use by DWG library functions.

Subclassed by HPS.DWG.Layer

Public Functions

Component ()

The default constructor creates an uninitialized DWG.Component object. The Type() function will return Type.None.

Component (HPS.Component in_that)

This constructor creates an DWG.Component object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of an DWG.Component object. Otherwise the copy will fail and the resulting DWG.Component will be invalid.

Param in_that

The source Component to copy.

Component (HPS.DWG.Component in_that)

This constructor creates an DWG.Component object that shares the underlying smart-pointer of the source Component. The copy will only be successful if the source component is really an upcast of an DWG.Component object. Otherwise the copy will fail and the resulting DWG.Component will be invalid.

Param in_that

The source Component to copy.

override void Dispose ()
IntPtr GetDWGObjectID ()

Gets the AcDbObjectId corresponding to this DWGComponent.

Return

The AcDbObjectId corresponding to this DWGComponent.

override HPS.Type ObjectType ()

This function returns the type the object, as declared (if the object is derived, this does not give the true type of the derived object).

Return

The declared type of the object in question, which may differ from the true, underlying type.