CFx SDK Documentation  2023 SP0
IfcCompound.h
Go to the documentation of this file.
1 // Copyright (C) 2002-2019, Open Design Alliance (the "Alliance").
3 // All rights reserved.
4 //
5 // This software and its documentation and related materials are owned by
6 // the Alliance. The software may only be incorporated into application
7 // programs owned by members of the Alliance, subject to a signed
8 // Membership Agreement and Supplemental Software License Agreement with the
9 // Alliance. The structure and organization of this software are the valuable
10 // trade secrets of the Alliance and its suppliers. The software is also
11 // protected by copyright law and international treaty provisions. Application
12 // programs incorporating this software must include the following statement
13 // with their copyright notices:
14 //
15 // This application incorporates Open Design Alliance software pursuant to a license
16 // agreement with Open Design Alliance.
17 // Open Design Alliance Copyright (C) 2002-2019 by Open Design Alliance.
18 // All rights reserved.
19 //
20 // By use of this software, its documentation or related materials, you
21 // acknowledge and accept the above terms.
23 
24 #ifndef _IFC_COMPOUND_H_
25 #define _IFC_COMPOUND_H_
26 
27 #include "DynamicLinker.h"
28 
29 #include "IfcBuildOptions.h"
30 #include "IfcEntityTypes.h"
31 #include "IfcEntity.h"
32 #include "IfcModel.h"
33 
37 namespace OdIfc {
38 
43 {
44 //DOM-IGNORE-BEGIN
46 
47 protected:
48 
50 //DOM-IGNORE-END
51 
52 public:
53 
60  virtual void compose(OdIfcModel *pModel);
61 
67 
76  OdRxValue getAttr(const OdIfcAttribute attrDef) const { return m_pEntInst->getAttr(attrDef); }
77 
86  virtual OdRxValue getAttr(const OdAnsiString &attrName) const { return m_pEntInst->getAttr(attrName); }
87 
93 
99  bool isKindOf(OdIfcEntityType type) const { return m_pEntInst->isKindOf(type); };
100 
106  bool isInstanceOf(OdIfcEntityType entityType) const { return m_pEntInst->isInstanceOf(entityType); };
107 
112  OdAnsiString typeName() { return m_pEntInst->typeName(); };
113 
119  static OdIfcEntityPtr earlyAccess(OdIfcCompound* pInst) { return pInst->m_pEntInst; };
120 
121  //
122  // OdGiDrawable void implementation
123  //
124 
131  virtual bool isPersistent() const { return id() != NULL; };
132 
139  virtual OdDbStub* id() const { return m_pEntInst->m_id; };
140 
145  virtual void setGsNode(OdGsCache* pGsNode);
146 
151  virtual OdGsCache* gsNode() const;
152 
159 
165  virtual bool subWorldDraw(OdGiWorldDraw * wd) const;
166 
171  virtual void subViewportDraw(OdGiViewportDraw * vd) const;
172 
173 //DOM-IGNORE-BEGIN
174 private:
175 
176  void setInst(OdIfcEntity *pEnt) { m_pEntInst = pEnt; }
177 
178  friend class OdIfcModelContents;
179  friend class OdIfcEntResolver;
180 //DOM-IGNORE-END
181 };
182 
187 
188 }
189 
190 #endif // _IFC_COMPOUND_H_
#define NULL
Definition: GsProperties.h:177
#define IFCCORE_EXPORT
unsigned int OdUInt32
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition: RxObject.h:131
virtual void compose(OdIfcModel *pModel)
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdIfcEntityType type()
OdRxValue getAttr(const OdIfcAttribute attrDef) const
Definition: IfcCompound.h:76
virtual OdGsCache * gsNode() const
OdIfcEntity * m_pEntInst
Definition: IfcCompound.h:49
OdAnsiString typeName()
Definition: IfcCompound.h:112
virtual OdRxValue getAttr(const OdAnsiString &attrName) const
Definition: IfcCompound.h:86
virtual void setGsNode(OdGsCache *pGsNode)
bool isKindOf(OdIfcEntityType type) const
Definition: IfcCompound.h:99
virtual bool isPersistent() const
Definition: IfcCompound.h:131
static OdIfcEntityPtr earlyAccess(OdIfcCompound *pInst)
Definition: IfcCompound.h:119
virtual bool subWorldDraw(OdGiWorldDraw *wd) const
virtual void subViewportDraw(OdGiViewportDraw *vd) const
bool isInstanceOf(OdIfcEntityType entityType) const
Definition: IfcCompound.h:106
virtual OdDbStub * id() const
Definition: IfcCompound.h:139
OdIfcModel * owningModel() const
virtual OdRxValue getAttr(const OdAnsiString &attrName) const
virtual bool isInstanceOf(OdIfcEntityType entityType) const
virtual bool isKindOf(OdIfcEntityType entityType) const
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdSmartPtr< OdIfcCompound > OdIfcCompoundPtr
Definition: IfcCompound.h:186