CFx SDK Documentation 2024 SP0
|
#include <IfcFile.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (OdIfcFile) | |
OdIfcFile () | |
~OdIfcFile () | |
OdIfcHostAppServices * | getAppServices () const |
void | setAppServices (OdIfcHostAppServices *svcs) |
OdResult | initialize (IfcSchema schema) |
OdDAIObjectId | getProjectId () const |
OdDAIObjectId | getEntityId (const OdIfcGUID &ifcGUID) const |
OdIfcModelContext | getContext () const |
void | setContext (const OdIfcModelContext &context) |
void | setActiveView (OdGsView *pActiveView) |
OdGsView * | getActiveView () const |
OdResult | composeEntities () |
OdResult | unresolveEntities () |
OdResult | setContextSelection (const OdDAIObjectIds &contexts) |
bool | getContextSelected (const OdDAIObjectId &idCtx) const |
OdResult | getGeomExtents (OdGeExtents3d &extents) const |
OdIfcUnitConverterPtr | getUnitConverter () |
OdIfc::OdIfcEntityPtr | get (const OdDAIObjectId &id) const |
OdResult | get (const OdDAIObjectIds &ids) const |
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 |
virtual OdResult | checkRepo (const OdDAI::Repository *repo) 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.
OdIfcFile::OdIfcFile | ( | ) |
Creates a new IFC file object with default parameters.
OdIfcFile::~OdIfcFile | ( | ) |
Destroys the IFC file object.
|
overrideprotectedvirtual |
Checks if repository contains single model based on IFC schema.
repo | [in] A raw pointer to the repository object to be attached to the file object. |
|
overrideprotectedvirtual |
OdResult OdIfcFile::composeEntities | ( | ) |
Composes geometry of entities in the IFC model using the assigned resolver object.
OdIfc::OdIfcEntityPtr OdIfcFile::get | ( | const OdDAIObjectId & | id | ) | const |
Performs an attempt to compose an entity using the specified resolver object.
id | [in] An <link OdDAIObjectId, identifier> 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 <link OdDAIObjectId, identifiers> 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.
OdIfcModelContext OdIfcFile::getContext | ( | ) | const |
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 OdIfcGUID & | 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.
OdIfcUnitConverterPtr 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.
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/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 <link OdIfcHostAppServices, OdIfcHostAppServices> 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 <link OdIfc::OdIfcModelContext, OdIfcModelContext> 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 <link OdDAIObjectId, identifiers of SDAI objects>, which represent the context selection. |
OdResult OdIfcFile::unresolveEntities | ( | ) |
Unresolve entities in the IFC model.