CFx SDK Documentation 2024 SP0
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
OdIfc::OdIfcBodyVariant Class Reference

#include <IfcBodyVariant.h>

Public Types

enum  Type {
  kEmpty , kFacetModelerBody , kMdBody , kAcisBody ,
  kIfcBrep
}
 

Public Member Functions

 OdIfcBodyVariant ()
 
bool isFacetModelerBody () const
 
void setFacetModelerBody (const FacetModeler::Body *pFacetModelerBody)
 
const FacetModeler::BodyfacetModelerBody () const
 
bool isMdBody () const
 
void setMdBody (const OdMdBody *pMdBody)
 
const OdMdBody * mdBody () const
 
bool isAcisBody () const
 
void setAcisBody (const BODY *pAcisBody)
 
const BODY * acisBody () const
 
bool isIfcBrep () const
 
void setIfcBrep (const OdBrBrep &ifcBrBrep)
 
OdBrBrep ifcBrep () const
 
Type kind () const
 

Detailed Description

Defines an interface to get a body from a representation item of an OdIfcProduct.

Remarks
Note that the OdIfcBodyVariant object does not own the body that it contains.

Definition at line 50 of file IfcBodyVariant.h.

Member Enumeration Documentation

◆ Type

Enumerates referenced body types.

Enumerator
kEmpty 

No body is referenced.

kFacetModelerBody 

A reference to a FacetModeler body.

kMdBody 

A reference to an OdBrepModeler body.

kAcisBody 

A reference to a Spatial Acis body.

kIfcBrep 

A reference to an IfcBrepBuilder body.

Definition at line 56 of file IfcBodyVariant.h.

Constructor & Destructor Documentation

◆ OdIfcBodyVariant()

OdIfc::OdIfcBodyVariant::OdIfcBodyVariant ( )

Creates a new instance of the OdIfcBodyVariant class that does not reference any body.

Member Function Documentation

◆ acisBody()

const BODY * OdIfc::OdIfcBodyVariant::acisBody ( ) const

Retrieves the current referenced Spatial Acis body.

Returns
A raw pointer to a Spatial Acis body object.

◆ facetModelerBody()

const FacetModeler::Body * OdIfc::OdIfcBodyVariant::facetModelerBody ( ) const

Retrieves the referenced FacetModeler body.

Returns
A raw pointer to a FacetModeler::Body object that represents the referenced FacetModeler body.

◆ ifcBrep()

OdBrBrep OdIfc::OdIfcBodyVariant::ifcBrep ( ) const

Retrieves the current referenced IfcBrepBuilder body.

Returns
An IfcBrepBuilder object that represents the body.

◆ isAcisBody()

bool OdIfc::OdIfcBodyVariant::isAcisBody ( ) const
inline

Checks if the body is a Spatial Acis body.

Returns
true if the body is a Spatial Acis body; otherwise the method returns false.

Definition at line 115 of file IfcBodyVariant.h.

◆ isFacetModelerBody()

bool OdIfc::OdIfcBodyVariant::isFacetModelerBody ( ) const
inline

Checks if the body is a FacetModeler body.

Returns
true if the body is a FacetModeler body; otherwise the method returns false.

Definition at line 79 of file IfcBodyVariant.h.

◆ isIfcBrep()

bool OdIfc::OdIfcBodyVariant::isIfcBrep ( ) const
inline

Checks if the body is an IfcBrepBuilder body.

Returns
true if the body is an IfcBrepBuilder body; otherwise the method returns false.

Definition at line 133 of file IfcBodyVariant.h.

◆ isMdBody()

bool OdIfc::OdIfcBodyVariant::isMdBody ( ) const
inline

Checks if the body is an OdBrepModeler body.

Returns
true if the body is an OdBrepModeler body; otherwise the method returns false.

Definition at line 97 of file IfcBodyVariant.h.

◆ kind()

Type OdIfc::OdIfcBodyVariant::kind ( ) const
inline

Retrieves the type of the referenced body.

Returns
The referenced body type.

Definition at line 151 of file IfcBodyVariant.h.

◆ mdBody()

const OdMdBody * OdIfc::OdIfcBodyVariant::mdBody ( ) const

Retrieves the current referenced OdBrepModeler body.

Returns
A raw pointer to an OdBrepModeler object that represents the current referenced OdBrepModeler body.

◆ setAcisBody()

void OdIfc::OdIfcBodyVariant::setAcisBody ( const BODY *  pAcisBody)

Sets a new Spatial Acis body reference.

Parameters
pAcisBody[in] A Spatial Acis body object to be set.

◆ setFacetModelerBody()

void OdIfc::OdIfcBodyVariant::setFacetModelerBody ( const FacetModeler::Body pFacetModelerBody)

Sets a new FacetModeler body reference.

Parameters
pFacetModelerBody[in] A FacetModeler body object to be set.

◆ setIfcBrep()

void OdIfc::OdIfcBodyVariant::setIfcBrep ( const OdBrBrep ifcBrBrep)

Sets a new IfcBrepBuilder body reference.

Parameters
ifcBrBrep[in] A nw IfcBrepBuilder body object to be set.

◆ setMdBody()

void OdIfc::OdIfcBodyVariant::setMdBody ( const OdMdBody *  pMdBody)

Sets a new OdBrepModeler body reference.

Parameters
pMdBody[in] A new OdBrepModeler body object to be set.

Member Data Documentation

◆ pAcisBody

const BODY* OdIfc::OdIfcBodyVariant::pAcisBody

Definition at line 159 of file IfcBodyVariant.h.

◆ pFmBody

const FacetModeler::Body* OdIfc::OdIfcBodyVariant::pFmBody

Definition at line 157 of file IfcBodyVariant.h.

◆ pMdBody

const OdMdBody* OdIfc::OdIfcBodyVariant::pMdBody

Definition at line 158 of file IfcBodyVariant.h.


The documentation for this class was generated from the following file: