CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfcModelContext Class Referencefinal

#include <IfcModelContext.h>

Inheritance diagram for OdIfcModelContext:

Public Member Functions

 OdIfcModelContext (OdDeviationParams params=OdDeviationParams(), OdCmEntityColor color=OdCmEntityColor::kNone)
 
OdArray< OdIfc::OdIfcEntityType > & getGeometryComposeTypes ()
 
void setGeometryComposeTypes (const OdArray< OdIfc::OdIfcEntityType > &geometryComposeTypes)
 
void setDrawOpenings (bool val)
 
bool getDrawOpenings ()
 
void setDrawOpeningsTransparency (float val)
 
float getDrawOpeningsTransparency ()
 
bool getComposeOutOfSpatialStructure () const
 
void setComposeOutOfSpatialStructure (bool val)
 

Detailed Description

A class that implements working with an IFC model context.

Definition at line 39 of file IfcModelContext.h.

Constructor & Destructor Documentation

◆ OdIfcModelContext()

OdIfcModelContext::OdIfcModelContext ( OdDeviationParams params = OdDeviationParams(),
OdCmEntityColor color = OdCmEntityColor::kNone )

Creates a new model context object with specified deviation parameters and color.

Parameters
params[in] Deviation parameters.
color[in] Default model color value.

Member Function Documentation

◆ getComposeOutOfSpatialStructure()

bool OdIfcModelContext::getComposeOutOfSpatialStructure ( ) const

Retrieves a value that determines if compose of IfcElement instances which out of IFC model Spatial Structure needed or not.

Returns
true if compose of out of spatial structure IfcElements is needed, otherwise returns false.
Remarks
Turned on by default.

◆ getDrawOpenings()

bool OdIfcModelContext::getDrawOpenings ( )

Retrieves a value that determines if draw IfcOpenings elements needed or not.

Returns
true if draw IfcOpenings elements is needed, otherwise returns false.
Remarks
Turned off by default.

◆ getDrawOpeningsTransparency()

float OdIfcModelContext::getDrawOpeningsTransparency ( )

Retrieves a value that determines transparency value for openings.

Returns
Float value that determines currwnt transparency for openings that should be draw.
Remarks
Set to 0.05 by default.

◆ getGeometryComposeTypes()

OdArray< OdIfc::OdIfcEntityType > & OdIfcModelContext::getGeometryComposeTypes ( )

Retrieves an array of types which instances should participate in geometry compose process.

Returns
an array of IFC entity types for geometry compose.
Remarks
Types should be derived from IfcProduct.

◆ setComposeOutOfSpatialStructure()

void OdIfcModelContext::setComposeOutOfSpatialStructure ( bool val)

Sets a value that determines if compose of IfcElement instances which out of IFC model spatial structure needed or not.

Parameters
val[in] a new value for compose IfcElement instance which are out of spatial structure.

◆ setDrawOpenings()

void OdIfcModelContext::setDrawOpenings ( bool val)

Sets a value that determines if draw IfcOpenings elements needed or not.

Parameters
val[in] a new value for draw IfcOpenings elements.

◆ setDrawOpeningsTransparency()

void OdIfcModelContext::setDrawOpeningsTransparency ( float val)

Sets a value that determines transparency value for openings that should be draw.

Parameters
val[in] a new value for transparency.

◆ setGeometryComposeTypes()

void OdIfcModelContext::setGeometryComposeTypes ( const OdArray< OdIfc::OdIfcEntityType > & geometryComposeTypes)

Sets an array of types which instances should participate in geometry compose process to this IFC model context.

Parameters
geometryComposeTypes[in] an array of IFC entity types for geometry compose.
Remarks
Types should be derived from IfcProduct.

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