|
CFx SDK Documentation 2026 SP0
|
#include <IfcModelFiller.h>
Classes | |
| struct | EntityDefinitions |
Public Types | |
| enum | UnitsConversion { IfcLengthUnit_Inch_To_Meters = 0 , IfcLengthUnit_Foot_To_Meters = 1 , IfcAreaUnit_SquareInch_To_SquareMeters = 7 , IfcAreaUnit_SquareFoot_To_SquareMeters = 8 , IfcVolumeUnit_CubicInch_To_CubicMeters = 15 , IfcVolumeUnit_CubicFoot_To_CubicMeters = 16 , IfcPlaneAngleUnit_Angle_To_Radians = 23 } |
Public Member Functions | |
| virtual | ~OdIfcModelFiller () |
| OdIfcModelPtr | model () |
| OdIfc::OdIfcInstancePtr | createFromScratch (const OdString &organizationName, const OdString &applicationDeveloperName, const OdString &applicationDeveloperDescription, const OdString &applicationFullName, const OdString &applicationVersion, const OdString &applicationIdentifier) |
| const OdDAIObjectId & | dirX () const |
| const OdDAIObjectId & | dirY () const |
| const OdDAIObjectId & | dirZ () const |
| const OdDAIObjectId & | origin () const |
| const OdDAIObjectId & | identity () const |
| const OdDAIObjectId & | dirX2D () const |
| const OdDAIObjectId & | dirY2D () const |
| const OdDAIObjectId & | origin2D () const |
| const OdDAIObjectId & | identity2D () const |
| OdIfc::OdIfcInstancePtr | person () |
| OdIfc::OdIfcInstancePtr | ownerHistory () |
| OdIfc::OdIfcInstancePtr | unitAssignment () |
| OdIfc::OdIfcInstancePtr | project () |
| OdIfc::OdIfcInstancePtr | site () |
| OdIfc::OdIfcInstancePtr | getObjectDefinition () |
| OdIfc::OdIfcInstancePtr | getPropertySet () |
| bool | putAttrs (OdIfc::OdIfcInstancePtr &inst, std::map< OdAnsiString, OdRxValue > &attrs) |
| void | setOwnerHistory (OdIfc::OdIfcInstancePtr history) |
| void | setProject (OdIfc::OdIfcInstancePtr project) |
| bool | appendId (OdIfc::OdIfcInstance *pInst, OdIfc::OdIfcAttribute attr, OdDAIObjectId id) |
| OdIfc::OdIfcInstancePtr | appendGeometricRepresentationContext (const OdAnsiString &name, const OdAnsiString &type, int dim, double precision=OdDAI::Consts::OdNan, OdDAIObjectId idWCS=OdDAIObjectId(), OdDAIObjectId idTrueNorth=OdDAIObjectId()) |
| OdIfc::OdIfcInstancePtr | appendGeometricRepresentationSubContext (const OdAnsiString &contextIdentifier, const OdAnsiString &contextType, OdIfc::OdIfcInstancePtr pParent, OdAnsiString targetView) |
| OdIfc::OdIfcInstancePtr | getGeometricRepresentationContext (const OdAnsiString &type) |
| OdIfc::OdIfcInstancePtr | getGeometricRepresentationSubContext (const OdAnsiString &contextIdentifier, const OdAnsiString &contextType) |
| OdIfc::OdIfcInstancePtr | createShapeRepresentation (const OdDAIObjectId &contextOfItems, const OdAnsiString &representationIdentifier, const OdAnsiString &representationType, const OdDAIObjectIds &items) |
| OdIfc::OdIfcInstancePtr | createProductDefinitionShape (const OdDAIObjectIds &representations) |
| OdIfc::OdIfcInstancePtr | createRepresentationMap (const OdDAIObjectId &MappingOrigin, const OdDAIObjectId &MappedRepresentation) |
| OdIfc::OdIfcInstancePtr | createMappedItem (const OdDAIObjectId &MappingSource, const OdDAIObjectId &MappingTarget) |
| OdIfc::OdIfcInstancePtr | createCompositeCurve (const OdDAIObjectIds &segments, bool selfIntersect) |
| OdIfc::OdIfcInstancePtr | createCompositeCurveSegment (const OdAnsiString &transition, bool sameSense, const OdDAIObjectId &parentCurve) |
| OdIfc::OdIfcInstancePtr | createCurveStyle (const OdDAIObjectId &curveColourId) |
| OdIfc::OdIfcInstancePtr | createTrimmedCurve (const OdDAIObjectId &basisCurve, double param1, double param2, bool bSenseAgreement) |
| OdIfc::OdIfcInstancePtr | createTrimmedCurve (const OdDAIObjectId &basisCurve, const OdDAIObjectId &trim1, const OdDAIObjectId &trim2, bool bSenseAgreement) |
| OdIfc::OdIfcInstancePtr | createPolyline (const OdDAIObjectIds &points) |
| OdIfc::OdIfcInstancePtr | createCircle (const OdGePoint2d ¢er, const OdGeVector2d &refDirection, double radius) |
| OdIfc::OdIfcInstancePtr | createPlane (const OdDAIObjectId &position) |
| OdIfc::OdIfcInstancePtr | createPlane (const OdGePlane &plane) |
| OdIfc::OdIfcInstancePtr | createWallStandardCase (const OdString &name, const OdDAIObjectId &objectPlacement, const OdDAIObjectId &representation) |
| OdIfc::OdIfcInstancePtr | createWall (const OdString &name, const OdDAIObjectId &objectPlacement, const OdDAIObjectId &representation) |
| OdIfc::OdIfcInstancePtr | createSlab (const OdString &name, const OdDAIObjectId &objectPlacement, const OdDAIObjectId &representation, const OdAnsiString &predefinedType) |
| OdIfc::OdIfcInstancePtr | createOpening (const OdString &name, const OdDAIObjectId &objectPlacement, const OdDAIObjectId &representation, const OdAnsiString &predefinedType=OdAnsiString()) |
| OdIfc::OdIfcInstancePtr | addRelVoidsElement (const OdDAIObjectId &relatingBuildingElement, const OdDAIObjectId &relatedOpeningElement) |
| OdIfc::OdIfcInstancePtr | createRelFillsElement (const OdDAIObjectId &relatingOpeningElement, const OdDAIObjectId &relatedBuildingElement) |
| OdIfc::OdIfcInstancePtr | createClassificationReference (const OdString &materialDefName, const OdString &location, const OdAnsiString &itemReference, const OdDAIObjectId &referencedSource) |
| OdIfc::OdIfcInstancePtr | createClassification (const OdAnsiString &source, const OdAnsiString &edition, const OdString &name) |
| OdIfc::OdIfcInstancePtr | createSiUnit (const char *unitType, const char *prefix, const char *name, bool append=false) |
| OdIfc::OdIfcInstancePtr | createUnitAssignment (const OdArray< OdDAIObjectId > &unitsCollection) |
| OdIfc::OdIfcInstancePtr | createConversionBasedUnit (const OdAnsiString &name, const OdDAIObjectId &conversionFactor, const OdDAIObjectId &dimensions, const OdAnsiString &unitType) |
| OdIfc::OdIfcInstancePtr | createMeasureWithUnit (double measureValue, const OdDAIObjectId &unit, const OdAnsiString &typeName) |
| void | setUnitAssignment (OdIfc::OdIfcInstancePtr unitsAssignment=OdIfc::OdIfcInstancePtr()) |
| OdIfc::OdIfcInstancePtr | addRelAggregates (OdIfc::OdIfcInstancePtr pRelating, OdIfc::OdIfcInstancePtr pRelated) |
| OdIfc::OdIfcInstancePtr | appendRelAggregates (OdIfc::OdIfcInstancePtr pRelating, OdIfc::OdIfcInstancePtr pRelated) |
| OdIfc::OdIfcInstancePtr | getRelAggregates (OdIfc::OdIfcInstancePtr pRelating) |
| OdIfc::OdIfcInstancePtr | addRelContainedInSpatialStructure (OdIfc::OdIfcInstancePtr pRelating, OdIfc::OdIfcInstancePtr pRelated) |
| OdIfc::OdIfcInstancePtr | addRelReferencedInSpatialStructure (OdIfc::OdIfcInstancePtr pRelating, OdIfc::OdIfcInstancePtr pRelated) |
| OdIfc::OdIfcInstancePtr | createRelContainedInSpatialStructure (const OdDAIObjectIds &relatedElements, const OdDAIObjectId &relStructure) |
| OdIfc::OdIfcInstancePtr | createRelReferencedInSpatialStructure (const OdDAIObjectIds &relatedElements, const OdDAIObjectId &relStructure) |
| OdIfc::OdIfcInstancePtr | createRelAggregates (const OdString &name, const OdDAIObjectId &relatingObject, const OdDAIObjectIds &relatedObjects) |
| OdIfc::OdIfcInstancePtr | createColourRgb (const OdUInt8 &red, const OdUInt8 &green, const OdUInt8 &blue) |
| OdIfc::OdIfcInstancePtr | createColourRgb (const double &r, const double &g, const double &b) |
| OdIfc::OdIfcInstancePtr | createLocalPlacement (OdIfc::OdIfcInstancePtr placementRelTo, OdIfc::OdIfcInstancePtr relativePlacement) |
| OdIfc::OdIfcInstancePtr | createLocalPlacement3d (const OdDAIObjectId &placementRelTo, const OdDAIObjectId &relativePlacement) |
| OdIfc::OdIfcInstancePtr | createLocalPlacement3d (const OdDAIObjectId &placementRelTo, const OdGePoint3d &ptLocation, const OdGeVector3d &axis, const OdGeVector3d &refDirection) |
| OdIfc::OdIfcInstancePtr | createCartesianPoint (const OdGePoint3d &p) |
| OdIfc::OdIfcInstancePtr | createCartesianPoint (const OdGePoint2d &p) |
| OdIfc::OdIfcInstancePtr | createPointByDistanceExpression (double distanceAlong, const OdDAIObjectId &basisCurve, double offsetLateral=0., double offsetVertical=0., double offsetLongitudinal=0., const OdAnsiString &distanceAlongType="ifclengthmeasure") |
| OdIfc::OdIfcInstancePtr | createDirection (const OdGeVector3d &v) |
| OdIfc::OdIfcInstancePtr | createDirection (const OdGeVector2d &v) |
| OdIfc::OdIfcInstancePtr | createAxis2Placement3D (const OdGeMatrix3d &m) |
| OdIfc::OdIfcInstancePtr | createAxis2Placement3D (const OdDAIObjectId &location, const OdDAIObjectId &axis, const OdDAIObjectId &refDirection) |
| OdIfc::OdIfcInstancePtr | createAxis2Placement3D (const OdGePoint3d &ptLocation, const OdGeVector3d *axis, const OdGeVector3d *refDirection) |
| OdIfc::OdIfcInstancePtr | createAxis2Placement2D (const OdGeMatrix2d &m) |
| OdIfc::OdIfcInstancePtr | createAxis2Placement2D (const OdDAIObjectId &location, const OdDAIObjectId &refDirection) |
| OdIfc::OdIfcInstancePtr | createSite (const OdAnsiString &name="Default site") |
| double | getConversionFactor (UnitsConversion unit) |
| IfcPropertySetFillerPtr | initPropertySet (OdIfc::OdIfcInstancePtr objectDefinition) |
| IfcPropertySetFillerPtr | initDetachedPropertySet () |
| OdIfc::OdIfcInstancePtr | createIfcPropertySet (const OdString &name, const OdDAIObjectIds &props) |
| IfcQuantitySetFillerPtr | createQuantitySet (OdIfc::OdIfcInstancePtr objectDefinition) |
| OdIfc::OdIfcInstancePtr | createRelDefinesByProperties (const OdDAIObjectIds &relatedObjects, OdDAIObjectId &relatingPropDef) |
| OdIfc::OdIfcInstancePtr | appendRelDefinesByProperties (OdIfc::OdIfcInstancePtr pRelatingPropertyDefinition, OdIfc::OdIfcInstancePtr relatedObjectDefinition) |
| OdIfc::OdIfcInstancePtr | getRelDefinesByProperties (OdIfc::OdIfcInstancePtr pRelatingPropertyDefinition) |
| OdIfc::OdIfcInstancePtr | createRelDefinesByType (const OdDAIObjectIds &relatedOjects, const OdDAIObjectId &relTypeId) |
| OdIfc::OdIfcInstancePtr | createSurfaceStyle (const OdAnsiString &name, const OdCmEntityColor &color) |
| OdIfc::OdIfcInstancePtr | findSurfaceStyle (const OdAnsiString &name) |
| OdIfc::OdIfcInstancePtr | createStyledItem (OdIfc::OdIfcInstancePtr item, OdIfc::OdIfcInstancePtr style) |
| OdIfc::OdIfcInstancePtr | createVector (OdIfc::OdIfcInstancePtr pDirection, double magnitude) |
Protected Member Functions | |
| void | initEntities () |
| OdIfcModelFiller (OdDAI::Model *model) | |
| void | appendSharedInstances () |
Friends | |
| class | OdIfcFile |
Base class that provides basic set of model entities creation operations.
Definition at line 39 of file IfcModelFiller.h.
Defines values for conversion factors between metric and imperial system units.
Definition at line 46 of file IfcModelFiller.h.
|
inlineprotected |
Definition at line 93 of file IfcModelFiller.h.
|
inlinevirtual |
Virtual destructor.
Definition at line 150 of file IfcModelFiller.h.
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelAggregates | ( | OdIfc::OdIfcInstancePtr | pRelating, |
| OdIfc::OdIfcInstancePtr | pRelated ) |
Appends new aggregate relationship for selected entities within a model.
| pRelating | [in] pointer to OdIfcInstance that represents existing related element that represents the aggregation. |
| pRelated | [in] pointer to OdIfcInstance that represents existing building items that is being aggregated. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelContainedInSpatialStructure | ( | OdIfc::OdIfcInstancePtr | pRelating, |
| OdIfc::OdIfcInstancePtr | pRelated ) |
Appends new IfcRelContainedInSpatialstructure relationship for selected entities within a model.
| pRelating | [in] pointer to OdIfcInstance that represents existing related element that represents the IfcSpatialStructureElement. |
| pRelated | [in] pointer to OdIfcInstance that represents existing IfcProduct. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelReferencedInSpatialStructure | ( | OdIfc::OdIfcInstancePtr | pRelating, |
| OdIfc::OdIfcInstancePtr | pRelated ) |
Appends new IfcRelReferencedInSpatialStructure relationship for selected entities within a model.
| pRelating | [in] pointer to OdIfcInstance that represents existing related element that represents the IfcSpatialStructureElement. |
| pRelated | [in] pointer to OdIfcInstance that represents existing IfcProduct. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelVoidsElement | ( | const OdDAIObjectId & | relatingBuildingElement, |
| const OdDAIObjectId & | relatedOpeningElement ) |
Creates an instance of IfcRelVoidsElement element based on relating building element and related opening element.
| relatingBuildingElement | [in] OdDAIObjectId db handle of existing building item. |
| relatedOpeningElement | [in] OdDAIObjectId db handle of existing opening element that is contained in the building element. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::appendGeometricRepresentationContext | ( | const OdAnsiString & | name, |
| const OdAnsiString & | type, | ||
| int | dim, | ||
| double | precision = OdDAI::Consts::OdNan, | ||
| OdDAIObjectId | idWCS = OdDAIObjectId(), | ||
| OdDAIObjectId | idTrueNorth = OdDAIObjectId() ) |
Appends selected geometric context via params to the active model contexts.
| name | [in] OdAnsiString name of context identifier ("2D"/"3D" etc). |
| type | [in] OdAnsiString of context type ("Plan"/"Model" etc). |
| dim | [in] dimension of coordinate space. |
| precision | [in] precision value. |
| idWCS | [in] OdDAIObjectId db handle of world coordinate system for current context. |
| idTrueNorth | [in] OdDAIObjectId db handle of north direction. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::appendGeometricRepresentationSubContext | ( | const OdAnsiString & | contextIdentifier, |
| const OdAnsiString & | contextType, | ||
| OdIfc::OdIfcInstancePtr | pParent, | ||
| OdAnsiString | targetView ) |
Appends selected geometric subcontext to the parent one.
| contextIdentifier | [in] OdAnsiString name of context identifier ("Axis"/"Body" etc). |
| contextType | [in] OdAnsiString of context type ("Plan"/"Model" etc). |
| pParent | [in] OdSmartPtr<OdIfcInstance> to existing parent context. |
| targetView | [in] OdAnsiString of target view name ("GRAPH_VIEW"/"MODEL_VIEW" etc). |
| bool OdIfcModelFiller::appendId | ( | OdIfc::OdIfcInstance * | pInst, |
| OdIfc::OdIfcAttribute | attr, | ||
| OdDAIObjectId | id ) |
Adds object id to the appropriate attribute of OdIfc::OdIfcInstance within a model.
| pInst | [in] pointer to OdIfcInstance. |
| attr | [in] OdIfcAttribute of entity. |
| id | [in] OdDAIObjectId value of appropriate attribute. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::appendRelAggregates | ( | OdIfc::OdIfcInstancePtr | pRelating, |
| OdIfc::OdIfcInstancePtr | pRelated ) |
Appends new related item to existing aggregate relationship within a model.
| pRelating | [in] pointer to OdIfcInstance that represents existing related element that represents the aggregation. |
| pRelated | [in] pointer to OdIfcInstance that represents existing building items that is being aggregated. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::appendRelDefinesByProperties | ( | OdIfc::OdIfcInstancePtr | pRelatingPropertyDefinition, |
| OdIfc::OdIfcInstancePtr | relatedObjectDefinition ) |
Appends a new related object to the existing IfcRelDefinesByProperties element or create new one if the last one doesn't exist.
| pRelatingPropertyDefinition | [in] OdIfcInstance pointer to the new appended property instance. |
| relatedObjectDefinition | [in] OdIfcInstance pointer to the IfcObjectDefinition. |
|
protected |
Appends shared (commonly used) geometrical entities as directions aling axis etc.
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement2D | ( | const OdDAIObjectId & | location, |
| const OdDAIObjectId & | refDirection ) |
Creates an instance of 2D IfcAxis2Placement within a model.
| location | [in] OdDAIObjectId db handle as initial position of IfcAxis2Placement3D. |
| refDirection | [in] OdDAIObjectId db handle as direction used to determine the direction of the local X Axis. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement2D | ( | const OdGeMatrix2d & | m | ) |
Creates an instance of 2D IfcAxis2Placement within a model.
| m | [in] OdGeMatrix2d as initial matriÑ… of IfcAxis2Placement3D. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement3D | ( | const OdDAIObjectId & | location, |
| const OdDAIObjectId & | axis, | ||
| const OdDAIObjectId & | refDirection ) |
Creates an instance of 3D IfcAxis2Placement within a model.
| location | [in] OdDAIObjectId db handle as initial position of IfcAxis2Placement3D. |
| axis | [in] OdDAIObjectId db handle as exact direction of the local Z Axis. |
| refDirection | [in] OdDAIObjectId db handle as direction used to determine the direction of the local X Axis. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement3D | ( | const OdGeMatrix3d & | m | ) |
Creates an instance of 3D IfcAxis2Placement within a model.
| m | [in] OdGeMatrix3d as initial matriÑ… of IfcAxis2Placement3D. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement3D | ( | const OdGePoint3d & | ptLocation, |
| const OdGeVector3d * | axis, | ||
| const OdGeVector3d * | refDirection ) |
Creates an instance of 3D IfcAxis2Placement within a model.
| ptLocation | [in] OdGePoint3d as initial position of IfcAxis2Placement3D. |
| axis | [in] OdGeVector3d as exact direction of the local Z Axis. |
| refDirection | [in] OdGeVector3d as direction used to determine the direction of the local X Axis. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCartesianPoint | ( | const OdGePoint2d & | p | ) |
Creates an instance of 2D IfcCartesianPoint within a model.
| p | [in] OdGePoint2d as position of IfcCartesianPoint. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCartesianPoint | ( | const OdGePoint3d & | p | ) |
Creates an instance of 3D IfcCartesianPoint within a model.
| p | [in] OdGePoint3d as position of IfcCartesianPoint. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCircle | ( | const OdGePoint2d & | center, |
| const OdGeVector2d & | refDirection, | ||
| double | radius ) |
Creates an instance of IfcCircle element based on appropriate attributes.
| center | [in] OdGePoint2d that determines location of center point. |
| refDirection | [in] OdGeVector2d that determines direction of circle plane. |
| radius | [in] circle radius value. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createClassification | ( | const OdAnsiString & | source, |
| const OdAnsiString & | edition, | ||
| const OdString & | name ) |
Creates an instance of IfcClassification.
| source | [in] OdAnsiString that contains source (or publisher) for this classification. |
| edition | [in] OdAnsiString that determines classification edition name. |
| name | [in] OdString that determines classification name. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createClassificationReference | ( | const OdString & | materialDefName, |
| const OdString & | location, | ||
| const OdAnsiString & | itemReference, | ||
| const OdDAIObjectId & | referencedSource ) |
Creates an instance of IfcClassificationReference.
| materialDefName | [in] OdString that contains material name. |
| location | [in] OdString that contains location, where the external source (classification, document or library) can be accessed by electronic means. |
| itemReference | [in] OdAnsiString that contains item reference name. |
| referencedSource | [in] OdDAIObjectId db handle of existing classification. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createColourRgb | ( | const double & | r, |
| const double & | g, | ||
| const double & | b ) |
Creates an instance of IfcColourRgb with normalized rgb values.
| r | [in] double that represents red colour component (0..1). |
| g | [in] double that represents green colour component (0..1). |
| b | [in] double that represents blue colour component (0..1). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createColourRgb | ( | const OdUInt8 & | red, |
| const OdUInt8 & | green, | ||
| const OdUInt8 & | blue ) |
Creates an instance of IfcColourRgb with not normalized rgb values.
| red | [in] OdUInt8 that represents red colour component (0..255). |
| green | [in] OdUInt8 that represents green colour component (0..255). |
| blue | [in] OdUInt8 that represents blue colour component (0..255). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCompositeCurve | ( | const OdDAIObjectIds & | segments, |
| bool | selfIntersect ) |
Creates an instance of IfcCompositeCurve element based on existing segments set.
| segments | [in] OdDAIObjectIds set of existing curve segments. |
| selfIntersect | [in] determine if curve has intersected segments. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCompositeCurveSegment | ( | const OdAnsiString & | transition, |
| bool | sameSense, | ||
| const OdDAIObjectId & | parentCurve ) |
Creates an instance of IfcCompositeCurveSegment element based on appropriate attributes.
| transition | [in] OdAnsiString of IfcTransitionCode value. |
| samesense | [in] indicator of whether or not the sense of the segment agrees with. |
| parentCurve | [in] OdDAIObjectId db handle of parent curve entity. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createConversionBasedUnit | ( | const OdAnsiString & | name, |
| const OdDAIObjectId & | conversionFactor, | ||
| const OdDAIObjectId & | dimensions, | ||
| const OdAnsiString & | unitType ) |
Creates an instance of IfcConversionBasedUnit within a model based on existing IfcMeasureWithUnit .
| name | [in] OdAnsiString that contains conversion based unit name. |
| conversionFactor | [in] OdDAIObjectId db handle of existing IfcMeasureWithUnit entity. |
| dimensions | [in] OdDAIObjectId db handle existing IfcDimensionalExponents. |
| unitType | [in] OdAnsiString that determines SI unit type name (PLANEANGLEUNIT). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCurveStyle | ( | const OdDAIObjectId & | curveColourId | ) |
Creates an instance of IfcCurveStyle element based on colour.
| curveColourId | [in] OdDAIObjectId db handle of curve colour. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createDirection | ( | const OdGeVector2d & | v | ) |
Creates an instance of 2D IfcDirection within a model.
| v | [in] OdGeVector2d as vector of IfcDirection. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createDirection | ( | const OdGeVector3d & | v | ) |
Creates an instance of 3D IfcDirection within a model.
| v | [in] OdGeVector3d as vector of IfcDirection. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createFromScratch | ( | const OdString & | organizationName, |
| const OdString & | applicationDeveloperName, | ||
| const OdString & | applicationDeveloperDescription, | ||
| const OdString & | applicationFullName, | ||
| const OdString & | applicationVersion, | ||
| const OdString & | applicationIdentifier ) |
details Fills an empty model by predefined set of entities.
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createIfcPropertySet | ( | const OdString & | name, |
| const OdDAIObjectIds & | props ) |
Creates an instance of IfcPropertySet element based on property items set.
| name | [in] OdString as property set name. |
| props | [in] OdDAIObjectIds set of IfcProperty. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createLocalPlacement | ( | OdIfc::OdIfcInstancePtr | placementRelTo, |
| OdIfc::OdIfcInstancePtr | relativePlacement ) |
Creates an instance of local placement with appropriate params within a model.
| placementRelTo | [in] pointer to OdIfcInstance that represents IfcObjectPlacement that provides the relative placement by its local coordinate system. |
| relativePlacement | [in] pointer to OdIfcInstance that represents existing IfcAxis2Placement entity. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createLocalPlacement3d | ( | const OdDAIObjectId & | placementRelTo, |
| const OdDAIObjectId & | relativePlacement ) |
Creates an instance of local placement with appropriate params within a model.
| placementRelTo | [in] OdDAIObjectId db handle that represents IfcObjectPlacement that provides the relative placement by its local coordinate system. |
| relativePlacement | [in] OdDAIObjectId db handle that represents existing IfcAxis2Placement entity. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createLocalPlacement3d | ( | const OdDAIObjectId & | placementRelTo, |
| const OdGePoint3d & | ptLocation, | ||
| const OdGeVector3d & | axis, | ||
| const OdGeVector3d & | refDirection ) |
Creates an instance of local placement with appropriate params within a model.
| placementRelTo | [in] OdDAIObjectId db handle that represents IfcObjectPlacement that provides the relative placement by its local coordinate system. |
| ptLocation | [in] OdGePoint3d point of relative placement. |
| axis | [in] OdGeVector3d axis of the local Z Axis. |
| refDirection | [in] OdGeVector3d the direction of the local X Axis. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createMappedItem | ( | const OdDAIObjectId & | MappingSource, |
| const OdDAIObjectId & | MappingTarget ) |
Creates an instance of IfcMappedItem based on mapping source and target respectively.
| MappingSource | [in] OdDAIObjectId db handle of representation to be mapped. |
| MappingTarget | [in] OdDAIObjectId db handle of transformation operator. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createMeasureWithUnit | ( | double | measureValue, |
| const OdDAIObjectId & | unit, | ||
| const OdAnsiString & | typeName ) |
Creates an instance of IfcMeasureWithUnit within a model based on conversion value.
| measureValue | [in] conversion value. |
| dimensions | [in] OdDAIObjectId db handle existing IfcSiUnit. |
| unitType | [in] OdAnsiString that determines IFC unit type name (IfcVolumeMeasure). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createOpening | ( | const OdString & | name, |
| const OdDAIObjectId & | objectPlacement, | ||
| const OdDAIObjectId & | representation, | ||
| const OdAnsiString & | predefinedType = OdAnsiString() ) |
Creates an instance of IfcOpeningElement based on placement, representation and type.
| name | [in] OdString that describes entity name. |
| objectPlacement | [in] OdDAIObjectId db handle of existing entity placement. |
| representation | [in] OdDAIObjectId db handle of existing entity shape representation. |
| predefinedType | [in] OdAnsiString name of predefined type ("Opening"/"Recess" or empty). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPlane | ( | const OdDAIObjectId & | position | ) |
Creates an instance of IfcPlane element based on position.
| position | [in] OdDAIObjectId db handle of plane position. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPlane | ( | const OdGePlane & | plane | ) |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPointByDistanceExpression | ( | double | distanceAlong, |
| const OdDAIObjectId & | basisCurve, | ||
| double | offsetLateral = 0., | ||
| double | offsetVertical = 0., | ||
| double | offsetLongitudinal = 0., | ||
| const OdAnsiString & | distanceAlongType = "ifclengthmeasure" ) |
Creates an instance of 3D IfcPointByDistanceExpression within a model.
| distanceAlong | [in] OdGePoint3d as distance on basisCurve. |
| basisCurve | [in] OdDAIObjectId db handle of existing curve entity. |
| offsetLateral | [in] Default offset horizontally is measured perpendicular to the basis curve, where positive values indicate to the left of the basis curve as facing in the positive parametrization direction of the basis curve, and negative values indicate to the right. |
| offsetVertical | [in] Default offset vertical to the basis curve where positive values indicate perpendicular to the tangent at DistanceAlong in the plane of the tangent perpendicular to the global XY plane. |
| offsetLongitudinal | [in] Offset parallel to the basis curve after applying DistanceAlong, OffsetLateral, and OffsetVertical to reach locations for the case of a tangentially discontinuous basis curve. |
| distanceAlongType | [in] Type of distanceAlong select object. Should be equal ifclengthmeasure or ifcparametervalue. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPolyline | ( | const OdDAIObjectIds & | points | ) |
Creates an instance of IfcPolyline element based on points set.
| points | [in] OdDAIObjectIds set of existing points. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createProductDefinitionShape | ( | const OdDAIObjectIds & | representations | ) |
Creates an instance of IfcProductDefinitionShape within a model based on geometrical representation items.
| representations | [in] OdDAIObjectIds set of entities that describe shape representation. |
| IfcQuantitySetFillerPtr OdIfcModelFiller::createQuantitySet | ( | OdIfc::OdIfcInstancePtr | objectDefinition | ) |
Creates an instance of IfcQuantitySetFiller by its relating owner.
| objectDefinition | [in] OdIfcInstance pointer to the IfcObjectDefinition item, which properties should be created with IfcRelDefinesByProperties. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelAggregates | ( | const OdString & | name, |
| const OdDAIObjectId & | relatingObject, | ||
| const OdDAIObjectIds & | relatedObjects ) |
Appends new IfcRelAggregates relationship for selected set of related objects within a model.
| name | [in] OdString that contains relation name. |
| relatingObject | [in] OdDAIObjectId db handle element that represents the aggregation. |
| relatedObjects | [in] OdDAIObjectIds set of existing IfcProduct that are being aggregated. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelContainedInSpatialStructure | ( | const OdDAIObjectIds & | relatedElements, |
| const OdDAIObjectId & | relStructure ) |
Appends new IfcRelContainedInSpatialstructure relationship for selected set of related elements within a model.
| relatedElements | [in] OdDAIObjectIds set of existing IfcProduct. |
| relStructure | [in] OdDAIObjectId db handle that represents existing related element that represents the IfcSpatialStructureElement. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelDefinesByProperties | ( | const OdDAIObjectIds & | relatedObjects, |
| OdDAIObjectId & | relatingPropDef ) |
Creates an instance of IfcRelDefinesByProperties element based on related objects set and property set item.
| relatedObjects | [in] OdDAIObjectIds set of IfcObjects. |
| relatingPropDef | [in] OdDAIObjectId db handle of IfcPropertySetDefinition. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelDefinesByType | ( | const OdDAIObjectIds & | relatedOjects, |
| const OdDAIObjectId & | relTypeId ) |
Creates an instance of IfcRelDefinesByType element based on related objects set and Ifc entity type item.
| relatedObjects | [in] OdDAIObjectIds set of IfcObjects. |
| relTypeId | [in] OdDAIObjectId db handle of IfcTypeObject. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelFillsElement | ( | const OdDAIObjectId & | relatingOpeningElement, |
| const OdDAIObjectId & | relatedBuildingElement ) |
Creates an instance of IfcRelFillsElement element based on relating opening element and related building element.
| relatingOpeningElement | [in] OdDAIObjectId db handle of existing opening item. |
| relatedBuildingElement | [in] OdDAIObjectId db handle of existing building element that contains opening item. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelReferencedInSpatialStructure | ( | const OdDAIObjectIds & | relatedElements, |
| const OdDAIObjectId & | relStructure ) |
Appends new IfcRelReferencedInSpatialStructure relationship for selected set of related elements within a model.
| relatedElements | [in] OdDAIObjectIds set of existing IfcProduct. |
| relStructure | [in] OdDAIObjectId db handle that represents existing related element that represents the IfcSpatialStructureElement. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRepresentationMap | ( | const OdDAIObjectId & | MappingOrigin, |
| const OdDAIObjectId & | MappedRepresentation ) |
Creates an instance of IfcrRepresentationMap within a model based on mapping origin and representation itself.
| MappingOrigin | [in] OdDAIObjectId db handle of mapping origin location. |
| MappedRepresentation | [in] OdDAIObjectId db handle of representation. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createShapeRepresentation | ( | const OdDAIObjectId & | contextOfItems, |
| const OdAnsiString & | representationIdentifier, | ||
| const OdAnsiString & | representationType, | ||
| const OdDAIObjectIds & | items ) |
Creates an instance of IfcShapeRepresentation within a model based on context and geometrical representation items.
| contextOfItems | [in] OdDAIObjectId db handle of existing geometric representation context. |
| representationIdentifier | [in] OdAnsiString name of representation identifier ("Axis"/"Body" etc). |
| representationType | [in] OdAnsiString name of representation type ("Brep"/"SweptSolid" etc). |
| items | [in] OdDAIObjectIds set of entities that describe entity geometry. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSite | ( | const OdAnsiString & | name = "Default site" | ) |
Creates an instance of IfcSite element within a model.
| name | [in] OdAnsiString as site name. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSiUnit | ( | const char * | unitType, |
| const char * | prefix, | ||
| const char * | name, | ||
| bool | append = false ) |
Creates an instance of IfcSiUnit within a model.
| unitType | [in] name of type for allowed SI unit types (LENGTHUNIT). |
| prefix | [in] name of a SI prefix that may be associated with an SI unit (DECI). |
| name | [in] OdString that determines classification name (SQUARE_METRE). |
| append | [in] the name of the SI unit. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSlab | ( | const OdString & | name, |
| const OdDAIObjectId & | objectPlacement, | ||
| const OdDAIObjectId & | representation, | ||
| const OdAnsiString & | predefinedType ) |
Creates an instance of IfcSlab building element based on placement, representation and type.
| name | [in] OdString that describes entity name. |
| objectPlacement | [in] OdDAIObjectId db handle of existing entity placement. |
| representation | [in] OdDAIObjectId db handle of existing entity shape representation. |
| predefinedType | [in] OdAnsiString name of predefined type ("Floor"/"Roof" etc). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createStyledItem | ( | OdIfc::OdIfcInstancePtr | item, |
| OdIfc::OdIfcInstancePtr | style ) |
Creates an instance of IfcStyledItem.
| item | [in] OdIfcInstance pointer to the representation item to which the style is assigned.. |
| style | [in] OdIfcInstance pointer to the representation style which is assigned,. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSurfaceStyle | ( | const OdAnsiString & | name, |
| const OdCmEntityColor & | color ) |
Creates an instance of IfcSurfaceStyle and appropriate IfcSurfaceStyleRendering.
| name | [in] OdAnsiString style name. |
| color | [in] OdCmEntityColor color parameter. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createTrimmedCurve | ( | const OdDAIObjectId & | basisCurve, |
| const OdDAIObjectId & | trim1, | ||
| const OdDAIObjectId & | trim2, | ||
| bool | bSenseAgreement ) |
Creates an instance of IfcTrimmedCurve entity.
| basisCurve | [in] OdDAIObjectId db handle of existing curve entity. |
| trim1 | [in] OdDAIObjectId db handle of the first trimming point. |
| trim2 | [in] OdDAIObjectId db handle of the second trimming point. |
| bSenseAgreement | [in] indicate whether the direction of the trimmed curve agrees with or is opposed to the direction of the basis curve. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createTrimmedCurve | ( | const OdDAIObjectId & | basisCurve, |
| double | param1, | ||
| double | param2, | ||
| bool | bSenseAgreement ) |
Creates an instance of IfcTrimmedCurve entity.
| basisCurve | [in] OdDAIObjectId db handle of existing curve entity. |
| param1 | [in] the first trimming point which may be specified as a Cartesian point. |
| param2 | [in] the second trimming point which may be specified as a Cartesian point. |
| bSenseAgreement | [in] indicate whether the direction of the trimmed curve agrees with or is opposed to the direction of the basis curve. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createUnitAssignment | ( | const OdArray< OdDAIObjectId > & | unitsCollection | ) |
Creates an instance of IfcUnitAssignment within a model based on existing units collection.
| unitsCollection | [in] OdDAIObjectIds set of existing units. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createVector | ( | OdIfc::OdIfcInstancePtr | pDirection, |
| double | magnitude ) |
Creates an instance of IfcVector.
| pDirection | [in] OdIfcInstance pointer to the direction of the vector. |
| magnitude | [in] Magnitude value of the vector. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createWall | ( | const OdString & | name, |
| const OdDAIObjectId & | objectPlacement, | ||
| const OdDAIObjectId & | representation ) |
Creates an instance of IfcWall building element based on placement and representation.
| name | [in] OdString that describes entity name. |
| objectPlacement | [in] OdDAIObjectId db handle of existing entity placement. |
| representation | [in] OdDAIObjectId db handle of existing entity shape representation. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::createWallStandardCase | ( | const OdString & | name, |
| const OdDAIObjectId & | objectPlacement, | ||
| const OdDAIObjectId & | representation ) |
Creates an instance of IfcWallStandardCase building element based on placement and representation.
| name | [in] OdString that describes entity name. |
| objectPlacement | [in] OdDAIObjectId db handle of existing entity placement. |
| representation | [in] OdDAIObjectId db handle of existing entity shape representation. |
|
inline |
details Retrieves direction of a local x-axis.
Definition at line 179 of file IfcModelFiller.h.
|
inline |
details Retrieves direction of a local x-axis used in 2D placement.
Definition at line 204 of file IfcModelFiller.h.
|
inline |
details Retrieves direction of a local y-axis.
Definition at line 185 of file IfcModelFiller.h.
|
inline |
details Retrieves direction of a local y-axis used in 2D placement.
Definition at line 210 of file IfcModelFiller.h.
|
inline |
details Retrieves direction of a local z-axis.
Definition at line 191 of file IfcModelFiller.h.
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::findSurfaceStyle | ( | const OdAnsiString & | name | ) |
Finds an instance of IfcSurfaceStyle by its name.
| name | [in] OdAnsiString style name. |
|
inline |
Returns conversion value between imperial and metric units.
| unit | [in] UnitsConversion value. |
Definition at line 755 of file IfcModelFiller.h.
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::getGeometricRepresentationContext | ( | const OdAnsiString & | type | ) |
Returns active model geometric context by its type name.
| type | [in] OdAnsiString name of context identifier ("Axis"/"Body" etc). |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::getGeometricRepresentationSubContext | ( | const OdAnsiString & | contextIdentifier, |
| const OdAnsiString & | contextType ) |
Returns active model geometric subcontext by its type name and context identifier.
| contextIdentifier | [in] OdAnsiString name of context identifier ("Axis"/"Body" etc). |
| contextType | [in] OdAnsiString of context type ("Plan"/"Model" etc). |
|
inline |
details Retrieves object definition associated with this instance.
Definition at line 254 of file IfcModelFiller.h.
|
inline |
details Retrieves property set associated with this instance.
Definition at line 260 of file IfcModelFiller.h.
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::getRelAggregates | ( | OdIfc::OdIfcInstancePtr | pRelating | ) |
Returns existing aggregate relationship for relating item within a model.
| pRelating | [in] pointer to OdIfcInstance that represents existing element that describes the aggregation. |
| OdIfc::OdIfcInstancePtr OdIfcModelFiller::getRelDefinesByProperties | ( | OdIfc::OdIfcInstancePtr | pRelatingPropertyDefinition | ) |
Returns existing IfcRelDefinesByProperties relationship for relating property definition within a model.
| pRelatingPropertyDefinition | [in] pointer to OdIfcInstance that represents existing element that describes the property item. |
|
inline |
Definition at line 198 of file IfcModelFiller.h.
|
inline |
Definition at line 217 of file IfcModelFiller.h.
| IfcPropertySetFillerPtr OdIfcModelFiller::initDetachedPropertySet | ( | ) |
Creates an instance of IfcPropertySetFiller that doesn't belong to the IfcObjectDefinition, i.e. without creation appropriate IfcRelDefinesByProperties.
|
protected |
| IfcPropertySetFillerPtr OdIfcModelFiller::initPropertySet | ( | OdIfc::OdIfcInstancePtr | objectDefinition | ) |
Creates an instance of IfcPropertySetFiller by its relating product.
| objectDefinition | [in] OdIfcInstance pointer to the IfcObjectDefinition item, which properties should be created with IfcRelDefinesByProperties. |
|
inline |
Retrieves working IFC model.
Definition at line 156 of file IfcModelFiller.h.
|
inline |
details Retrieves origin point of 3D placement.
Definition at line 197 of file IfcModelFiller.h.
|
inline |
details Retrieves origin point of 2D placement.
Definition at line 216 of file IfcModelFiller.h.
|
inline |
details Retrieves owner history associated with this instance.
Definition at line 229 of file IfcModelFiller.h.
|
inline |
details Retrieves person associated with this instance.
Definition at line 223 of file IfcModelFiller.h.
|
inline |
details Retrieves project associated with this instance.
Definition at line 241 of file IfcModelFiller.h.
| bool OdIfcModelFiller::putAttrs | ( | OdIfc::OdIfcInstancePtr & | inst, |
| std::map< OdAnsiString, OdRxValue > & | attrs ) |
Sets attributes collection for current entity in the model.
| attrs | [in] std::map collection of custom entity attributes with values. |
|
inline |
Sets IfcOwnerHistory attribute value for the entity in the model.
| history | [in] OdSmartPtr<OdIfcInstance> to existing instance. |
Definition at line 273 of file IfcModelFiller.h.
|
inline |
Sets IfcProject value for the entities in the model.
| project | [in] OdSmartPtr<OdIfcInstance> to existing instance. |
Definition at line 279 of file IfcModelFiller.h.
| void OdIfcModelFiller::setUnitAssignment | ( | OdIfc::OdIfcInstancePtr | unitsAssignment = OdIfc::OdIfcInstancePtr() | ) |
Sets units assignment attribute for project entity in the model.
| unitsAssignment | [in] pointer to OdIfcInstance that represents existing IfcUnitAssignment. |
|
inline |
details Retrieves site associated with this instance.
Definition at line 247 of file IfcModelFiller.h.
|
inline |
details Retrieves unit assignment associated with this instance.
Definition at line 235 of file IfcModelFiller.h.
|
friend |
Definition at line 847 of file IfcModelFiller.h.
|
protected |
Definition at line 86 of file IfcModelFiller.h.
|
protected |
Definition at line 138 of file IfcModelFiller.h.
|
protected |
Definition at line 111 of file IfcModelFiller.h.
|
protected |
Definition at line 117 of file IfcModelFiller.h.
|
protected |
Definition at line 112 of file IfcModelFiller.h.
|
protected |
Definition at line 118 of file IfcModelFiller.h.
|
protected |
Definition at line 113 of file IfcModelFiller.h.
|
protected |
Definition at line 127 of file IfcModelFiller.h.
|
protected |
Definition at line 128 of file IfcModelFiller.h.
|
protected |
Definition at line 115 of file IfcModelFiller.h.
|
protected |
Definition at line 120 of file IfcModelFiller.h.
|
protected |
Definition at line 136 of file IfcModelFiller.h.
|
protected |
Definition at line 91 of file IfcModelFiller.h.
|
protected |
Definition at line 133 of file IfcModelFiller.h.
|
protected |
Definition at line 103 of file IfcModelFiller.h.
|
protected |
Definition at line 102 of file IfcModelFiller.h.
|
protected |
Definition at line 114 of file IfcModelFiller.h.
|
protected |
Definition at line 119 of file IfcModelFiller.h.
|
protected |
Definition at line 105 of file IfcModelFiller.h.
|
protected |
Definition at line 134 of file IfcModelFiller.h.
|
protected |
Definition at line 124 of file IfcModelFiller.h.
|
protected |
Definition at line 125 of file IfcModelFiller.h.
|
protected |
Definition at line 129 of file IfcModelFiller.h.
|
protected |
Definition at line 126 of file IfcModelFiller.h.
|
protected |
Definition at line 106 of file IfcModelFiller.h.
|
protected |
Definition at line 131 of file IfcModelFiller.h.
|
protected |
Definition at line 104 of file IfcModelFiller.h.
|
protected |
Definition at line 122 of file IfcModelFiller.h.