|
CFx SDK Documentation 2026 SP0
|
#include <IfcGridPlacementAutoImpl.h>
Public Member Functions | |
| const OdDAIObjectId & | getPlacementLocation () const |
| void | setPlacementLocation (const OdDAIObjectId &PlacementLocation) |
| const OdDAIObjectId & | getPlacementRefDirection () const |
| void | setPlacementRefDirection (const OdDAIObjectId &PlacementRefDirection) |
| 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 bool | comparedToEarlyImpl (const OdDAI::ApplicationInstance *pOther, OdRx::Ordering &ordering) 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 OdIfc2x3::IfcObjectPlacement | |
| void | getInvPlacesObject (OdDAIObjectIds &PlacesObject) const |
| void | getInvReferencedByPlacements (OdDAIObjectIds &ReferencedByPlacements) const |
Public Member Functions inherited from OdIfc2x3::OdIfc2x3Instance | |
| 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 | |
| OdDAIObjectId | m_PlacementLocation |
| OdDAIObjectId | m_PlacementRefDirection |
Protected Attributes inherited from OdIfc::OdIfcInstance | |
| void * | m_resPtr |
| IfcOpResult | m_resolved |
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) |
IfcGridPlacement provides a specialization of IfcObjectPlacement in which the placement and axis direction of the object coordinate system is defined by a reference to the design grid.
The location of the object coordinate system is specified by the attribute PlacementLocation. It is defined as an IfcVirtualGridIntersection, that is, an intersection between two grid axes with optional offsets. The axis direction of the x-axis of the object coordinate system is specified either: PlacementRefDirection = NIL: by the tangent of the first grid axis (PlacementLocation.IntersectingAxes[1]) at the virtual intersection (maybe using the offset curve, if PlacementLocation.OffsetDistances is specified); PlacementRefDirection = IfcDirection: by the explicitly provided direction information; PlacementRefDirection = IfcVirtualGridIntersection: by the tangent between the virtual grid intersection of PlacementLocation and the virtual grid intersection of PlacementRefDirection. Offsets as potentially provided in the IfcVirtualGridIntersection's of PlacementLocation and PlacementRefDirection have to be taken into account.
The direction of the y-axis of the IfcGridPlacement is the orthogonal complement to the x-axis. The plane defined by the x and y axis are co-planar to the xy plane of the local placement of the IfcGrid. The direction of the z-axis is the orientation of the cross product of the x-axis and the y-axis, i.e. the z-axis of the IfcGridPlacement is co-linear to the z-axis of the local placement of the IfcGrid.
The image below illustrates the case where PlacementRefDirection is not specified - the object coordinate system is defined by: Its location: specified by the virtual grid intersection of PlacementLocation Its x-axis direction: specified by the tangent of the first intersecting axis in the offset location of the virtual grid intersection
<IMAGE ifcgridplacement-layout1>
The image below illustrates the case where PlacementRefDirection is specified as an IfcDirection - the object coordinate system is defined by: Its location: specified by the virtual grid intersection of PlacementLocation Its x-axis direction: specified by the DirectionRatios of the IfcDirection, only the ratios for x and y are taken into account
<IMAGE ifcgridplacement-layout3>
The image below illustrates the case where PlacementRefDirection is specified as an IfcVirtualGridIntersection - the object coordinate system is defined by: Its location: specified by the virtual grid intersection of PlacementLocation Its x-axis direction: specified by the tangent of the line between the virtual grid intersection of the PlacementLocation and the virtual grid intersection of the PlacementRefDirection.
<IMAGE ifcgridplacement-layout2>
Definition at line 75 of file Ifc2x3/IfcGridPlacementAutoImpl.h.
|
overridevirtual |
Early-bound version of instances comparison.
| pOther | [in] Other application instance. |
| ordering | [out] Receives the ordering (comparison) status. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Returns an attribute value for the specified attribute name.
| attrName | [in] Name of an attribute to query. |
|
overridevirtual |
Returns an attribute value for the specified attribute definition.
| attrDef | [in] Attribute definition to query. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Returns a type of a class instance.
Reimplemented from OdIfc2x3::IfcObjectPlacement.
| const OdDAIObjectId & OdIfc2x3::IfcGridPlacement::getPlacementLocation | ( | ) | const |
Returns the value of PlacementLocation attribute. This attribute represents placement of the object coordinate system defined by the intersection of two grid axes.
| const OdDAIObjectId & OdIfc2x3::IfcGridPlacement::getPlacementRefDirection | ( | ) | const |
Returns the value of PlacementRefDirection attribute. This attribute represents reference to either an explicit direction, or a second grid axis intersection, which defines the orientation of the grid placement.
|
overridevirtual |
Reads object's data from the specified filer.
| rdFiler | [in] Pointer to a filer from which to read the data. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Checks whether the specified instance is the object derived from or belongs to this class.
| entityType | [in] Entity to check. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Writes object's data the the specified filer.
| wrFiler | [in] Pointer to a filer to which to write the data. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
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 OdIfc::OdIfcInstance.
|
overridevirtual |
Sets the specified attribute with a given value.
| explicitAttrDef | [in] Explicit attribute definition to set. |
| val | [in] Value to set. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
| void OdIfc2x3::IfcGridPlacement::setPlacementLocation | ( | const OdDAIObjectId & | PlacementLocation | ) |
Sets the value of PlacementLocation attribute. This attribute represents placement of the object coordinate system defined by the intersection of two grid axes.
| PlacementLocation | [in] Placement location to set. |
| void OdIfc2x3::IfcGridPlacement::setPlacementRefDirection | ( | const OdDAIObjectId & | PlacementRefDirection | ) |
Sets the value of PlacementRefDirection attribute. This attribute represents reference to either an explicit direction, or a second grid axis intersection, which defines the orientation of the grid placement.
| PlacementRefDirection | [in] PlacementRefDirection attribute to set. |
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrName | [in] Explicit name of the attribute to test. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Checks whether the specified attribute is set.
| explicitAttrDef | [in] Attribute definition to test. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Returns the type of this entity.
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrName | [in] Explicit name of the attribute to reset. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
overridevirtual |
Resets a value for the specified attribute.
| explicitAttrDef | [in] Explicit definition that represents an attribute to reset. |
Reimplemented from OdIfc2x3::IfcObjectPlacement.
|
protected |
Definition at line 245 of file Ifc2x3/IfcGridPlacementAutoImpl.h.
|
protected |
Definition at line 246 of file Ifc2x3/IfcGridPlacementAutoImpl.h.