HPS::DWG::CADModel

class HPS::DWG::CADModel : public HPS::CADModel

The CADModel class is a smart pointer. It represents the DWG drawing file.

Public Functions

HPS::View ActivateDefaultLayout()

Creates a new View object corresponding to the default layout for this CADModel. The View object that is returned will have the corresponding visibility settings, material settings, transformation settings, and camera for the default capture set on it. This call is equivalent to calling ActivateDefaultCapture

Returns

A newly created View object corresponding to this Layout.

CADModel()

The default constructor creates an uninitialized CADModel object. The Type() function will return Type::None.

CADModel(Component const &in_that)

This constructor creates a CADModel 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::CADModel object. Otherwise the copy will fail and the resulting DWG::CADModel will be invalid.

Parameters

in_that – The source Component to copy.

CADModel(DWG::CADModel &&in_that)

The move constructor creates an DWG::CADModel by transferring the underlying object of the rvalue reference to this DWG::CADModel.

Parameters

in_that – An rvalue reference to an DWG::CADModel to take the underlying object from.

CADModel(DWG::CADModel const &in_that)

The copy constructor creates an DWG::CADModel object that shares the underlying smart-pointer of the source DWG::CADModel.

Parameters

in_that – The source DWG::CADModel to copy.

CADModel(HPS::CADModel const &in_that)

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

Parameters

in_that – The source HPS::CADModel to copy.

LayoutArray GetAllLayouts() const

Get a list of all DWG layouts from all subcomponents for this CADModel.

Returns

A list of all DWG layouts from all subcomponents for this CADModel.

DWGDatabase *GetDWGDatabase() const

Gets the AcDbDatabase pointer corresponding to this DWG::CADModel.

Returns

The AcDbDatabase pointer corresponding to this DWG::CADModel.

inline virtual HPS::Type ObjectType() const

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).

Returns

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

CADModel &operator=(DWG::CADModel &&in_that)

The move assignment operator transfers the underlying object of the rvalue reference to this DWG::CADModel.

Parameters

in_that – An rvalue reference to an DWG::CADModel to take the underlying object from.

Returns

A reference to this DWG::CADModel.

virtual ~CADModel()

Public Static Attributes

static const HPS::Type staticType = HPS::Type::DWGCADModel