CFx SDK Documentation  2020SP3
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_
NULL
#define NULL
Definition: GsProperties.h:177
OdIfc::OdIfcCompound::m_pEntInst
OdIfcEntity * m_pEntInst
Definition: IfcCompound.h:49
OdIfc::OdIfcAttribute
OdIfcAttribute
Definition: IfcAttributesEnum.h:34
IFCCORE_EXPORT
#define IFCCORE_EXPORT
Definition: IfcBuildOptions.h:28
OdIfc::OdIfcCompound::compose
virtual void compose(OdIfcModel *pModel)
OdIfc::OdIfcCompound::subViewportDraw
virtual void subViewportDraw(OdGiViewportDraw *vd) const
OdIfc::OdIfcEntity::isKindOf
virtual bool isKindOf(OdIfcEntityType entityType) const
OdIfc::OdIfcCompound
Definition: IfcCompound.h:43
type
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdGsCache
Definition: GsModel.h:40
OdIfc::OdIfcCompound::owningModel
OdIfcModel * owningModel() const
OdUInt32
unsigned int OdUInt32
Definition: OdPlatformSettings.h:783
OdIfc::OdIfcCompoundPtr
OdSmartPtr< OdIfcCompound > OdIfcCompoundPtr
Definition: IfcCompound.h:186
OdRxValue
Definition: RxValue.h:64
OdIfc::OdIfcEntity::isInstanceOf
virtual bool isInstanceOf(OdIfcEntityType entityType) const
OdIfc::OdIfcCompound::getAttr
OdRxValue getAttr(const OdIfcAttribute attrDef) const
Definition: IfcCompound.h:76
OdSmartPtr
Definition: SmartPtr.h:58
OdIfc
Definition: FxBIMDatabase.h:24
OdIfc::OdIfcCompound::earlyAccess
static OdIfcEntityPtr earlyAccess(OdIfcCompound *pInst)
Definition: IfcCompound.h:119
OdDAI::EntityInstance::m_id
OdDbStub * m_id
Definition: daiEntityInstance.h:209
IfcEntity.h
IfcEntityTypes.h
OdGiDrawable
Definition: GiDrawable.h:49
OdIfc::OdIfcCompound::gsNode
virtual OdGsCache * gsNode() const
OdIfc::OdIfcEntity
Definition: IfcEntity.h:84
DynamicLinker.h
OdIfc::OdIfcCompound::subSetAttributes
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdIfc::OdIfcCompound::isKindOf
bool isKindOf(OdIfcEntityType type) const
Definition: IfcCompound.h:99
OdIfc::OdIfcCompound::typeName
OdAnsiString typeName()
Definition: IfcCompound.h:112
OdIfc::OdIfcEntResolver
Definition: IfcModel.h:178
OdGiWorldDraw
Definition: GiWorldDraw.h:44
OdIfc::OdIfcCompound::getAttr
virtual OdRxValue getAttr(const OdAnsiString &attrName) const
Definition: IfcCompound.h:86
OdIfc::OdIfcCompound::isPersistent
virtual bool isPersistent() const
Definition: IfcCompound.h:131
OdGiDrawableTraits
Definition: Gi.h:71
OdIfc::OdIfcEntity::getAttr
virtual OdRxValue getAttr(const OdAnsiString &attrName) const
OdIfc::OdIfcCompound::isInstanceOf
bool isInstanceOf(OdIfcEntityType entityType) const
Definition: IfcCompound.h:106
OdIfc::OdIfcEntityType
OdIfcEntityType
Definition: IfcEntityTypes.h:31
OdIfc::OdIfcCompound::type
OdIfcEntityType type()
OdIfc::OdIfcCompound::id
virtual OdDbStub * id() const
Definition: IfcCompound.h:139
ODRX_DECLARE_MEMBERS
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition: RxObject.h:112
IfcBuildOptions.h
OdIfc::OdIfcCompound::subWorldDraw
virtual bool subWorldDraw(OdGiWorldDraw *wd) const
OdIfc::OdIfcCompound::setGsNode
virtual void setGsNode(OdGsCache *pGsNode)
OdIfc::OdIfcModel
Definition: IfcModel.h:51
OdGiViewportDraw
Definition: GiViewportDraw.h:50
IfcModel.h