CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
IfcCompound.h
Go to the documentation of this file.
1
2// Copyright (C) 2002-2022, 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-2022 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 "IfcBuildOptions.h"
28#include "IfcEntityTypes.h"
29#include "IfcFile.h"
30#include "IfcEntity.h"
31
35namespace OdIfc {
36
41{
42//DOM-IGNORE-BEGIN
44
45protected:
46
48//DOM-IGNORE-END
49
50public:
51
57 virtual void compose();
58
64
73 OdRxValue getAttr(const OdIfcAttribute attrDef) const { return m_pEntInst->getAttr(attrDef); }
74
83 virtual OdRxValue getAttr(const OdAnsiString &attrName) const { return m_pEntInst->getAttr(attrName); }
84
90
96 bool isKindOf(OdIfcEntityType type) const { return m_pEntInst->isKindOf(type); };
97
103 bool isInstanceOf(OdIfcEntityType entityType) const { return m_pEntInst->isInstanceOf(entityType); };
104
109 const OdAnsiString& typeName() { return m_pEntInst->typeName(); };
110
116 static OdIfcEntityPtr earlyAccess(OdIfcCompound* pInst) { return pInst->m_pEntInst; };
117
119
120 //
121 // OdGiDrawable void implementation
122 //
123
130 virtual bool isPersistent() const { return id() != NULL; };
131
138 virtual OdDbStub* id() const { return m_pEntInst->m_id; };
139
144 virtual void setGsNode(OdGsCache* pGsNode);
145
150 virtual OdGsCache* gsNode() const;
151
158
164 virtual bool subWorldDraw(OdGiWorldDraw * wd) const;
165
170 virtual void subViewportDraw(OdGiViewportDraw * vd) const;
171
172//DOM-IGNORE-BEGIN
173private:
174
175 void setInst(OdIfcEntity *pEnt) { m_pEntInst = pEnt; }
176
177 friend class ::OdIfcEntResolver;
178//DOM-IGNORE-END
179};
180
185
186}
187
188#endif // _IFC_COMPOUND_H_
#define IFCCORE_EXPORT
OdDAI::Model OdIfcModel
Definition: IfcModel.h:32
unsigned int OdUInt32
#define ODRX_DECLARE_MEMBERS(ClassName)
Definition: RxObject.h:112
virtual OdUInt32 subSetAttributes(OdGiDrawableTraits *traits) const
OdIfcFile * owningIfcFile() const
OdIfcEntityType type()
const OdAnsiString & typeName()
Definition: IfcCompound.h:109
OdRxValue getAttr(const OdIfcAttribute attrDef) const
Definition: IfcCompound.h:73
OdIfcEntity * m_pEntInst
Definition: IfcCompound.h:47
virtual OdRxValue getAttr(const OdAnsiString &attrName) const
Definition: IfcCompound.h:83
virtual void setGsNode(OdGsCache *pGsNode)
virtual OdDbStub * id() const
Definition: IfcCompound.h:138
bool isKindOf(OdIfcEntityType type) const
Definition: IfcCompound.h:96
OdIfcModel * owningModel() const
virtual void compose()
virtual bool isPersistent() const
Definition: IfcCompound.h:130
static OdIfcEntityPtr earlyAccess(OdIfcCompound *pInst)
Definition: IfcCompound.h:116
virtual bool subWorldDraw(OdGiWorldDraw *wd) const
virtual void subViewportDraw(OdGiViewportDraw *vd) const
virtual OdGsCache * gsNode() const
bool isInstanceOf(OdIfcEntityType entityType) const
Definition: IfcCompound.h:103
bool isInstanceOf(OdIfcEntityType entityType) const
virtual bool isKindOf(OdIfcEntityType entityType) const
virtual OdRxValue getAttr(const OdIfcAttribute attrDef) const
GLuint GLsizei GLsizei GLint GLenum * type
Definition: gles2_ext.h:274
OdSmartPtr< OdIfcCompound > OdIfcCompoundPtr
Definition: IfcCompound.h:184