CFx SDK Documentation 2026 SP0
Loading...
Searching...
No Matches
OdIfc4x4::IfcVirtualGridIntersection Class Reference

#include <IfcVirtualGridIntersectionAutoImpl.h>

Inheritance diagram for OdIfc4x4::IfcVirtualGridIntersection:
OdIfc4x4::OdIFC4X4Instance OdIfc::OdIfcInstance

Public Member Functions

void getIntersectingAxes (OdDAIObjectIds &IntersectingAxes) const
 
OdDAI::ListOfOdDAIObjectId & intersectingAxes ()
 
void getOffsetDistances (OdArray< double > &OffsetDistances) const
 
OdDAI::ListOfDouble & offsetDistances ()
 
virtual OdResult inFields (OdDAI::OdSpfFilerBase *rdFiler) override
 
virtual OdResult outFields (OdDAI::OdSpfFilerBase *wrFiler) override
 
virtual void setInverseCounterParts () 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 OdIfc4x4::OdIFC4X4Instance
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 OdGsCachegsNode () const
 
virtual OdUInt32 subSetAttributes (OdGiDrawableTraits *traits) const
 
virtual bool subWorldDraw (OdGiWorldDraw *wd) const
 
virtual OdDbStub * ownerId () const
 

Protected Attributes

OdDAI::ListOfOdDAIObjectId m_IntersectingAxes
 
OdDAI::ListOfDouble m_OffsetDistances
 
- Protected Attributes inherited from OdIfc::OdIfcInstance
voidm_resPtr
 
IfcOpResult m_resolved
 

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

IfcVirtualGridIntersection defines the derived location of the intersection between two grid axes. Offset values can be specified to set an offset distance to the grid axis for the calculation of the virtual grid intersection.

The two intersecting axes (IntersectingAxes) define the intersection point, which exact location (in terms of the Cartesian point representing the intersection) has to be calculated from the geometric representation of the two participating curves.

Offset values can be specified (OffsetDistances). If specified, the position within the list of OffsetDistances corresponds with the position within the list of IntersectingAxes. Therefore: OffsetDistances[1] sets the offset to IntersectingAxes[1], OffsetDistances[2] sets the offset to IntersectingAxes[2] OffsetDistances[3] sets the offset to the virtual intersection in direction of the orientation of the cross product of IntersectingAxes[1] and the orthogonal complement of the IntersectingAxes[1] (which is the positive or negative direction of the z axis of the design grid position).

The image below illustrates two offset distances specified where the virtual intersection is defined in the xy plane of the grid axis placement.

<IMAGE ifcvirtualgridintersection-layout1>

The image below illustrates three offset distances specified where the virtual intersection is defined by an offset (in direction of the z-axis of the design grid placement) to the virtual intersection in the xy plane of the grid axis placement. The distance of the offset curve (OffsetDistances[n]) is measured from the basis curve. The distance can be positive, negative or zero. A positive value of distance defines an offset in the direction which is normal to the curve in the sense of an anti-clockwise rotation through 90 degrees from the tangent vector T at the specified point. (This is in the direction of orthogonal complement(T).) This can be reverted by the SameSense attribute at IfcGridAxis which can switch the sense of the AxisCurve.

<IMAGE ifcvirtualgridintersection-layout2>

The image below illustrates an example of a negative offset where the figure shows the side of the offset. IntersectingAxes[1].AxisCurve is an IfcTrimmedCurve with an IfcCircle as BasisCurve and SenseAgreement = TRUE. IntersectingAxes[1].SameSense = TRUE. OffsetDistances[1] is a negative length measure

<IMAGE ifcvirtualgridintersection-offset1>

Definition at line 77 of file IFC4X4/IfcVirtualGridIntersectionAutoImpl.h.

Member Function Documentation

◆ comparedToEarlyImpl()

virtual bool OdIfc4x4::IfcVirtualGridIntersection::comparedToEarlyImpl ( const OdDAI::ApplicationInstance * pOther,
OdRx::Ordering & ordering ) const
overridevirtual

Early-bound version of instances comparison.

Parameters
pOther[in] Other application instance.
ordering[out] Receives the ordering (comparison) status.
Returns
true if comparison was performed, false if method has no implementation, so late-bound version could be applied.
Remarks
If the method returns true, the ordering parameter can receive one of the following statuses:
Value Description kLessThan -1 This object < Other Object. kEqual 0 This object = Other Object. kGreaterThan 1 This object > Other Object. kNotOrderable 2 This class is not orderable.

◆ getAttr() [1/2]

virtual OdRxValue OdIfc4x4::IfcVirtualGridIntersection::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.

◆ getAttr() [2/2]

virtual OdRxValue OdIfc4x4::IfcVirtualGridIntersection::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.

◆ getInstanceType()

virtual OdDAI::Entity * OdIfc4x4::IfcVirtualGridIntersection::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.

◆ getIntersectingAxes()

void OdIfc4x4::IfcVirtualGridIntersection::getIntersectingAxes ( OdDAIObjectIds & IntersectingAxes) const

Gets the value of IntersectingAxes attribute. This attribute represents two grid axes which intersects at exactly one intersection. If attribute OffsetDistances is omitted, the intersection defines the placement or ref direction of a grid placement directly. If OffsetDistances are specified, the intersection is defined by the offset curves to the grid axes.

Parameters
IntersectingAxes[out] Receives the intersecting axes.

◆ getOffsetDistances()

void OdIfc4x4::IfcVirtualGridIntersection::getOffsetDistances ( OdArray< double > & OffsetDistances) const

Gets the value of OffsetDistances attribute. This attribute represents offset distances to the grid axes. If specified, it defines virtual offset curves to the grid axes. The intersection of the offset curves specify the virtual grid intersection.

Parameters
OffsetDistances[out] Receives the offset distances.

◆ inFields()

virtual OdResult OdIfc4x4::IfcVirtualGridIntersection::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.

◆ intersectingAxes()

OdDAI::ListOfOdDAIObjectId & OdIfc4x4::IfcVirtualGridIntersection::intersectingAxes ( )

Returns the value of IntersectingAxes attribute. This attribute represents two grid axes which intersect at exactly one intersection. If OffsetDistances attribute is omitted, the intersection defines the placement or ref direction of a grid placement directly. If OffsetDistances is specified, the intersection is defined by the offset curves to the grid axes.

Returns
Returns the value of IntersectingAxes attribute.

◆ isKindOf()

virtual bool OdIfc4x4::IfcVirtualGridIntersection::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.

◆ offsetDistances()

OdDAI::ListOfDouble & OdIfc4x4::IfcVirtualGridIntersection::offsetDistances ( )

Returns the value of OffsetDistances attribute. This attribute represents offset distances to the grid axes. If specified, it defines virtual offset curves to the grid axes. The intersection of the offset curves specify the virtual grid intersection.

Returns
Returns the value of OffsetDistances attribute.

◆ outFields()

virtual OdResult OdIfc4x4::IfcVirtualGridIntersection::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.

◆ putAttr() [1/2]

virtual bool OdIfc4x4::IfcVirtualGridIntersection::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.

◆ putAttr() [2/2]

virtual bool OdIfc4x4::IfcVirtualGridIntersection::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.

◆ setInverseCounterParts()

virtual void OdIfc4x4::IfcVirtualGridIntersection::setInverseCounterParts ( )
overridevirtual

Sets the object ID of this instance to inverse attributes of related instances according to schema specification of inverse attributes.

◆ testAttr() [1/2]

virtual bool OdIfc4x4::IfcVirtualGridIntersection::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.

◆ testAttr() [2/2]

virtual bool OdIfc4x4::IfcVirtualGridIntersection::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.

◆ type()

virtual OdIfc::OdIfcEntityType OdIfc4x4::IfcVirtualGridIntersection::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.

◆ unsetAttr() [1/2]

virtual void OdIfc4x4::IfcVirtualGridIntersection::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.

◆ unsetAttr() [2/2]

virtual void OdIfc4x4::IfcVirtualGridIntersection::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.

Member Data Documentation

◆ m_IntersectingAxes

OdDAI::ListOfOdDAIObjectId OdIfc4x4::IfcVirtualGridIntersection::m_IntersectingAxes
protected

Definition at line 256 of file IFC4X4/IfcVirtualGridIntersectionAutoImpl.h.

◆ m_OffsetDistances

OdDAI::ListOfDouble OdIfc4x4::IfcVirtualGridIntersection::m_OffsetDistances
protected

Definition at line 257 of file IFC4X4/IfcVirtualGridIntersectionAutoImpl.h.


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