HPS::Parasolid::Factory Class Reference

#include <sprk_parasolid.h>

Inheritance diagram for HPS::Parasolid::Factory:
HPS::Sprocket HPS::Object

Static Public Member Functions

static CADModel CreateCADModel (Model const &in_model=HPS::Factory::CreateModel())
 
static Component CreateComponent (HPS::Component const &in_owner, HPS::Component::ComponentType in_type, ParasolidEntity in_entity=0)
 
static Component DeInstanceComponent (ComponentPath const &in_component_path)
 
- Static Public Member Functions inherited from HPS::Object
template<typename T >
static intptr_t ClassID ()
 

Additional Inherited Members

- Public Member Functions inherited from HPS::Sprocket
Sprocket (Sprocket &&in_that)
 
- Public Member Functions inherited from HPS::Object
virtual bool Empty () const
 
intptr_t GetClassID () const
 
intptr_t GetInstanceID () const
 
bool HasType (HPS::Type in_mask) const
 
Object (Object const &that)
 
 Object (Object &&in_that)
 
virtual HPS::Type ObjectType () const
 
Objectoperator= (Object const &other_object)
 
Objectoperator= (Object &&in_that)
 
virtual void Reset ()
 
virtual HPS::Type Type () const
 
- Static Public Attributes inherited from HPS::Object
static const HPS::Type staticType = HPS::Type::None
 

Detailed Description

The Factory class is used to create Parasolid objects which inherit from HPS::Component or one of its subclasses.

Member Function Documentation

◆ CreateCADModel()

static CADModel HPS::Parasolid::Factory::CreateCADModel ( Model const &  in_model = HPS::Factory::CreateModel())
static

Creates a new Parasolid::CADModel.

Parameters
in_modelThe Model associated with the Parasolid::CADModel.

◆ CreateComponent()

static Component HPS::Parasolid::Factory::CreateComponent ( HPS::Component const &  in_owner,
HPS::Component::ComponentType  in_type,
ParasolidEntity  in_entity = 0 
)
static

Creates a new Parasolid::Component as a subcomponent of a given Component.

Parameters
in_ownerThe HPS::Component which owns the newly created Parasolid::Component.
in_typeThe type of Parasolid::Component to create.
in_entityThe Parasolid entity associated with the newly created Parasolid::Component.

◆ DeInstanceComponent()

static Component HPS::Parasolid::Factory::DeInstanceComponent ( ComponentPath const &  in_component_path)
static

Returns the component at whose level changes can be made without influencing other instances of the same component. For Parasolid components this function is only meaningful when in_component_path contains at least one component of type ParasolidInstance or ParasolidTopoBody. If none of these types are present in in_component_path a warning will be logged and an empty component will be returned.

Parameters
in_component_pathThe ComponentPath to operate on.
Returns
The newly de-instanced Component.

The documentation for this class was generated from the following file: