CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfcModelFiller Class Reference

#include <IfcModelFiller.h>

Inheritance diagram for OdIfcModelFiller:
IfcModelGeometryFiller IfcModelMaterialFiller IfcModelOpsFiller IfcModelStyleFiller

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 &center, 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 ()
 

Protected Attributes

EntityDefinitions Entity
 
OdIfcModelPtr m_model
 
OdIfc::OdIfcInstancePtr m_person
 
OdIfc::OdIfcInstancePtr m_ownerHistory
 
OdIfc::OdIfcInstancePtr m_unitAssignment
 
OdIfc::OdIfcInstancePtr m_project
 
OdIfc::OdIfcInstancePtr m_site
 
OdDAIObjectId m_dirX
 
OdDAIObjectId m_dirY
 
OdDAIObjectId m_dirZ
 
OdDAIObjectId m_posOrigin
 
OdDAIObjectId m_identity
 
OdDAIObjectId m_dirX2D
 
OdDAIObjectId m_dirY2D
 
OdDAIObjectId m_posOrigin2D
 
OdDAIObjectId m_identity2D
 
OdDAIObjectIds unitsCollection
 
std::map< OdIfc::OdIfcInstance *, OdIfc::OdIfcInstance * > m_relAggregates
 
std::map< OdIfc::OdIfcInstance *, OdIfc::OdIfcInstance * > m_relContainedInSpatialStructure
 
std::map< OdIfc::OdIfcInstance *, OdIfc::OdIfcInstance * > m_relReferencedInSpatialStructure
 
std::map< OdAnsiString, OdIfc::OdIfcInstance * > m_geometricRepresentationContext
 
std::map< OdAnsiString, std::map< OdAnsiString, OdIfc::OdIfcInstance * > > m_geometricRepresentationSubContext
 
std::map< OdIfc::OdIfcInstance *, OdIfc::OdIfcInstance * > m_relDefinesByProperties
 
std::map< OdAnsiString, OdIfc::OdIfcInstance * > m_surfaceStyles
 
OdIfc::OdIfcInstancePtr m_objectDefinition
 
OdIfc::OdIfcInstancePtr m_propertySet
 
OdDAIObjectIds m_idProperties
 
std::map< UnitsConversion, double > m_conversionFactors
 

Friends

class OdIfcFile
 

Detailed Description

Base class that provides basic set of model entities creation operations.

Definition at line 39 of file IfcModelFiller.h.

Member Enumeration Documentation

◆ UnitsConversion

Defines values for conversion factors between metric and imperial system units.

Enumerator
IfcLengthUnit_Inch_To_Meters 

Conversion from inches to meters.

IfcLengthUnit_Foot_To_Meters 

Conversion from feet to meters.

IfcAreaUnit_SquareInch_To_SquareMeters 

Conversion from inches to square meters.

IfcAreaUnit_SquareFoot_To_SquareMeters 

Conversion from square feet to square meters.

IfcVolumeUnit_CubicInch_To_CubicMeters 

Conversion from cubic inches to cubic meters.

IfcVolumeUnit_CubicFoot_To_CubicMeters 

Conversion from feet to cubic meters.

IfcPlaneAngleUnit_Angle_To_Radians 

Conversion from angle to radians.

Definition at line 46 of file IfcModelFiller.h.

Constructor & Destructor Documentation

◆ OdIfcModelFiller()

OdIfcModelFiller::OdIfcModelFiller ( OdDAI::Model * model)
inlineprotected

Definition at line 93 of file IfcModelFiller.h.

◆ ~OdIfcModelFiller()

virtual OdIfcModelFiller::~OdIfcModelFiller ( )
inlinevirtual

Virtual destructor.

Definition at line 150 of file IfcModelFiller.h.

Member Function Documentation

◆ addRelAggregates()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelAggregates ( OdIfc::OdIfcInstancePtr pRelating,
OdIfc::OdIfcInstancePtr pRelated )

Appends new aggregate relationship for selected entities within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ addRelContainedInSpatialStructure()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelContainedInSpatialStructure ( OdIfc::OdIfcInstancePtr pRelating,
OdIfc::OdIfcInstancePtr pRelated )

Appends new IfcRelContainedInSpatialstructure relationship for selected entities within a model.

Parameters
pRelating[in] pointer to OdIfcInstance that represents existing related element that represents the IfcSpatialStructureElement.
pRelated[in] pointer to OdIfcInstance that represents existing IfcProduct.
Returns
A pointer to the created and appended to the model entity.

◆ addRelReferencedInSpatialStructure()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::addRelReferencedInSpatialStructure ( OdIfc::OdIfcInstancePtr pRelating,
OdIfc::OdIfcInstancePtr pRelated )

Appends new IfcRelReferencedInSpatialStructure relationship for selected entities within a model.

Parameters
pRelating[in] pointer to OdIfcInstance that represents existing related element that represents the IfcSpatialStructureElement.
pRelated[in] pointer to OdIfcInstance that represents existing IfcProduct.
Returns
A pointer to the created and appended to the model entity.

◆ addRelVoidsElement()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ appendGeometricRepresentationContext()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ appendGeometricRepresentationSubContext()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::appendGeometricRepresentationSubContext ( const OdAnsiString & contextIdentifier,
const OdAnsiString & contextType,
OdIfc::OdIfcInstancePtr pParent,
OdAnsiString targetView )

Appends selected geometric subcontext to the parent one.

Parameters
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).
Returns
A pointer to the created and appended to the model entity.

◆ appendId()

bool OdIfcModelFiller::appendId ( OdIfc::OdIfcInstance * pInst,
OdIfc::OdIfcAttribute attr,
OdDAIObjectId id )

Adds object id to the appropriate attribute of OdIfc::OdIfcInstance within a model.

Parameters
pInst[in] pointer to OdIfcInstance.
attr[in] OdIfcAttribute of entity.
id[in] OdDAIObjectId value of appropriate attribute.
Returns
true in case of success, false otherwise.

◆ appendRelAggregates()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::appendRelAggregates ( OdIfc::OdIfcInstancePtr pRelating,
OdIfc::OdIfcInstancePtr pRelated )

Appends new related item to existing aggregate relationship within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ appendRelDefinesByProperties()

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.

Parameters
pRelatingPropertyDefinition[in] OdIfcInstance pointer to the new appended property instance.
relatedObjectDefinition[in] OdIfcInstance pointer to the IfcObjectDefinition.
Returns
A pointer to the created and appended to the model entity.

◆ appendSharedInstances()

void OdIfcModelFiller::appendSharedInstances ( )
protected

Appends shared (commonly used) geometrical entities as directions aling axis etc.

◆ createAxis2Placement2D() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement2D ( const OdDAIObjectId & location,
const OdDAIObjectId & refDirection )

Creates an instance of 2D IfcAxis2Placement within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createAxis2Placement2D() [2/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement2D ( const OdGeMatrix2d & m)

Creates an instance of 2D IfcAxis2Placement within a model.

Parameters
m[in] OdGeMatrix2d as initial matriÑ… of IfcAxis2Placement3D.
Returns
A pointer to the created and appended to the model entity.

◆ createAxis2Placement3D() [1/3]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement3D ( const OdDAIObjectId & location,
const OdDAIObjectId & axis,
const OdDAIObjectId & refDirection )

Creates an instance of 3D IfcAxis2Placement within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createAxis2Placement3D() [2/3]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement3D ( const OdGeMatrix3d & m)

Creates an instance of 3D IfcAxis2Placement within a model.

Parameters
m[in] OdGeMatrix3d as initial matriÑ… of IfcAxis2Placement3D.
Returns
A pointer to the created and appended to the model entity.

◆ createAxis2Placement3D() [3/3]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createAxis2Placement3D ( const OdGePoint3d & ptLocation,
const OdGeVector3d * axis,
const OdGeVector3d * refDirection )

Creates an instance of 3D IfcAxis2Placement within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createCartesianPoint() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCartesianPoint ( const OdGePoint2d & p)

Creates an instance of 2D IfcCartesianPoint within a model.

Parameters
p[in] OdGePoint2d as position of IfcCartesianPoint.
Returns
A pointer to the created and appended to the model entity.

◆ createCartesianPoint() [2/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCartesianPoint ( const OdGePoint3d & p)

Creates an instance of 3D IfcCartesianPoint within a model.

Parameters
p[in] OdGePoint3d as position of IfcCartesianPoint.
Returns
A pointer to the created and appended to the model entity.

◆ createCircle()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCircle ( const OdGePoint2d & center,
const OdGeVector2d & refDirection,
double radius )

Creates an instance of IfcCircle element based on appropriate attributes.

Parameters
center[in] OdGePoint2d that determines location of center point.
refDirection[in] OdGeVector2d that determines direction of circle plane.
radius[in] circle radius value.
Returns
A pointer to the created and appended to the model entity.

◆ createClassification()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createClassification ( const OdAnsiString & source,
const OdAnsiString & edition,
const OdString & name )

Creates an instance of IfcClassification.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createClassificationReference()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createClassificationReference ( const OdString & materialDefName,
const OdString & location,
const OdAnsiString & itemReference,
const OdDAIObjectId & referencedSource )

Creates an instance of IfcClassificationReference.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createColourRgb() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createColourRgb ( const double & r,
const double & g,
const double & b )

Creates an instance of IfcColourRgb with normalized rgb values.

Parameters
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).
Returns
A pointer to the created and appended to the model entity.

◆ createColourRgb() [2/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createColourRgb ( const OdUInt8 & red,
const OdUInt8 & green,
const OdUInt8 & blue )

Creates an instance of IfcColourRgb with not normalized rgb values.

Parameters
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).
Returns
A pointer to the created and appended to the model entity.

◆ createCompositeCurve()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCompositeCurve ( const OdDAIObjectIds & segments,
bool selfIntersect )

Creates an instance of IfcCompositeCurve element based on existing segments set.

Parameters
segments[in] OdDAIObjectIds set of existing curve segments.
selfIntersect[in] determine if curve has intersected segments.
Returns
A pointer to the created and appended to the model entity.

◆ createCompositeCurveSegment()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCompositeCurveSegment ( const OdAnsiString & transition,
bool sameSense,
const OdDAIObjectId & parentCurve )

Creates an instance of IfcCompositeCurveSegment element based on appropriate attributes.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createConversionBasedUnit()

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 .

Parameters
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).
Returns
A pointer to the created and appended to the model entity.

◆ createCurveStyle()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createCurveStyle ( const OdDAIObjectId & curveColourId)

Creates an instance of IfcCurveStyle element based on colour.

Parameters
curveColourId[in] OdDAIObjectId db handle of curve colour.
Returns
A pointer to the created and appended to the model entity.

◆ createDirection() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createDirection ( const OdGeVector2d & v)

Creates an instance of 2D IfcDirection within a model.

Parameters
v[in] OdGeVector2d as vector of IfcDirection.
Returns
A pointer to the created and appended to the model entity.

◆ createDirection() [2/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createDirection ( const OdGeVector3d & v)

Creates an instance of 3D IfcDirection within a model.

Parameters
v[in] OdGeVector3d as vector of IfcDirection.
Returns
A pointer to the created and appended to the model entity.

◆ createFromScratch()

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.

Returns
Returns a smart pointer to instantiated IfcProject.

◆ createIfcPropertySet()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createIfcPropertySet ( const OdString & name,
const OdDAIObjectIds & props )

Creates an instance of IfcPropertySet element based on property items set.

Parameters
name[in] OdString as property set name.
props[in] OdDAIObjectIds set of IfcProperty.
Returns
A pointer to the created and appended to the model entity.

◆ createLocalPlacement()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createLocalPlacement ( OdIfc::OdIfcInstancePtr placementRelTo,
OdIfc::OdIfcInstancePtr relativePlacement )

Creates an instance of local placement with appropriate params within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createLocalPlacement3d() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createLocalPlacement3d ( const OdDAIObjectId & placementRelTo,
const OdDAIObjectId & relativePlacement )

Creates an instance of local placement with appropriate params within a model.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createLocalPlacement3d() [2/2]

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createMappedItem()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createMappedItem ( const OdDAIObjectId & MappingSource,
const OdDAIObjectId & MappingTarget )

Creates an instance of IfcMappedItem based on mapping source and target respectively.

Parameters
MappingSource[in] OdDAIObjectId db handle of representation to be mapped.
MappingTarget[in] OdDAIObjectId db handle of transformation operator.
Returns
A pointer to the created and appended to the model entity.

◆ createMeasureWithUnit()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createMeasureWithUnit ( double measureValue,
const OdDAIObjectId & unit,
const OdAnsiString & typeName )

Creates an instance of IfcMeasureWithUnit within a model based on conversion value.

Parameters
measureValue[in] conversion value.
dimensions[in] OdDAIObjectId db handle existing IfcSiUnit.
unitType[in] OdAnsiString that determines IFC unit type name (IfcVolumeMeasure).
Returns
A pointer to the created and appended to the model entity.

◆ createOpening()

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.

Parameters
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).
Returns
A pointer to the created and appended to the model entity.

◆ createPlane() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPlane ( const OdDAIObjectId & position)

Creates an instance of IfcPlane element based on position.

Parameters
position[in] OdDAIObjectId db handle of plane position.
Returns
A pointer to the created and appended to the model entity.

◆ createPlane() [2/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPlane ( const OdGePlane & plane)

Creates an instance of IfcPlane element based on existing OdGePlane item.

Parameters
plane[in] OdGePlane plane representation in space.
Returns
A pointer to the created and appended to the model entity.

◆ createPointByDistanceExpression()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createPolyline()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createPolyline ( const OdDAIObjectIds & points)

Creates an instance of IfcPolyline element based on points set.

Parameters
points[in] OdDAIObjectIds set of existing points.
Returns
A pointer to the created and appended to the model entity.

◆ createProductDefinitionShape()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createProductDefinitionShape ( const OdDAIObjectIds & representations)

Creates an instance of IfcProductDefinitionShape within a model based on geometrical representation items.

Parameters
representations[in] OdDAIObjectIds set of entities that describe shape representation.
Returns
A pointer to the created and appended to the model entity.

◆ createQuantitySet()

IfcQuantitySetFillerPtr OdIfcModelFiller::createQuantitySet ( OdIfc::OdIfcInstancePtr objectDefinition)

Creates an instance of IfcQuantitySetFiller by its relating owner.

Parameters
objectDefinition[in] OdIfcInstance pointer to the IfcObjectDefinition item, which properties should be created with IfcRelDefinesByProperties.
Returns
A pointer to the created IfcQuantitySetFiller, that should be used with IfcQuantitySetFiller::createRelDefinesQuantitySet, if success or empty IfcPropertySetFillerPtr() otherwise.

◆ createRelAggregates()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createRelContainedInSpatialStructure()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelContainedInSpatialStructure ( const OdDAIObjectIds & relatedElements,
const OdDAIObjectId & relStructure )

Appends new IfcRelContainedInSpatialstructure relationship for selected set of related elements within a model.

Parameters
relatedElements[in] OdDAIObjectIds set of existing IfcProduct.
relStructure[in] OdDAIObjectId db handle that represents existing related element that represents the IfcSpatialStructureElement.
Returns
A pointer to the created and appended to the model entity.

◆ createRelDefinesByProperties()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelDefinesByProperties ( const OdDAIObjectIds & relatedObjects,
OdDAIObjectId & relatingPropDef )

Creates an instance of IfcRelDefinesByProperties element based on related objects set and property set item.

Parameters
relatedObjects[in] OdDAIObjectIds set of IfcObjects.
relatingPropDef[in] OdDAIObjectId db handle of IfcPropertySetDefinition.
Returns
A pointer to the created and appended to the model entity.

◆ createRelDefinesByType()

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.

Parameters
relatedObjects[in] OdDAIObjectIds set of IfcObjects.
relTypeId[in] OdDAIObjectId db handle of IfcTypeObject.
Returns
A pointer to the created and appended to the model entity.

◆ createRelFillsElement()

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.

Parameters
relatingOpeningElement[in] OdDAIObjectId db handle of existing opening item.
relatedBuildingElement[in] OdDAIObjectId db handle of existing building element that contains opening item.
Returns
A pointer to the created and appended to the model entity.

◆ createRelReferencedInSpatialStructure()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createRelReferencedInSpatialStructure ( const OdDAIObjectIds & relatedElements,
const OdDAIObjectId & relStructure )

Appends new IfcRelReferencedInSpatialStructure relationship for selected set of related elements within a model.

Parameters
relatedElements[in] OdDAIObjectIds set of existing IfcProduct.
relStructure[in] OdDAIObjectId db handle that represents existing related element that represents the IfcSpatialStructureElement.
Returns
A pointer to the created and appended to the model entity.

◆ createRepresentationMap()

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.

Parameters
MappingOrigin[in] OdDAIObjectId db handle of mapping origin location.
MappedRepresentation[in] OdDAIObjectId db handle of representation.
Returns
A pointer to the created and appended to the model entity.

◆ createShapeRepresentation()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createSite()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSite ( const OdAnsiString & name = "Default site")

Creates an instance of IfcSite element within a model.

Parameters
name[in] OdAnsiString as site name.
Returns
A pointer to the created and appended to the model entity.

◆ createSiUnit()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSiUnit ( const char * unitType,
const char * prefix,
const char * name,
bool append = false )

Creates an instance of IfcSiUnit within a model.

Parameters
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.
Returns
A pointer to the created / appended to the model entity.

◆ createSlab()

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.

Parameters
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).
Returns
A pointer to the created and appended to the model entity.

◆ createStyledItem()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createStyledItem ( OdIfc::OdIfcInstancePtr item,
OdIfc::OdIfcInstancePtr style )

Creates an instance of IfcStyledItem.

Parameters
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,.
Returns
A pointer to the created and appended to the model entity.

◆ createSurfaceStyle()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createSurfaceStyle ( const OdAnsiString & name,
const OdCmEntityColor & color )

Creates an instance of IfcSurfaceStyle and appropriate IfcSurfaceStyleRendering.

Parameters
name[in] OdAnsiString style name.
color[in] OdCmEntityColor color parameter.
Returns
A pointer to the created and appended to the model entity.

◆ createTrimmedCurve() [1/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createTrimmedCurve ( const OdDAIObjectId & basisCurve,
const OdDAIObjectId & trim1,
const OdDAIObjectId & trim2,
bool bSenseAgreement )

Creates an instance of IfcTrimmedCurve entity.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createTrimmedCurve() [2/2]

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createTrimmedCurve ( const OdDAIObjectId & basisCurve,
double param1,
double param2,
bool bSenseAgreement )

Creates an instance of IfcTrimmedCurve entity.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createUnitAssignment()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createUnitAssignment ( const OdArray< OdDAIObjectId > & unitsCollection)

Creates an instance of IfcUnitAssignment within a model based on existing units collection.

Parameters
unitsCollection[in] OdDAIObjectIds set of existing units.
Returns
A pointer to the created and appended to the model entity.

◆ createVector()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::createVector ( OdIfc::OdIfcInstancePtr pDirection,
double magnitude )

Creates an instance of IfcVector.

Parameters
pDirection[in] OdIfcInstance pointer to the direction of the vector.
magnitude[in] Magnitude value of the vector.
Returns
A pointer to the created and appended to the model entity.

◆ createWall()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ createWallStandardCase()

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.

Parameters
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.
Returns
A pointer to the created and appended to the model entity.

◆ dirX()

const OdDAIObjectId & OdIfcModelFiller::dirX ( ) const
inline

details Retrieves direction of a local x-axis.

Returns
direction of a local x-axis.

Definition at line 179 of file IfcModelFiller.h.

◆ dirX2D()

const OdDAIObjectId & OdIfcModelFiller::dirX2D ( ) const
inline

details Retrieves direction of a local x-axis used in 2D placement.

Returns
direction of a local x-axis used in 2D placement.

Definition at line 204 of file IfcModelFiller.h.

◆ dirY()

const OdDAIObjectId & OdIfcModelFiller::dirY ( ) const
inline

details Retrieves direction of a local y-axis.

Returns
direction of a local y-axis.

Definition at line 185 of file IfcModelFiller.h.

◆ dirY2D()

const OdDAIObjectId & OdIfcModelFiller::dirY2D ( ) const
inline

details Retrieves direction of a local y-axis used in 2D placement.

Returns
direction of a local y-axis used in 2D placement.

Definition at line 210 of file IfcModelFiller.h.

◆ dirZ()

const OdDAIObjectId & OdIfcModelFiller::dirZ ( ) const
inline

details Retrieves direction of a local z-axis.

Returns
direction of a local z-axis.

Definition at line 191 of file IfcModelFiller.h.

◆ findSurfaceStyle()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::findSurfaceStyle ( const OdAnsiString & name)

Finds an instance of IfcSurfaceStyle by its name.

Parameters
name[in] OdAnsiString style name.
Returns
A pointer to the existed IfcSurfaceStyle or empty OdIfcInstancePtr() otherwise.

◆ getConversionFactor()

double OdIfcModelFiller::getConversionFactor ( UnitsConversion unit)
inline

Returns conversion value between imperial and metric units.

Parameters
unit[in] UnitsConversion value.
Returns
conversion factor for current unit.

Definition at line 755 of file IfcModelFiller.h.

◆ getGeometricRepresentationContext()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::getGeometricRepresentationContext ( const OdAnsiString & type)

Returns active model geometric context by its type name.

Parameters
type[in] OdAnsiString name of context identifier ("Axis"/"Body" etc).
Returns
A pointer to the existing context or empty OdIfcInstancePtr() otherwise.

◆ getGeometricRepresentationSubContext()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::getGeometricRepresentationSubContext ( const OdAnsiString & contextIdentifier,
const OdAnsiString & contextType )

Returns active model geometric subcontext by its type name and context identifier.

Parameters
contextIdentifier[in] OdAnsiString name of context identifier ("Axis"/"Body" etc).
contextType[in] OdAnsiString of context type ("Plan"/"Model" etc).
Returns
A pointer to the existing subcontext or empty OdIfcInstancePtr() otherwise.

◆ getObjectDefinition()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::getObjectDefinition ( )
inline

details Retrieves object definition associated with this instance.

Returns
smart pointer to object definition instance.

Definition at line 254 of file IfcModelFiller.h.

◆ getPropertySet()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::getPropertySet ( )
inline

details Retrieves property set associated with this instance.

Returns
smart pointer to a property set.

Definition at line 260 of file IfcModelFiller.h.

◆ getRelAggregates()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::getRelAggregates ( OdIfc::OdIfcInstancePtr pRelating)

Returns existing aggregate relationship for relating item within a model.

Parameters
pRelating[in] pointer to OdIfcInstance that represents existing element that describes the aggregation.
Returns
A pointer to the existed IfcRelAggregates or empty OdIfcInstancePtr() otherwise.

◆ getRelDefinesByProperties()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::getRelDefinesByProperties ( OdIfc::OdIfcInstancePtr pRelatingPropertyDefinition)

Returns existing IfcRelDefinesByProperties relationship for relating property definition within a model.

Parameters
pRelatingPropertyDefinition[in] pointer to OdIfcInstance that represents existing element that describes the property item.
Returns
A pointer to the existed IfcRelDefinesByProperties or empty OdIfcInstancePtr() otherwise.

◆ identity()

const OdDAIObjectId & OdIfcModelFiller::identity ( ) const
inline

Definition at line 198 of file IfcModelFiller.h.

◆ identity2D()

const OdDAIObjectId & OdIfcModelFiller::identity2D ( ) const
inline

Definition at line 217 of file IfcModelFiller.h.

◆ initDetachedPropertySet()

IfcPropertySetFillerPtr OdIfcModelFiller::initDetachedPropertySet ( )

Creates an instance of IfcPropertySetFiller that doesn't belong to the IfcObjectDefinition, i.e. without creation appropriate IfcRelDefinesByProperties.

Returns
A pointer to the created IfcPropertySetFiller, that should be used with IfcPropertySetFiller::createPropertySet.

◆ initEntities()

void OdIfcModelFiller::initEntities ( )
protected

◆ initPropertySet()

IfcPropertySetFillerPtr OdIfcModelFiller::initPropertySet ( OdIfc::OdIfcInstancePtr objectDefinition)

Creates an instance of IfcPropertySetFiller by its relating product.

Parameters
objectDefinition[in] OdIfcInstance pointer to the IfcObjectDefinition item, which properties should be created with IfcRelDefinesByProperties.
Returns
A pointer to the created IfcPropertySetFiller, that should be used with IfcPropertySetFiller::createRelDefinesPropertySet, if success or empty IfcPropertySetFillerPtr() otherwise.

◆ model()

OdIfcModelPtr OdIfcModelFiller::model ( )
inline

Retrieves working IFC model.

Returns
Returns smart pointer to IFC model.

Definition at line 156 of file IfcModelFiller.h.

◆ origin()

const OdDAIObjectId & OdIfcModelFiller::origin ( ) const
inline

details Retrieves origin point of 3D placement.

Returns
origin as a Cartesian point.

Definition at line 197 of file IfcModelFiller.h.

◆ origin2D()

const OdDAIObjectId & OdIfcModelFiller::origin2D ( ) const
inline

details Retrieves origin point of 2D placement.

Returns
origin as a Cartesian point.

Definition at line 216 of file IfcModelFiller.h.

◆ ownerHistory()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::ownerHistory ( )
inline

details Retrieves owner history associated with this instance.

Returns
smart pointer to owner history instance.

Definition at line 229 of file IfcModelFiller.h.

◆ person()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::person ( )
inline

details Retrieves person associated with this instance.

Returns
smart pointer to a person instance.

Definition at line 223 of file IfcModelFiller.h.

◆ project()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::project ( )
inline

details Retrieves project associated with this instance.

Returns
smart pointer to project instance.

Definition at line 241 of file IfcModelFiller.h.

◆ putAttrs()

bool OdIfcModelFiller::putAttrs ( OdIfc::OdIfcInstancePtr & inst,
std::map< OdAnsiString, OdRxValue > & attrs )

Sets attributes collection for current entity in the model.

Parameters
attrs[in] std::map collection of custom entity attributes with values.
Returns
true in case of success.

◆ setOwnerHistory()

void OdIfcModelFiller::setOwnerHistory ( OdIfc::OdIfcInstancePtr history)
inline

Sets IfcOwnerHistory attribute value for the entity in the model.

Parameters
history[in] OdSmartPtr<OdIfcInstance> to existing instance.

Definition at line 273 of file IfcModelFiller.h.

◆ setProject()

void OdIfcModelFiller::setProject ( OdIfc::OdIfcInstancePtr project)
inline

Sets IfcProject value for the entities in the model.

Parameters
project[in] OdSmartPtr<OdIfcInstance> to existing instance.

Definition at line 279 of file IfcModelFiller.h.

◆ setUnitAssignment()

void OdIfcModelFiller::setUnitAssignment ( OdIfc::OdIfcInstancePtr unitsAssignment = OdIfc::OdIfcInstancePtr())

Sets units assignment attribute for project entity in the model.

Parameters
unitsAssignment[in] pointer to OdIfcInstance that represents existing IfcUnitAssignment.

◆ site()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::site ( )
inline

details Retrieves site associated with this instance.

Returns
smart pointer to site instance.

Definition at line 247 of file IfcModelFiller.h.

◆ unitAssignment()

OdIfc::OdIfcInstancePtr OdIfcModelFiller::unitAssignment ( )
inline

details Retrieves unit assignment associated with this instance.

Returns
smart pointer to unit assignment instance.

Definition at line 235 of file IfcModelFiller.h.

Friends And Related Symbol Documentation

◆ OdIfcFile

friend class OdIfcFile
friend

Definition at line 847 of file IfcModelFiller.h.

Member Data Documentation

◆ Entity

EntityDefinitions OdIfcModelFiller::Entity
protected

Definition at line 86 of file IfcModelFiller.h.

◆ m_conversionFactors

std::map<UnitsConversion, double> OdIfcModelFiller::m_conversionFactors
protected

Definition at line 138 of file IfcModelFiller.h.

◆ m_dirX

OdDAIObjectId OdIfcModelFiller::m_dirX
protected

Definition at line 111 of file IfcModelFiller.h.

◆ m_dirX2D

OdDAIObjectId OdIfcModelFiller::m_dirX2D
protected

Definition at line 117 of file IfcModelFiller.h.

◆ m_dirY

OdDAIObjectId OdIfcModelFiller::m_dirY
protected

Definition at line 112 of file IfcModelFiller.h.

◆ m_dirY2D

OdDAIObjectId OdIfcModelFiller::m_dirY2D
protected

Definition at line 118 of file IfcModelFiller.h.

◆ m_dirZ

OdDAIObjectId OdIfcModelFiller::m_dirZ
protected

Definition at line 113 of file IfcModelFiller.h.

◆ m_geometricRepresentationContext

std::map<OdAnsiString, OdIfc::OdIfcInstance*> OdIfcModelFiller::m_geometricRepresentationContext
protected

Definition at line 127 of file IfcModelFiller.h.

◆ m_geometricRepresentationSubContext

std::map<OdAnsiString, std::map<OdAnsiString, OdIfc::OdIfcInstance*> > OdIfcModelFiller::m_geometricRepresentationSubContext
protected

Definition at line 128 of file IfcModelFiller.h.

◆ m_identity

OdDAIObjectId OdIfcModelFiller::m_identity
protected

Definition at line 115 of file IfcModelFiller.h.

◆ m_identity2D

OdDAIObjectId OdIfcModelFiller::m_identity2D
protected

Definition at line 120 of file IfcModelFiller.h.

◆ m_idProperties

OdDAIObjectIds OdIfcModelFiller::m_idProperties
protected

Definition at line 136 of file IfcModelFiller.h.

◆ m_model

OdIfcModelPtr OdIfcModelFiller::m_model
protected

Definition at line 91 of file IfcModelFiller.h.

◆ m_objectDefinition

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_objectDefinition
protected

Definition at line 133 of file IfcModelFiller.h.

◆ m_ownerHistory

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_ownerHistory
protected

Definition at line 103 of file IfcModelFiller.h.

◆ m_person

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_person
protected

Definition at line 102 of file IfcModelFiller.h.

◆ m_posOrigin

OdDAIObjectId OdIfcModelFiller::m_posOrigin
protected

Definition at line 114 of file IfcModelFiller.h.

◆ m_posOrigin2D

OdDAIObjectId OdIfcModelFiller::m_posOrigin2D
protected

Definition at line 119 of file IfcModelFiller.h.

◆ m_project

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_project
protected

Definition at line 105 of file IfcModelFiller.h.

◆ m_propertySet

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_propertySet
protected

Definition at line 134 of file IfcModelFiller.h.

◆ m_relAggregates

std::map<OdIfc::OdIfcInstance*, OdIfc::OdIfcInstance*> OdIfcModelFiller::m_relAggregates
protected

Definition at line 124 of file IfcModelFiller.h.

◆ m_relContainedInSpatialStructure

std::map<OdIfc::OdIfcInstance*, OdIfc::OdIfcInstance*> OdIfcModelFiller::m_relContainedInSpatialStructure
protected

Definition at line 125 of file IfcModelFiller.h.

◆ m_relDefinesByProperties

std::map<OdIfc::OdIfcInstance*, OdIfc::OdIfcInstance*> OdIfcModelFiller::m_relDefinesByProperties
protected

Definition at line 129 of file IfcModelFiller.h.

◆ m_relReferencedInSpatialStructure

std::map<OdIfc::OdIfcInstance*, OdIfc::OdIfcInstance*> OdIfcModelFiller::m_relReferencedInSpatialStructure
protected

Definition at line 126 of file IfcModelFiller.h.

◆ m_site

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_site
protected

Definition at line 106 of file IfcModelFiller.h.

◆ m_surfaceStyles

std::map<OdAnsiString, OdIfc::OdIfcInstance*> OdIfcModelFiller::m_surfaceStyles
protected

Definition at line 131 of file IfcModelFiller.h.

◆ m_unitAssignment

OdIfc::OdIfcInstancePtr OdIfcModelFiller::m_unitAssignment
protected

Definition at line 104 of file IfcModelFiller.h.

◆ unitsCollection

OdDAIObjectIds OdIfcModelFiller::unitsCollection
protected

Definition at line 122 of file IfcModelFiller.h.


The documentation for this class was generated from the following file: