#include <daiModule.h>
#include "daiHostModule.h"
#include "IfcBuildOptions.h"
#include "IfcValueTypes.h"
#include "IfcUtils.h"
Go to the source code of this file.
|
| IFCCORE_EXPORT OdResult | odIfcInitialize (bool initCDA=true, bool initIfcGeomResource=true, ModelerType modelerType=kDefaultModeler) |
| |
| IFCCORE_EXPORT bool | odIfcIsInitialized () |
| |
| IFCCORE_EXPORT OdResult | odIfcUninitialize () |
| |
| IFCCORE_EXPORT OdResult | odIfcInitModelerGeometry (ModelerType modelerType=kDefaultModeler) |
| |
| IFCCORE_EXPORT bool | odIfcIsGeomResourceInitialized () |
| |
| IFCCORE_EXPORT bool | odIfcIsCDAInitialized () |
| |
| IFCCORE_EXPORT OdResult | getDrawableShapeRepresentation (OdGiDrawablePtr pEnt, const OdDAIObjectId &subContextId, OdDAI::Model *pModel, OdDAIObjectId &shapeId, int shapeType) |
| |
| IFCCORE_EXPORT OdResult | getDrawableShapeRepresentation (const OdArray< OdGiDrawablePtr > &entities, const OdDAIObjectId &subContextId, OdDAI::Model *pModel, OdDAIObjectId &shapeId, int shapeType) |
| |
| IFCCORE_EXPORT void | setIfcFormatter (class OdUnitsFormatter *pFormatter) |
| |
| IFCCORE_EXPORT OdUnitsFormatter * | getIfcFormatter () |
| |
◆ OdIfcCoreModulePtr
◆ IfcSchema
Enumeration for default database content initialization modes.
| Enumerator |
|---|
| kScmUndefined | Database content is not initialized (undefined schema).
|
| kScmIfc2x3 | Default database content has the Ifc2x3 version.
|
| kScmIfc4 | Default database content has the Ifc4 version.
|
| kScmIfc4x3 | Default database content has the Ifc4x3 version.
|
| kScmIfc4x4 | Default database content has the Ifc4x4 current version.
|
Definition at line 39 of file IfcCore.h.
◆ ModelerType
Defines available modeler types.
| Enumerator |
|---|
| kFacetModeler | ODA Facet Modeler.
|
| kSpaModeler | Spatial ACIS Modeler.
|
| kBrepModeler | ODA Brep Modeler.
|
| kDefaultModeler | Default type of the modeler.
|
Definition at line 56 of file IfcCore.h.
◆ getDrawableShapeRepresentation() [1/2]
Creates shape representations for each provided GiDrawable entity and returns the array of identifiers for every newly created shape representation to the calling subroutine. Every newly created shape representation is assigned to a specified representation context.
- Parameters
-
| entities | [in] An array of entities that should be converted into an OdIfcShapeRepresentation object. |
| subContextId | [in] An identifier of the sub-context object to which the shape representation will be added. |
| pModel | [in] A raw pointer to the instance of the <exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcModel.html>OdIfcModel</exref> class that represents the current model of the file. |
| shapeId | [out] A placeholder for the identifier of the created shape representation object. |
| shapeType | [in] A type of the shape representation. |
- Returns
- eOk if the shape representation object was successfully created; otherwise, the function returns an appropriate error code.
◆ getDrawableShapeRepresentation() [2/2]
Creates a shape representation of a specified <exref target="https://docs.opendesign.com/tv_api_cpp/OdGiDrawable.html">GiDrawable</exref> entity inside a specified model and associates it with a specified representation context.
- Parameters
-
| pEnt | [in] A smart pointer to an entity, that should be converted into a shape representation. |
| subContextId | [in] An identifier of the sub-context object to which the shape representation should be added. |
| pModel | [in] A smart pointer to an <exref target="https://docs.opendesign.com/tifc_api_cpp/OdIfcModel.html>OdIfcModel</exref> object that represents the current model of the file. |
| shapeId | [out] The object identifier of the created shape representation. |
| shapeType | [in] A type of the shape representation. |
- Returns
- eOk if the shape representation was successfully created; otherwise, the function returns an appropriate error code.
◆ getIfcFormatter()
◆ odIfcInitialize()
Initializes IFC SDK functionality.
- Parameters
-
| initCDA | [in] A flag that determines whether Common Data Access (CDA) functionality should be provided for IFC data. |
| initIfcGeomResource | [in] A flag that determines whether geometry resources are initialized as well (if equal to true) or not (if equal to false). |
| modelerType | [in] A type of modeler that should be used for geometry creation. |
- Returns
- eOk if IFC SDK was successfully initialized; otherwise, the function returns an appropriate error code.
◆ odIfcInitModelerGeometry()
Initializes IFC SDK Modeler functionality.
- Parameters
-
| modelerType[in] | A type of the modeler that is used to create the geometry. |
- Returns
- eOk if IFC SDK Modeler was successfully initialized; otherwise, the function returns an appropriate error code.
◆ odIfcIsCDAInitialized()
Retrieves whether the Common Data Access functionality is initialized for ODA IFC SDK.
- Returns
- The function returns true if the CDA is initialized and can be used for IFC data.
◆ odIfcIsGeomResourceInitialized()
Retrieves whether the IFC geometry module is loaded and initialized.
- Returns
- true if the IFC geometry module is initialized; otherwise, the function returns false.
◆ odIfcIsInitialized()
Retrieves whether IFC SDK functionality has already been initialized.
- Returns
- true if IFC SDK has already been initialized; otherwise, the function returns false.
◆ odIfcUninitialize()
De-initializes IFC SDK functionality.
- Returns
- eOk if IFC SDK was successfully de-initialized; otherwise, the function returns an appropriate error code.
◆ setIfcFormatter()