|
CFx SDK Documentation 2026 SP0
|
#include <IfcGeometricRepresentationContextAutoImpl.h>
Public Member Functions | |
| int | getCoordinateSpaceDimension () const |
| void | setCoordinateSpaceDimension (int CoordinateSpaceDimension) |
| double | getPrecision () const |
| void | setPrecision (double Precision) |
| IfcAxis2Placement | worldCoordinateSystem () |
| const OdDAIObjectId & | getTrueNorth () const |
| void | setTrueNorth (const OdDAIObjectId &TrueNorth) |
| void | getInvHasSubContexts (OdDAIObjectIds &HasSubContexts) const |
| void | getInvHasCoordinateOperation (OdDAIObjectIds &HasCoordinateOperation) const |
| IfcGeometricRepresentationContext () | |
| 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 OdIfc4x2::IfcRepresentationContext | |
| const OdAnsiString & | getContextIdentifier () const |
| void | setContextIdentifier (const OdAnsiString &ContextIdentifier) |
| const OdAnsiString & | getContextType () const |
| void | setContextType (const OdAnsiString &ContextType) |
| void | getInvRepresentationsInContext (OdDAIObjectIds &RepresentationsInContext) const |
| IfcRepresentationContext () | |
Public Member Functions inherited from OdIfc4x2::OdIfc4x2Instance | |
| void | setInverseCounterParts () 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 OdGsCache * | gsNode () const |
| virtual OdUInt32 | subSetAttributes (OdGiDrawableTraits *traits) const |
| virtual bool | subWorldDraw (OdGiWorldDraw *wd) const |
| virtual OdDbStub * | ownerId () const |
Protected Attributes | |
| int | m_CoordinateSpaceDimension |
| double | m_Precision |
| OdDAI::Select | m_WorldCoordinateSystem |
| OdDAIObjectId | m_TrueNorth |
Protected Attributes inherited from OdIfc4x2::IfcRepresentationContext | |
| OdAnsiString | m_ContextIdentifier |
| OdAnsiString | m_ContextType |
Protected Attributes inherited from OdIfc::OdIfcInstance | |
| void * | m_resPtr |
| IfcOpResult | m_resolved |
Friends | |
| class | IfcGeometricRepresentationSubContext |
| class | IfcCoordinateOperation |
Additional Inherited Members | |
Static Public Member Functions inherited from OdIfc::OdIfcInstance | |
| static const OdGePoint3d * | asPoint3d (const OdIfcInstance *inst) |
| static const OdGePoint2d * | asPoint2d (const OdIfcInstance *inst) |
| static const OdGeVector3d * | asVector3d (const OdIfcInstance *inst) |
| static const OdGeVector2d * | asVector2d (const OdIfcInstance *inst) |
| static const OdGeMatrix2d * | asMatrix2d (const OdIfcInstance *inst) |
| static const OdGeMatrix3d * | asMatrix3d (const OdIfcInstance *inst) |
| static OdIfcCompoundPtr | asCompound (OdSmartPtr< OdIfcInstance > inst) |
| static const OdCmEntityColor * | asRgbColor (const OdIfcInstance *inst) |
The IfcGeometricRepresentationContext defines the context that applies to several shape representations of products within a project. It defines the type of the context in which the shape representation is defined, and the numeric precision applicable to the geometric representation items defined in this context. In addition it can be used to offset the project coordinate system from a global point of origin, using the WorldCoordinateSystem attribute. The main representation context may also provide the true north direction, see on the image below:
<IMAGE ifcgeometricrepresentationcontext_truenorth>
The TrueNorth attribute should be provided, if the y axis of the WorldCoordinateSystem does not point to the global northing. Direction of the true north, or geographic northing direction, relative to the underlying project coordinate system as established by the attribute WorldCoordinateSystem. It is given by a 2 dimensional direction within the xy-plane of the project coordinate system. If not present, it defaults to [0.,1.] - i.e. the positive Y axis of the project coordinate system equals to the geographic northing direction. The direction is provided within project coordinate system and identifies the true north direction.
\changes
IFC4 changes: Type of the Precision attribute changed from "real" to "IfcReal".
Definition at line 58 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.
| OdIfc4x2::IfcGeometricRepresentationContext::IfcGeometricRepresentationContext | ( | ) |
Default constructor for the IfcGeometricRepresentationContext class.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
| int OdIfc4x2::IfcGeometricRepresentationContext::getCoordinateSpaceDimension | ( | ) | const |
Returns the value of CoordinateSpaceDimension attribute. This attribute represents the integer dimension count of the coordinate space modeled in a geometric representation context.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
| void OdIfc4x2::IfcGeometricRepresentationContext::getInvHasCoordinateOperation | ( | OdDAIObjectIds & | HasCoordinateOperation | ) | const |
Returns the value of HasCoordinateOperation attribute. This attribute represents an instance that is used for conversion between coordinate systems. It refers to a coordinate operation (IfcCoordinateOperation instance) between a geographic map coordinate reference system, and the engineering coordinate system of this construction project. If there is more than one IfcGeometricRepresentationContext provided to the IfcProject then all contexts have an identical instance of IfcCoordinateOperation as HasCoordinateOperation referring to the same instance of IfcCoordinateReferenceSystem.
| HasCoordinateOperation | [out] Receives the value of HasCoordinateOperation attribute. |
| void OdIfc4x2::IfcGeometricRepresentationContext::getInvHasSubContexts | ( | OdDAIObjectIds & | HasSubContexts | ) | const |
Returns the value of HasSubContexts attribute. This attribute represents the set of IfcGeometricRepresentationSubContexts that refer to this IfcGeometricRepresentationContext.
| HasSubContexts | [out] Receives the value of HasSubContexts attribute. |
| double OdIfc4x2::IfcGeometricRepresentationContext::getPrecision | ( | ) | const |
Returns the value of Precision attribute. This attribute represents value of the model precision for geometric models. It is a double value (REAL), typically in 1E-5 to 1E-8 range. It indicates the tolerance under which two given points are assumed to be identical. The value can be used e.g. to sets the maximum distance from an edge curve to the underlying face surface in brep models.
| const OdDAIObjectId & OdIfc4x2::IfcGeometricRepresentationContext::getTrueNorth | ( | ) | const |
Returns the value of TrueNorth attribute. This attribute represents direction of the true north, or geographic northing direction, relative to the underlying project coordinate system. It is given by a 2 dimensional direction within the xy-plane of the project coordinate system. If not present, it defaults to 0. 1., meaning that the positive Y axis of the project coordinate system equals the geographic northing direction.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrName | [in] Explicit name of the attribute to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
| void OdIfc4x2::IfcGeometricRepresentationContext::setCoordinateSpaceDimension | ( | int | CoordinateSpaceDimension | ) |
Sets the value of CoordinateSpaceDimension attribute. This attribute represents the integer dimension count of the coordinate space modeled in a geometric representation context.
| CoordinateSpaceDimension | [in] Coordinate space dimension to set. |
| void OdIfc4x2::IfcGeometricRepresentationContext::setPrecision | ( | double | Precision | ) |
Sets the value of Precision attribute. This attribute represents value of the model precision for geometric models. It is a double value (REAL), typically in 1E-5 to 1E-8 range. It indicates the tolerance under which two given points are assumed to be identical. The value can be used e.g. to sets the maximum distance from an edge curve to the underlying face surface in brep models.
| Precision | [in] Precision to set. |
| void OdIfc4x2::IfcGeometricRepresentationContext::setTrueNorth | ( | const OdDAIObjectId & | TrueNorth | ) |
Sets the value of TrueNorth attribute. This attribute represents direction of the true north, or geographic northing direction, relative to the underlying project coordinate system. It is given by a 2 dimensional direction within the xy-plane of the project coordinate system. If not present, it defaults to 0. 1., meaning that the positive Y axis of the project coordinate system equals the geographic northing direction.
| TrueNorth | [in] TrueNorth to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc4x2::IfcRepresentationContext.
Reimplemented in OdIfc4x2::IfcGeometricRepresentationSubContext.
| IfcAxis2Placement OdIfc4x2::IfcGeometricRepresentationContext::worldCoordinateSystem | ( | ) |
Returns the value of WorldCoordinateSystem attribute. This attribute represents establishment of the engineering coordinate system (often referred to as the world coordinate system in CAD) for all representation contexts used by the project.
|
friend |
Definition at line 283 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.
|
friend |
Definition at line 282 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.
|
protected |
Definition at line 276 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.
|
protected |
Definition at line 277 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.
|
protected |
Definition at line 279 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.
|
protected |
Definition at line 278 of file Ifc4x2/IfcGeometricRepresentationContextAutoImpl.h.