OpenLexocad  28.0
ObjectDefinition.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 #include <LxIfcBase/LxIfcProperty.h>
5 #include <OpenLxApp/Root.h>
6 
7 #include <memory>
8 #include <vector>
9 
10 FORWARD_DECL(App, ObjectDefinition)
11 
12 namespace OpenLxApp
13 {
29 class LX_OPENLXAPP_EXPORT ObjectDefinition : public Root
30 {
31  PROXY_HEADER_ABSTRACT(ObjectDefinition, App::ObjectDefinition, IFCOBJECTDEFINITION)
32 
33 public:
36 
37  std::vector<std::shared_ptr<ObjectDefinition>> getDecompositionObjects() const;
38  std::vector<std::shared_ptr<ObjectDefinition>> getAllDecompositionObjects() const;
39  std::shared_ptr<ObjectDefinition> getDecomposedObject() const;
40  std::vector<std::shared_ptr<ObjectDefinition>> getAllDecomposedObjects() const;
42 
43 
46  void addAggregationObject(std::shared_ptr<ObjectDefinition> aObject);
47  void addAggregationObjects(const std::vector<std::shared_ptr<ObjectDefinition>>& aObjects);
48  void removeAggregationObject(std::shared_ptr<ObjectDefinition> aObject);
50  std::vector<std::shared_ptr<ObjectDefinition>> getAggregationObjects() const;
51  std::vector<std::shared_ptr<ObjectDefinition>> getAllAggregationObjects() const;
52  std::shared_ptr<ObjectDefinition> getAggregatedObject() const;
53  std::vector<std::shared_ptr<ObjectDefinition>> getAllAggregatedObjects() const;
55 
58  // void addAssignmentObject(std::shared_ptr<ObjectDefinition> aObject, App::ObjectTypeEnum aObjectType = NOTDEFINED);
59  // std::vector<std::shared_ptr<ObjectDefinition>> getAssignmentObjects() const;
61 
64  void addAssociationObject(std::shared_ptr<Root> aObject);
65  std::vector<std::shared_ptr<Root>> getAssociationObjects() const;
67 
70  std::shared_ptr<LxIfcBase::LxIfcProperty> getIfcPropertySets() const;
72 
73  virtual ~ObjectDefinition(void);
74 
75 protected:
77 };
78 
79 } // namespace OpenLxApp
OpenLxApp::ObjectDefinition::getAllDecomposedObjects
std::vector< std::shared_ptr< ObjectDefinition > > getAllDecomposedObjects() const
OpenLxApp
Definition: ActiveScript.h:10
FORWARD_DECL
#define FORWARD_DECL(x, y)
Definition: Globals.h:93
OpenLxApp::ObjectDefinition::~ObjectDefinition
virtual ~ObjectDefinition(void)
OpenLxApp::ObjectDefinition::addAggregationObject
void addAggregationObject(std::shared_ptr< ObjectDefinition > aObject)
OpenLxApp::ObjectDefinition::getAssociationObjects
std::vector< std::shared_ptr< Root > > getAssociationObjects() const
PROXY_HEADER_ABSTRACT
#define PROXY_HEADER_ABSTRACT(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:137
OpenLxApp::ObjectDefinition::getIfcPropertySets
std::shared_ptr< LxIfcBase::LxIfcProperty > getIfcPropertySets() const
OpenLxApp::ObjectDefinition::getDecompositionObjects
std::vector< std::shared_ptr< ObjectDefinition > > getDecompositionObjects() const
OpenLxApp::ObjectDefinition::ObjectDefinition
ObjectDefinition()
OpenLxApp::ObjectDefinition::addAssociationObject
void addAssociationObject(std::shared_ptr< Root > aObject)
OpenLxApp::ObjectDefinition::getDecomposedObject
std::shared_ptr< ObjectDefinition > getDecomposedObject() const
OpenLxApp::ObjectDefinition::removeAggregationObject
void removeAggregationObject(std::shared_ptr< ObjectDefinition > aObject)
OpenLxApp::ObjectDefinition::addAggregationObjects
void addAggregationObjects(const std::vector< std::shared_ptr< ObjectDefinition >> &aObjects)
OpenLxApp::ObjectDefinition::getAllAggregationObjects
std::vector< std::shared_ptr< ObjectDefinition > > getAllAggregationObjects() const
Root.h
OpenLxApp::ObjectDefinition::getAggregatedObject
std::shared_ptr< ObjectDefinition > getAggregatedObject() const
OpenLxApp::ObjectDefinition::removeAggregationObjects
void removeAggregationObjects()
OpenLxApp::Root
Root is the base class of all BIM related entities. All BIM entities can be identified by a Globally ...
Definition: Root.h:20
OpenLxApp::ObjectDefinition::getAllAggregatedObjects
std::vector< std::shared_ptr< ObjectDefinition > > getAllAggregatedObjects() const
OpenLxApp::ObjectDefinition::getAllDecompositionObjects
std::vector< std::shared_ptr< ObjectDefinition > > getAllDecompositionObjects() const
OpenLxApp::ObjectDefinition::getAggregationObjects
std::vector< std::shared_ptr< ObjectDefinition > > getAggregationObjects() const
OpenLxApp::ObjectDefinition
An ObjectDefinition is the generalization of any semantically treated thing or process,...
Definition: ObjectDefinition.h:30