HPS::DWG::Factory
-
class HPS::DWG::Factory : public HPS::Sprocket
The Factory class is used to create and DWG objects which inherit from HPS::Component or one of its subclasses.
Public Static Functions
-
static CADModel CreateCADModel(Model const &in_model = HPS::Factory::CreateModel())
Creates a new DWG::CADModel.
- Parameters
in_model – The Model associated with the newly created DWG::CADModel.
-
static Component CreateComponent(HPS::Component const &in_owner, HPS::Component::ComponentType in_type, DWGObjectID *in_object_id = nullptr)
Creates a new DWG::Component as a subcomponent of a given Component.
- Parameters
in_owner – The HPS::Component which owns the newly created DWG::Component.
in_type – The type of DWG::Component to create.
in_object – The DWG object ID associated with the newly created DWG::Component.
-
static Layer CreateLayer(HPS::Component const &in_owner, DWGObjectID *in_object_id = nullptr)
Creates a new DWG::Layer as a subcomponent of a given Component.
- Parameters
in_owner – The HPS::Component which owns the newly created DWG::Layer.
in_object – The DWG object ID associated with the newly created DWG::Layer.
-
static Layout CreateLayout(HPS::Component const &in_owner, HPS::Component::ComponentType in_type, DWGObjectID *in_object_id = nullptr)
Creates a new DWG::Layout as a subcomponent of a given Component.
- Parameters
in_owner – The HPS::Component which owns the newly created DWG::Component.
in_type – The type of DWG::Component to create.
in_object – The DWG object ID associated with the newly created DWG::Component.
-
static CADModel CreateCADModel(Model const &in_model = HPS::Factory::CreateModel())