OpenLexocad  27.1
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);
49  void removeAggregationObjects();
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
#define PROXY_HEADER_ABSTRACT(_openlexocadclass_, _corelexocadclass_, _type_)
Definition: Globals.h:137
Definition: ActiveScript.h:7
An ObjectDefinition is the generalization of any semantically treated thing or process,...
Definition: ObjectDefinition.h:29
Root is the base class of all BIM related entities. All BIM entities can be identified by a Globally ...
Definition: Root.h:19
#define FORWARD_DECL(x, y)
Definition: Globals.h:93