CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
IfcBodyVariant.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_BODYVARIANT_H_
25#define _IFC_BODYVARIANT_H_
26
27#include "IfcBuildOptions.h"
28#include "IfcCommon.h"
29
30#include "Br/BrBrep.h"
31
32
33namespace FacetModeler {
34 class Body;
35}
36class OdMdBody;
37class BODY;
38
42namespace OdIfc
43{
51 {
52 public:
56 enum Type
57 {
68 };
69
74
79 bool isFacetModelerBody() const { return kFacetModelerBody == m_type; }
80
85 void setFacetModelerBody(const FacetModeler::Body* pFacetModelerBody);
86
92
97 bool isMdBody() const { return kMdBody == m_type; }
98
103 void setMdBody(const OdMdBody* pMdBody);
104
109 const OdMdBody* mdBody() const;
110
115 bool isAcisBody() const { return kAcisBody == m_type; }
116
121 void setAcisBody(const BODY* pAcisBody);
122
127 const BODY* acisBody() const;
128
133 bool isIfcBrep() const { return kIfcBrep == m_type; }
134
139 void setIfcBrep(const OdBrBrep& ifcBrBrep);
140
146
151 Type kind() const { return m_type; }
152
153 //DOM-IGNORE-BEGIN
154 private:
155 union
156 {
158 const OdMdBody* pMdBody;
159 const BODY* pAcisBody;
160 };
161 OdBrBrep m_brep;
162 Type m_type;
163 //DOM-IGNORE-END
164 };
165
166}
167
168#endif // _IFC_BODYVARIANT_H_
#define IFCGEOM_EXPORT
void setIfcBrep(const OdBrBrep &ifcBrBrep)
OdBrBrep ifcBrep() const
bool isFacetModelerBody() const
const OdMdBody * pMdBody
void setAcisBody(const BODY *pAcisBody)
const FacetModeler::Body * facetModelerBody() const
const FacetModeler::Body * pFmBody
const BODY * acisBody() const
const OdMdBody * mdBody() const
void setMdBody(const OdMdBody *pMdBody)
void setFacetModelerBody(const FacetModeler::Body *pFacetModelerBody)