/////////////////////////////////////////////////////////////////////////////// // Copyright (C) 2002-2025, Open Design Alliance (the "Alliance"). // All rights reserved. // // This software and its documentation and related materials are owned by // the Alliance. The software may only be incorporated into application // programs owned by members of the Alliance, subject to a signed // Membership Agreement and Supplemental Software License Agreement with the // Alliance. The structure and organization of this software are the valuable // trade secrets of the Alliance and its suppliers. The software is also // protected by copyright law and international treaty provisions. Application // programs incorporating this software must include the following statement // with their copyright notices: // // This application incorporates Open Design Alliance software pursuant to a license // agreement with Open Design Alliance. // Open Design Alliance Copyright (C) 2002-2025 by Open Design Alliance. // All rights reserved. // // By use of this software, its documentation or related materials, you // acknowledge and accept the above terms. /////////////////////////////////////////////////////////////////////////////// // This file is generated automatically. #ifndef _IFC4X2_IFCINDEXEDPOLYCURVE_AUTO_IMPL_H #define _IFC4X2_IFCINDEXEDPOLYCURVE_AUTO_IMPL_H #include "IfcBoundedCurveAutoImpl.h" #include "IfcCartesianPointListAutoImpl.h" #include "TD_PackPush.h" /** \details The namespace contains schema-dependent classes, definitions and sub routines for work with IFC4X2 express schema definitions. */ namespace OdIfc4x2 { /** \details The IfcIndexedPolyCurve is a bounded curve with only linear and circular arc segments defined by a Cartesian point list and an optional list of segments, providing indices into the Cartesian point list. In the case that the list of Segments is not provided, all points in the IfcCartesianPointList are connected by straight line segments in the order they appear in the IfcCartesianPointList. In the case that the list of Segments is provided, it is interpreted as such: * Segment of IfcLineIndex type: The first index is the start point of the polyline segment, the last index is the end point of the polyline segment. If more than two indices are included, then all intermediate indices define intermediate points of the polyline connected in the order of appearance of the indices; * Segment of IfcArcIndex type: The first index is the start point of the circular arc, the second index is a point on arc, the third index is the end point of the circular arc. The three points are not co-linear. In case that this informal proposition is not maintained, the arc segment are treated as a polyline segment. */ class IFC4X2_EXPORT IfcIndexedPolyCurve : public IfcBoundedCurve { //DOM-IGNORE-BEGIN OD_EXP_DECLARE_MEMBERS(OdIfc4x2::IfcIndexedPolyCurve); //DOM-IGNORE-END public: // // OdDAI early binding accessors // /** \details Returns the value of Points attribute. This attribute represents a list of points, provided by a point list of either two or three dimensions, that is used to define the polycurve. If the Segments attribute is not provided, the polycurve is generated as a polyline by connecting the points in the order of their appearance in the point list. If the Segments attribute is provided, the segments determine how the points are to be used to create straight and circular arc segments. \returns Returns the value of Points attribute. */ const OdDAIObjectId& getPoints() const; /** \details Sets the value of Points attribute. This attribute represents a list of points, provided by a point list of either two or three dimensions, that is used to define the polycurve. If the Segments attribute is not provided, the polycurve is generated as a polyline by connecting the points in the order of their appearance in the point list. If the attribute Segments is provided, the segments determine how the points are to be used to create straight and circular arc segments. \param Points [in] Points to set. */ void setPoints(const OdDAIObjectId& Points); /** \details Gets the value of Segments attribute. This attribute represents list of straight line and circular arc segments, each providing a list of indices into the Cartesian point list. Indices should preserve consecutive connectivity between the segments, the start index of the next segment is identical with the end index of the previous segment. \param Segments [out] Receives the Segments attribute. */ void getSegments(OdArray& Segments) const; /** \details Gets the value of Segments attribute. This attribute represents list of straight line and circular arc segments, each providing a list of indices into the Cartesian point list. Indices should preserve consecutive connectivity between the segments, the start index of the next segment is identical with the end index of the previous segment. \param Segments [out] Receives the Segments attribute. */ void getSegmentsWrapperArray(OdArray& Segments) const; /** \details Returns the value of Segments attribute. This attribute represents list of straight line and circular arc segments, each providing a list of indices into the Cartesian point list. Indices should preserve consecutive connectivity between the segments, the start index of the next segment is identical with the end index of the previous segment. \returns Returns the value of Segments attribute. */ OdDAI::ListOfSelect& segments(); /** \details Returns the value of SelfIntersect attribute. This attribute indicates whether the curve intersects itself. \returns Returns the value of SelfIntersect attribute. */ OdDAI::Boolean getSelfIntersect() const; /** \details Sets the value of SelfIntersect attribute. This attribute indicates whether the curve intersects itself. \param SelfIntersect [in] SelfIntersect attribute to set. */ void setSelfIntersect(OdDAI::Boolean SelfIntersect); public: /** \details Default constructor for the IfcIndexedPolyCurve class. */ IfcIndexedPolyCurve(); /** \details Reads object's data from the specified filer. \param 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. */ virtual OdResult inFields(OdDAI::OdSpfFilerBase* rdFiler) override; /** \details Writes object's data the the specified filer. \param 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. */ virtual OdResult outFields(OdDAI::OdSpfFilerBase* wrFiler) override; /** \details Returns a type of a class instance. \returns Pointer to the OdDAI::Entity type that determines an entity definition within a schema. */ virtual OdDAI::Entity* getInstanceType() const override; /** \details Returns an attribute value for the specified attribute name. \param attrName [in] Name of an attribute to query. \returns OdRxValue object that represents a generic variant type value. */ virtual OdRxValue getAttr(const char * attrName) const override; /** \details Resets a value for the specified attribute. \param explicitAttrName [in] Explicit name of the attribute to reset. */ virtual void unsetAttr(const char * explicitAttrName) override; /** \details Checks whether the specified attribute is set. \param explicitAttrName [in] Explicit name of the attribute to test. \returns true if the specified attribute is set, false otherwise. */ virtual bool testAttr(const char * explicitAttrName) const override; /** \details Sets the specified attribute with a given value. \param explicitAttrName [in] Explicit name of the attribute to set. \param val [in] Value to set. \returns true if the value is successfully set for the specified attribute, false otherwise. */ virtual bool putAttr(const char * explicitAttrName, const OdRxValue &val) override; /** \details Checks whether the specified instance is the object derived from or belongs to this class. \param entityType [in] Entity to check. \returns true if the specified instance is the object derived from or belongs to this class, false otherwise. */ virtual bool isKindOf(OdIfc::OdIfcEntityType entityType) const override; /** \details Returns the type of this entity. \returns A value of the OdIfc::OdIfcEntityType type that represents type of this entity. */ virtual OdIfc::OdIfcEntityType type() const override; /** \details Returns an attribute value for the specified attribute definition. \param attrDef [in] Attribute definition to query. \returns OdRxValue object that represents a generic variant type value. */ virtual OdRxValue getAttr(const OdIfc::OdIfcAttribute attrDef) const override; /** \details Resets a value for the specified attribute. \param explicitAttrDef [in] Explicit definition that represents an attribute to reset. */ virtual void unsetAttr(const OdIfc::OdIfcAttribute explicitAttrDef) override; /** \details Checks whether the specified attribute is set. \param explicitAttrDef [in] Attribute definition to test. \returns true if the specified attribute is set, false otherwise. */ virtual bool testAttr(const OdIfc::OdIfcAttribute explicitAttrDef) const override; /** \details Sets the specified attribute with a given value. \param explicitAttrDef [in] Explicit attribute definition to set. \param val [in] Value to set. \returns true if the value is successfully set for the specified attribute, false otherwise. */ virtual bool putAttr(const OdIfc::OdIfcAttribute explicitAttrDef, const OdRxValue &val) override; protected: // Fields declaration: OdDAIObjectId m_Points; // IfcCartesianPointList OdDAI::ListOfSelect m_Segments; // LIST [1:?] of IfcSegmentIndexSelect [optional] OdDAI::Boolean m_SelfIntersect; // IfcBoolean [optional] }; /** \details A data type that represents a smart pointer to a IfcIndexedPolyCurve object. */ typedef OdSmartPtr IfcIndexedPolyCurvePtr; } // namespace #include "TD_PackPop.h" #endif // _IFC4X2_IFCINDEXEDPOLYCURVE_AUTO_IMPL_H