CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfc2x2_final::IfcRepresentation Class Reference

#include <IfcRepresentationAutoImpl.h>

Inheritance diagram for OdIfc2x2_final::IfcRepresentation:
OdIfc2x2_final::OdIfc2x2_FinalInstance OdIfc::OdIfcInstance OdIfc2x2_final::IfcShapeRepresentation OdIfc2x2_final::IfcStyledRepresentation OdIfc2x2_final::IfcTopologyRepresentation

Public Member Functions

const OdDAIObjectId & getContextOfItems () const
 
void setContextOfItems (const OdDAIObjectId &ContextOfItems)
 
const OdAnsiString & getRepresentationIdentifier () const
 
void setRepresentationIdentifier (const OdAnsiString &RepresentationIdentifier)
 
const OdAnsiString & getRepresentationType () const
 
void setRepresentationType (const OdAnsiString &RepresentationType)
 
void getItems (OdDAIObjectIds &Items) const
 
OdDAI::SetOfOdDAIObjectId & items ()
 
void getInvOfProductRepresentation (OdDAIObjectIds &OfProductRepresentation) const
 
 IfcRepresentation ()
 
virtual OdResult inFields (OdDAI::OdSpfFilerBase *rdFiler) override
 
virtual OdResult outFields (OdDAI::OdSpfFilerBase *wrFiler) override
 
virtual OdDAI::Entity * getInstanceType () const override
 
virtual OdRxValue getAttr (const char *attrName) const override
 
virtual void unsetAttr (const char *explicitAttrName) override
 
virtual bool testAttr (const char *explicitAttrName) const override
 
virtual bool putAttr (const char *explicitAttrName, const OdRxValue &val) override
 
virtual bool isKindOf (OdIfc::OdIfcEntityType entityType) const override
 
virtual OdIfc::OdIfcEntityType type () const override
 
virtual OdRxValue getAttr (const OdIfc::OdIfcAttribute attrDef) const override
 
virtual void unsetAttr (const OdIfc::OdIfcAttribute explicitAttrDef) override
 
virtual bool testAttr (const OdIfc::OdIfcAttribute explicitAttrDef) const override
 
virtual bool putAttr (const OdIfc::OdIfcAttribute explicitAttrDef, const OdRxValue &val) override
 
- Public Member Functions inherited from OdIfc::OdIfcInstance
 ODRX_DECLARE_MEMBERS (OdIfcInstance)
 
 OdIfcInstance ()
 
 ~OdIfcInstance ()
 
bool isInstanceOf (OdIfcEntityType entityType) const
 
IfcOpResult resolved ()
 
void resolve (IfcOpResult resolved, void *resPtr)
 
void unresolve ()
 
virtual void setGsNode (OdGsCache *pGsNode)
 
virtual OdGsCachegsNode () const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *traits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *wd) const
 
virtual OdDbStub * ownerId () const
 

Protected Attributes

OdDAIObjectId m_ContextOfItems
 
OdAnsiString m_RepresentationIdentifier
 
OdAnsiString m_RepresentationType
 
OdDAI::SetOfOdDAIObjectId m_Items
 
- Protected Attributes inherited from OdIfc::OdIfcInstance
voidm_resPtr
 
IfcOpResult m_resolved
 

Friends

class IfcProductRepresentation
 

Additional Inherited Members

- Static Public Member Functions inherited from OdIfc::OdIfcInstance
static const OdGePoint3dasPoint3d (const OdIfcInstance *inst)
 
static const OdGePoint2dasPoint2d (const OdIfcInstance *inst)
 
static const OdGeVector3dasVector3d (const OdIfcInstance *inst)
 
static const OdGeVector2dasVector2d (const OdIfcInstance *inst)
 
static const OdGeMatrix2dasMatrix2d (const OdIfcInstance *inst)
 
static const OdGeMatrix3dasMatrix3d (const OdIfcInstance *inst)
 
static OdIfcCompoundPtr asCompound (OdSmartPtr< OdIfcInstance > inst)
 
static const OdCmEntityColorasRgbColor (const OdIfcInstance *inst)
 

Detailed Description

The IfcRepresentation defines the general concept of representing product properties and in particular the product shape.

  • Representation Use Definition - Each representation, either IfcShapeRepresentation, or IfcTopologyRepresentation have a well defined attributes: ContextOfItems: Reference to an IfcGeometricRepresentationContext as agreed for this representation. RepresentationIdentifier: Name of the representation, for example, 'Body' for 3D shape, 'FootPrint' for 2D ground view, 'Axis' for reference axis. RepresentationType: Name for the geometric, or topological representation type, for example, 'SweptSolid' for 3D swept solids, 'Brep' for boundary representation.
Remarks
This definition may not be instantiated.

Definition at line 54 of file Ifc2x2_Final/IfcRepresentationAutoImpl.h.

Constructor & Destructor Documentation

◆ IfcRepresentation()

OdIfc2x2_final::IfcRepresentation::IfcRepresentation ( )

Default constructor for the IfcRepresentation class.

Member Function Documentation

◆ getAttr() [1/2]

virtual OdRxValue OdIfc2x2_final::IfcRepresentation::getAttr ( const char * attrName) const
overridevirtual

Returns an attribute value for the specified attribute name.

Parameters
attrName[in] Name of an attribute to query.
Returns
OdRxValue object that represents a generic variant type value.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ getAttr() [2/2]

virtual OdRxValue OdIfc2x2_final::IfcRepresentation::getAttr ( const OdIfc::OdIfcAttribute attrDef) const
overridevirtual

Returns an attribute value for the specified attribute definition.

Parameters
attrDef[in] Attribute definition to query.
Returns
OdRxValue object that represents a generic variant type value.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ getContextOfItems()

const OdDAIObjectId & OdIfc2x2_final::IfcRepresentation::getContextOfItems ( ) const

Returns the value of ContextOfItems attribute. This attribute represents definition of the representation context for which the different subtypes of representation are valid.

Returns
Returns the value of ContextOfItems attribute.

◆ getInstanceType()

virtual OdDAI::Entity * OdIfc2x2_final::IfcRepresentation::getInstanceType ( ) const
overridevirtual

Returns a type of a class instance.

Returns
Pointer to the <exref target=https://docs.opendesign.com/tkernel_api_cpp/OdDAI__Entity.html>>OdDAI::Entity</exref> type that determines an entity definition within a schema.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation, OdIfc2x2_final::IfcStyledRepresentation, and OdIfc2x2_final::IfcTopologyRepresentation.

◆ getInvOfProductRepresentation()

void OdIfc2x2_final::IfcRepresentation::getInvOfProductRepresentation ( OdDAIObjectIds & OfProductRepresentation) const

Returns the value of OfProductRepresentation attribute. This attribute represents reference to the product representations to which this individual representation applies. In most cases it is the reference to one or many product shapes, to which this shape representation is applicable.

Parameters
OfProductRepresentation[out] Receives the value of OfProductRepresentation attribute.

◆ getItems()

void OdIfc2x2_final::IfcRepresentation::getItems ( OdDAIObjectIds & Items) const

Gets the value of Items attribute. This attribute represents set of geometric representation items that are defined for this representation.

Parameters
Items[out] Receives the Items attribute.

◆ getRepresentationIdentifier()

const OdAnsiString & OdIfc2x2_final::IfcRepresentation::getRepresentationIdentifier ( ) const

Returns the value of RepresentationIdentifier attribute. This attribute represents the optional identifier of the representation as used within a project.

Returns
Returns the value of RepresentationIdentifier attribute.

◆ getRepresentationType()

const OdAnsiString & OdIfc2x2_final::IfcRepresentation::getRepresentationType ( ) const

Returns the value of RepresentationType attribute. This attribute represents the description of the type of a representation context. The representation type defines the type of geometry or topology used for representing the product representation. More information is given at the subtypes IfcShapeRepresentation and IfcTopologyRepresentation. The supported values for context type are to be specified by implementers agreements.

Returns
Returns the value of RepresentationType attribute.

◆ inFields()

virtual OdResult OdIfc2x2_final::IfcRepresentation::inFields ( OdDAI::OdSpfFilerBase * rdFiler)
overridevirtual

Reads object's data from the specified filer.

Parameters
rdFiler[in] Pointer to a filer from which to read the data.
Returns
A value of OdResult type that contains the result of the method execution.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ isKindOf()

virtual bool OdIfc2x2_final::IfcRepresentation::isKindOf ( OdIfc::OdIfcEntityType entityType) const
overridevirtual

Checks whether the specified instance is the object derived from or belongs to this class.

Parameters
entityType[in] Entity to check.
Returns
true if the specified instance is the object derived from or belongs to this class, false otherwise.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation, OdIfc2x2_final::IfcStyledRepresentation, and OdIfc2x2_final::IfcTopologyRepresentation.

◆ items()

OdDAI::SetOfOdDAIObjectId & OdIfc2x2_final::IfcRepresentation::items ( )

Returns the value of Items attribute. This attribute represents set of geometric representation items that are defined for this representation.

Returns
Returns the value of Items attribute.

◆ outFields()

virtual OdResult OdIfc2x2_final::IfcRepresentation::outFields ( OdDAI::OdSpfFilerBase * wrFiler)
overridevirtual

Writes object's data the the specified filer.

Parameters
wrFiler[in] Pointer to a filer to which to write the data.
Returns
A value of OdResult type that contains the result of the method execution.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ putAttr() [1/2]

virtual bool OdIfc2x2_final::IfcRepresentation::putAttr ( const char * explicitAttrName,
const OdRxValue & val )
overridevirtual

Sets the specified attribute with a given value.

Parameters
explicitAttrName[in] Explicit name of the attribute to set.
val[in] Value to set.
Returns
true if the value is successfully set for the specified attribute, false otherwise.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ putAttr() [2/2]

virtual bool OdIfc2x2_final::IfcRepresentation::putAttr ( const OdIfc::OdIfcAttribute explicitAttrDef,
const OdRxValue & val )
overridevirtual

Sets the specified attribute with a given value.

Parameters
explicitAttrDef[in] Explicit attribute definition to set.
val[in] Value to set.
Returns
true if the value is successfully set for the specified attribute, false otherwise.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ setContextOfItems()

void OdIfc2x2_final::IfcRepresentation::setContextOfItems ( const OdDAIObjectId & ContextOfItems)

Sets the value of ContextOfItems attribute. This attribute represents definition of the representation context for which the different subtypes of representation are valid.

Parameters
ContextOfItems[in] ContextOfItems attribute to set.

◆ setRepresentationIdentifier()

void OdIfc2x2_final::IfcRepresentation::setRepresentationIdentifier ( const OdAnsiString & RepresentationIdentifier)

Sets the value of RepresentationIdentifier attribute. This attribute represents the optional identifier of the representation as used within a project.

Parameters
RepresentationIdentifier[in] Representation identifier to set.

◆ setRepresentationType()

void OdIfc2x2_final::IfcRepresentation::setRepresentationType ( const OdAnsiString & RepresentationType)

Sets the value of RepresentationType attribute. This attribute represents the description of the type of a representation context. The representation type defines the type of geometry or topology used for representing the product representation. More information is given at the subtypes IfcShapeRepresentation and IfcTopologyRepresentation. The supported values for context type are to be specified by implementers agreements.

Parameters
RepresentationType[in] Representation type to set.

◆ testAttr() [1/2]

virtual bool OdIfc2x2_final::IfcRepresentation::testAttr ( const char * explicitAttrName) const
overridevirtual

Checks whether the specified attribute is set.

Parameters
explicitAttrName[in] Explicit name of the attribute to test.
Returns
true if the specified attribute is set, false otherwise.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ testAttr() [2/2]

virtual bool OdIfc2x2_final::IfcRepresentation::testAttr ( const OdIfc::OdIfcAttribute explicitAttrDef) const
overridevirtual

Checks whether the specified attribute is set.

Parameters
explicitAttrDef[in] Attribute definition to test.
Returns
true if the specified attribute is set, false otherwise.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ type()

virtual OdIfc::OdIfcEntityType OdIfc2x2_final::IfcRepresentation::type ( ) const
overridevirtual

Returns the type of this entity.

Returns
A value of the <exref target=https://docs.opendesign.com/tkernel_api_cpp/OdIfc__OdIfcEntityType.html>>OdIfc::OdIfcEntityType</exref> type that represents type of this entity.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation, OdIfc2x2_final::IfcStyledRepresentation, and OdIfc2x2_final::IfcTopologyRepresentation.

◆ unsetAttr() [1/2]

virtual void OdIfc2x2_final::IfcRepresentation::unsetAttr ( const char * explicitAttrName)
overridevirtual

Resets a value for the specified attribute.

Parameters
explicitAttrName[in] Explicit name of the attribute to reset.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

◆ unsetAttr() [2/2]

virtual void OdIfc2x2_final::IfcRepresentation::unsetAttr ( const OdIfc::OdIfcAttribute explicitAttrDef)
overridevirtual

Resets a value for the specified attribute.

Parameters
explicitAttrDef[in] Explicit definition that represents an attribute to reset.

Reimplemented from OdIfc::OdIfcInstance.

Reimplemented in OdIfc2x2_final::IfcShapeRepresentation.

Friends And Related Symbol Documentation

◆ IfcProductRepresentation

friend class IfcProductRepresentation
friend

Definition at line 258 of file Ifc2x2_Final/IfcRepresentationAutoImpl.h.

Member Data Documentation

◆ m_ContextOfItems

OdDAIObjectId OdIfc2x2_final::IfcRepresentation::m_ContextOfItems
protected

Definition at line 252 of file Ifc2x2_Final/IfcRepresentationAutoImpl.h.

◆ m_Items

OdDAI::SetOfOdDAIObjectId OdIfc2x2_final::IfcRepresentation::m_Items
protected

Definition at line 255 of file Ifc2x2_Final/IfcRepresentationAutoImpl.h.

◆ m_RepresentationIdentifier

OdAnsiString OdIfc2x2_final::IfcRepresentation::m_RepresentationIdentifier
protected

Definition at line 253 of file Ifc2x2_Final/IfcRepresentationAutoImpl.h.

◆ m_RepresentationType

OdAnsiString OdIfc2x2_final::IfcRepresentation::m_RepresentationType
protected

Definition at line 254 of file Ifc2x2_Final/IfcRepresentationAutoImpl.h.


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