CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfcEntResolver Class Referenceabstract

#include <IfcFile.h>

Public Member Functions

 OdIfcEntResolver ()
 
virtual ~OdIfcEntResolver ()
 
void setFile (OdIfcFile *file)
 
void setComposeTypes (const OdArray< OdIfc::OdIfcEntityType > &composeTypes)
 
virtual bool resolve (OdIfc::OdIfcInstance *inst)=0
 

Protected Member Functions

void assignEntity (OdIfc::OdIfcCompound *compound, OdIfc::OdIfcInstance *inst)
 

Protected Attributes

OdIfcFilem_pFile
 
OdArray< OdIfc::OdIfcEntityTypem_composeTypes
 

Detailed Description

An abstract class that provides an interface for the model's entity resolving functionality. An entity resolver resolves the underlying application instance data into the corresponding compound object (in most cases) that can later be used and vectorized or into other objects such as points, matrices, vectors, etc.

See also
<exref target="https://docs.opendesign.com/tifc_api_cpp/ifc_object_model.html>IFC Object Model</exref>

Definition at line 339 of file IfcFile.h.

Constructor & Destructor Documentation

◆ OdIfcEntResolver()

OdIfcEntResolver::OdIfcEntResolver ( )
inline

Creates a new entity resolver with default parameters.

Definition at line 356 of file IfcFile.h.

◆ ~OdIfcEntResolver()

virtual OdIfcEntResolver::~OdIfcEntResolver ( )
inlinevirtual

Destroys the entity resolver object.

Definition at line 363 of file IfcFile.h.

Member Function Documentation

◆ assignEntity()

void OdIfcEntResolver::assignEntity ( OdIfc::OdIfcCompound * compound,
OdIfc::OdIfcInstance * inst )
protected

◆ resolve()

virtual bool OdIfcEntResolver::resolve ( OdIfc::OdIfcInstance * inst)
pure virtual

Resolves the model's entity.

Parameters
inst[in] A raw pointer to the entity instance to be resolved.
Returns
true if the entity was successfully resolved; otherwise, the method returns false.

◆ setComposeTypes()

void OdIfcEntResolver::setComposeTypes ( const OdArray< OdIfc::OdIfcEntityType > & composeTypes)
inline

Sets a set of IfcProduct-base entity types for the processing within a resolver. All other type branches are resolved by default.

Parameters
composeTypes[in] An array of <<exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfc__OdIfcEntityType.html>OdIfcEntityType</exref> OdIfcEntityType> values that contains entity types for the processing.
Remarks
Empty array allows composing of all entities based on the IfcProduct class.

Definition at line 378 of file IfcFile.h.

◆ setFile()

void OdIfcEntResolver::setFile ( OdIfcFile * file)
inline

Sets a new model for the entity resolver object.

Parameters
file[in] A raw pointer to the <exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcFile.html>model content</exref> object to be set.

Definition at line 369 of file IfcFile.h.

Member Data Documentation

◆ m_composeTypes

OdArray<OdIfc::OdIfcEntityType> OdIfcEntResolver::m_composeTypes
protected

Definition at line 346 of file IfcFile.h.

◆ m_pFile

OdIfcFile* OdIfcEntResolver::m_pFile
protected

Definition at line 344 of file IfcFile.h.


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