OpenLexocad  27.1
OpenLxApp::DocObjectFactory Class Reference

DocObjectFactory to create DocObjects. More...

#include <DocObjectFactory.h>

Public Member Functions

 DocObjectFactory (std::shared_ptr< Document > aDoc)
 
 DocObjectFactory (App::Document *aDoc)
 
 ~DocObjectFactory ()
 
std::shared_ptr< ElementaTmpElement ()
 
template<typename OpenLxClass >
std::shared_ptr< OpenLxClass > aObject ()
 

Static Public Member Functions

static std::vector< std::shared_ptr< Product > > aProducts (const std::vector< App::Product * > aProduct)
 
static std::shared_ptr< ProductaProduct (App::Product *aProduct)
 
static std::vector< std::shared_ptr< Element > > aElements (const std::vector< App::Element * > aElem)
 
static std::vector< std::shared_ptr< Element > > aElements (std::unordered_set< App::Element * > aElems)
 
static std::shared_ptr< ElementaElement (App::Element *aElem)
 
static std::shared_ptr< GeometryaGeometry (App::Geometry *aGeom)
 
static std::shared_ptr< ProfileDefaProfile (Part::ProfileDef *aProfileDef)
 
static std::shared_ptr< DocObjectaDocObject (Core::DocObject *aObj)
 
static std::shared_ptr< ObjectDefinitionaObjectDefinition (App::ObjectDefinition *aObj)
 
static std::shared_ptr< ObjectaObject (App::Object *aObj)
 
static std::shared_ptr< RootaRoot (App::Root *aObj)
 
static std::shared_ptr< MaterialSelectaMaterialSelect (App::MaterialSelect *aMatSel)
 
template<typename OpenLxClass >
static std::shared_ptr< OpenLxClass > aObject (std::shared_ptr< Document > aDoc)
 
static LxIfc4::LxIfc4EntityEnum getEntityTypeFromTypeName (const std::string &aType)
 

Friends

class Document
 

Detailed Description

DocObjectFactory to create DocObjects.

Constructor & Destructor Documentation

◆ DocObjectFactory() [1/2]

OpenLxApp::DocObjectFactory::DocObjectFactory ( std::shared_ptr< Document aDoc)

◆ DocObjectFactory() [2/2]

OpenLxApp::DocObjectFactory::DocObjectFactory ( App::Document *  aDoc)

◆ ~DocObjectFactory()

OpenLxApp::DocObjectFactory::~DocObjectFactory ( )

Member Function Documentation

◆ aDocObject()

static std::shared_ptr<DocObject> OpenLxApp::DocObjectFactory::aDocObject ( Core::DocObject aObj)
static

◆ aElement()

static std::shared_ptr<Element> OpenLxApp::DocObjectFactory::aElement ( App::Element *  aElem)
static

◆ aElements() [1/2]

static std::vector<std::shared_ptr<Element> > OpenLxApp::DocObjectFactory::aElements ( const std::vector< App::Element * >  aElem)
static

◆ aElements() [2/2]

static std::vector<std::shared_ptr<Element> > OpenLxApp::DocObjectFactory::aElements ( std::unordered_set< App::Element * >  aElems)
static

◆ aGeometry()

static std::shared_ptr<Geometry> OpenLxApp::DocObjectFactory::aGeometry ( App::Geometry *  aGeom)
static

◆ aMaterialSelect()

static std::shared_ptr<MaterialSelect> OpenLxApp::DocObjectFactory::aMaterialSelect ( App::MaterialSelect *  aMatSel)
static

◆ aObject() [1/3]

static std::shared_ptr<Object> OpenLxApp::DocObjectFactory::aObject ( App::Object *  aObj)
static

◆ aObject() [2/3]

template<typename OpenLxClass >
std::shared_ptr<OpenLxClass> OpenLxApp::DocObjectFactory::aObject ( )
inline

◆ aObject() [3/3]

template<typename OpenLxClass >
static std::shared_ptr<OpenLxClass> OpenLxApp::DocObjectFactory::aObject ( std::shared_ptr< Document aDoc)
inlinestatic

◆ aObjectDefinition()

static std::shared_ptr<ObjectDefinition> OpenLxApp::DocObjectFactory::aObjectDefinition ( App::ObjectDefinition *  aObj)
static

◆ aProduct()

static std::shared_ptr<Product> OpenLxApp::DocObjectFactory::aProduct ( App::Product *  aProduct)
static

◆ aProducts()

static std::vector<std::shared_ptr<Product> > OpenLxApp::DocObjectFactory::aProducts ( const std::vector< App::Product * >  aProduct)
static

◆ aProfile()

static std::shared_ptr<ProfileDef> OpenLxApp::DocObjectFactory::aProfile ( Part::ProfileDef *  aProfileDef)
static

◆ aRoot()

static std::shared_ptr<Root> OpenLxApp::DocObjectFactory::aRoot ( App::Root *  aObj)
static

◆ aTmpElement()

std::shared_ptr<Element> OpenLxApp::DocObjectFactory::aTmpElement ( )

◆ getEntityTypeFromTypeName()

static LxIfc4::LxIfc4EntityEnum OpenLxApp::DocObjectFactory::getEntityTypeFromTypeName ( const std::string &  aType)
static

Friends And Related Function Documentation

◆ Document

friend class Document
friend

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