|
CFx SDK Documentation 2026 SP0
|
#include <IfcFile.h>
Public Types | |
| typedef OdArray< OdIfcDatabaseReactor *, OdMemoryAllocator< OdIfcDatabaseReactor * > > | Reactors |
Public Member Functions | |
| ODRX_DECLARE_MEMBERS (OdIfcFile) | |
| OdIfcFile () | |
| ~OdIfcFile () | |
| OdIfcHostAppServices * | getAppServices () const |
| void | setAppServices (OdIfcHostAppServices *svcs) |
| OdResult | initialize (IfcSchema schema) |
| OdDAIObjectId | getProjectId () const |
| const OdDAIObjectIds | getRootIds () override |
| OdDAIObjectId | getEntityId (const OdDAI::CompressedGUID &ifcGUID) const |
| OdIfcModelContext & | getContext () |
| void | setContext (const OdIfcModelContext &context) |
| void | setActiveView (OdGsView *pActiveView) |
| OdGsView * | getActiveView () const |
| OdResult | composeEntities () |
| OdResult | composeEntitiesbyIds (const OdDAIObjectIds &entitiesToCompose) |
| OdResult | unresolveEntities () |
| OdResult | setContextSelection (const OdDAIObjectIds &contexts) |
| bool | getContextSelected (const OdDAIObjectId &idCtx) const |
| OdResult | getGeomExtents (OdGeExtents3d &extents) const |
| OdDAI::OdUnitConverterPtr | getUnitConverter () |
| virtual OdDAI::OdCompoundPtr | getCompound (const OdDAIObjectId &id) override |
| OdIfc::OdIfcInstancePtr | get (const OdDAIObjectId &id) const |
| OdResult | get (const OdDAIObjectIds &ids) const |
| bool | registerProduct (OdDAI::ApplicationInstance *pProduct) |
| bool | updateProduct (OdDAI::ApplicationInstance *pProduct) |
| void | addReactor (OdIfcDatabaseReactor *pReactor) |
| void | fireObjectErased (OdIfc::OdIfcCompound *pProduct, bool pErased) |
| void | fireObjectAppended (OdIfc::OdIfcCompound *pProduct) |
| void | fireObjectModified (OdIfc::OdIfcCompound *pProduct) |
| virtual void | setGsNode (OdGsCache *pGsNode) |
| virtual OdGsCache * | gsNode () const |
| OdResult | initializeUnitConverter () |
Public Attributes | |
| OdMutex | m_mutex |
Protected Member Functions | |
| virtual OdResult | onReadFileEnd () override |
| virtual OdResult | checkSchema (const OdAnsiString &schemaIdentifier) const override |
A class that implements working with an IFC file header and data sections (header and model), takes responsibility for the geometry creation and visualization, higher-level features like the access to unit conversions and mapping IfcGuid - OdDAIObjectId.
| typedef OdArray<OdIfcDatabaseReactor*, OdMemoryAllocator<OdIfcDatabaseReactor*> > OdIfcFile::Reactors |
| OdIfcFile::OdIfcFile | ( | ) |
Creates a new IFC file object with default parameters.
| OdIfcFile::~OdIfcFile | ( | ) |
Destroys the IFC file object.
| void OdIfcFile::addReactor | ( | OdIfcDatabaseReactor * | pReactor | ) |
Function adds reactor instanse to the OdIfcFile.
| pReactor | [in] Pointer to the notification class. |
|
overrideprotectedvirtual |
| OdResult OdIfcFile::composeEntities | ( | ) |
Composes geometry of entities in the IFC model using the assigned <exref target="https://docs.opendesign.com/tifc_api_cpp/resolver.html>resolver</exref> object.
| OdResult OdIfcFile::composeEntitiesbyIds | ( | const OdDAIObjectIds & | entitiesToCompose | ) |
Composes geometry of entities subset in the IFC model using the assigned <link OdIfcEntResolver, resolver> object.
| entitiesToCompose | [in] A set of <link OdDAIObjectId, identifiers of SDAI objects>, which represent the entities selection. |
| void OdIfcFile::fireObjectAppended | ( | OdIfc::OdIfcCompound * | pProduct | ) |
Performs notifications whenever an OdIfcCompound inner entity has been appended to an OdIfcFile.
| pProduct | [in] Pointer to the object being appended. |
| void OdIfcFile::fireObjectErased | ( | OdIfc::OdIfcCompound * | pProduct, |
| bool | pErased ) |
Performs notifications whenever an OdIfcCompound inner entity has been erased in the current OdIfcFile.
| pProduct | [in] Pointer to the object being erased. |
| void OdIfcFile::fireObjectModified | ( | OdIfc::OdIfcCompound * | pProduct | ) |
Performs notifications whenever an OdIfcCompound inner entity has been modified in the current OdIfcFile.
| pProduct | [in] Pointer to the object being modified. |
| OdIfc::OdIfcInstancePtr OdIfcFile::get | ( | const OdDAIObjectId & | id | ) | const |
Performs an attempt to compose an instance using the specified resolver object.
| id | [in] An <exref target="https://docs.opendesign.com/tifc_api_cpp/identifier.html>identifier</exref> of an object to compose. |
| OdResult OdIfcFile::get | ( | const OdDAIObjectIds & | ids | ) | const |
Performs an attempt to compose entities using the specified resolver object.
| ids | [in] An array of <exref target="https://docs.opendesign.com/tifc_api_cpp/identifiers.html>identifiers</exref> of objects to compose. |
| OdGsView * OdIfcFile::getActiveView | ( | ) | const |
Retrieves the current active view of the IFC file object.
| OdIfcHostAppServices * OdIfcFile::getAppServices | ( | ) | const |
Retrieves the application services object that is associated with the IFC file object.
|
overridevirtual |
Performs an attempt the compose object for an entity instance, if application instance doesn't have associated compound object. If application instance already has associated compound, it will be returned by this method.
| id | [in] An <exref target="https://docs.opendesign.com/tifc_api_cpp/identifier.html>identifier</exref> of an object to compose. |
| OdIfcModelContext & OdIfcFile::getContext | ( | ) |
Retrieves the current model context of the file object.
| bool OdIfcFile::getContextSelected | ( | const OdDAIObjectId & | idCtx | ) | const |
Determines whether an instance of the IfcGeometricRepresentationContext class is selected to build the geometry.
| idCtx | [in] Object ID of geometric context to test. |
| OdDAIObjectId OdIfcFile::getEntityId | ( | const OdDAI::CompressedGUID & | ifcGUID | ) | const |
Retrieves entity database id by IFC GUID.
| ifcGUID | [in] An IFC GUID identifier of entity. |
| OdResult OdIfcFile::getGeomExtents | ( | OdGeExtents3d & | extents | ) | const |
Retrieves the current geometrical extents of the model.
| extents | [out] A placeholder for the current geometry extents object to be returned to a calling subroutine. |
| OdDAIObjectId OdIfcFile::getProjectId | ( | ) | const |
Retrieves the IFC model's root entity.
|
override |
Returns all found IfcProject instances object identifiers within a model.
| OdDAI::OdUnitConverterPtr OdIfcFile::getUnitConverter | ( | ) |
Retrieves the current model's unit converter.
|
inlinevirtual |
Initializes the IFC file object with a specified schema.
| schema | [in] A schema identifier. |
| OdResult OdIfcFile::initializeUnitConverter | ( | ) |
Sets convertible unit from current <OdDAI::Model, Model> class.
| OdIfcFile::ODRX_DECLARE_MEMBERS | ( | OdIfcFile | ) |
|
overrideprotectedvirtual |
Method is called just after file reading has ended, it initializes units converter for loaded model.
| bool OdIfcFile::registerProduct | ( | OdDAI::ApplicationInstance * | pProduct | ) |
Updates state of newly added to the model IfcProduct and allows reactor mechanism send appropiate notifications.
| pProduct | [in] Pointer to the instance that has been appended to the file content. |
Sets a new active view for the IFC file's content.
| pActiveView | [in] A raw pointer to the <exref target="https://docs.opendesign.com/tv_api_cpp/OdGsView.html">OdGsView</exref> object. |
| void OdIfcFile::setAppServices | ( | OdIfcHostAppServices * | svcs | ) |
Sets a new application services object with the IFC file object.
| svcs | [in] A raw pointer to the <exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcHostAppServices.html>OdIfcHostAppServices</exref> object to be assigned with the file. |
| void OdIfcFile::setContext | ( | const OdIfcModelContext & | context | ) |
Sets a new model context for the IFC file object.
| context | [in] An instance of the <exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcModelContext.html>OdIfcModelContext</exref> class to be set as the model context object. |
| OdResult OdIfcFile::setContextSelection | ( | const OdDAIObjectIds & | contexts | ) |
Sets geometrical context selection to build a geometrical representation for selected geometrical contexts. Only selected contexts will be composed and drawn.
| contexts | [in] A set of <exref target="https://docs.opendesign.com/tifc_api_cpp/OdDAIObjectId.html>identifiers of SDAI objects</exref>, which represent the context selection. |
| OdResult OdIfcFile::unresolveEntities | ( | ) |
Unresolve entities in the IFC model.
| bool OdIfcFile::updateProduct | ( | OdDAI::ApplicationInstance * | pProduct | ) |
Updates state of modified IfcProduct with unresolve/resolve attempt and allows reactor mechanism send appropiate notifications.
| pProduct | [in] Pointer to the instance that has been modified (including geometric representation and others). |