#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
A data type that represents a smart pointer to an <link OdIfc::OdIfcCoreModule, OdIfcCoreModule> object.
Definition at line 149 of file IfcCore.h.
◆ 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_RC4 | Default database content has the Ifc4x3 Release Candidate 4 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 54 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, which will be converted in the 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 <link , OdIfcModel> class that represents the current model of the file. |
shapeId | [out] A placeholder for the identifier of the created shape representation object. |
- 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 GiDrawable 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 <link OdIfcModel, OdIfcModel> object that represents the current model of the file. |
shapeId | [out] The object identifier of the created 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
- 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] | Modeler type which will be used to create geometry. |
- Returns
- 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
- The function 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
- Returns eOk if IFC SDK was successfully de-initialized; otherwise, the function returns an appropriate error code.
◆ setIfcFormatter()