File indexing completed on 2026-09-10 09:17:18
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Intf_SectionLine_HeaderFile
0018 #define _Intf_SectionLine_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Intf_SeqOfSectionPoint.hxx>
0025 #include <Standard_Boolean.hxx>
0026 class Intf_SectionPoint;
0027
0028
0029
0030 class Intf_SectionLine
0031 {
0032 public:
0033 DEFINE_STANDARD_ALLOC
0034
0035
0036 Standard_Integer NumberOfPoints() const;
0037
0038
0039
0040 Standard_EXPORT const Intf_SectionPoint& GetPoint(const Standard_Integer Index) const;
0041
0042
0043 Standard_EXPORT Standard_Boolean IsClosed() const;
0044
0045
0046 Standard_EXPORT Standard_Boolean Contains(const Intf_SectionPoint& ThePI) const;
0047
0048
0049
0050 Standard_EXPORT Standard_Integer IsEnd(const Intf_SectionPoint& ThePI) const;
0051
0052
0053 Standard_EXPORT Standard_Boolean IsEqual(const Intf_SectionLine& Other) const;
0054
0055 Standard_Boolean operator==(const Intf_SectionLine& Other) const { return IsEqual(Other); }
0056
0057
0058 Standard_EXPORT Intf_SectionLine();
0059
0060
0061 Standard_EXPORT Intf_SectionLine(const Intf_SectionLine& Other);
0062
0063
0064 Intf_SectionLine& operator=(const Intf_SectionLine& theOther)
0065 {
0066
0067 myPoints = theOther.myPoints;
0068 return *this;
0069 }
0070
0071
0072 Standard_EXPORT void Append(const Intf_SectionPoint& Pi);
0073
0074
0075
0076 Standard_EXPORT void Append(Intf_SectionLine& LS);
0077
0078
0079 Standard_EXPORT void Prepend(const Intf_SectionPoint& Pi);
0080
0081
0082
0083 Standard_EXPORT void Prepend(Intf_SectionLine& LS);
0084
0085
0086 Standard_EXPORT void Reverse();
0087
0088
0089 Standard_EXPORT void Close();
0090
0091 Standard_EXPORT void Dump(const Standard_Integer Indent) const;
0092
0093 protected:
0094 private:
0095 Intf_SeqOfSectionPoint myPoints;
0096 Standard_Boolean closed;
0097 };
0098
0099 #include <Intf_SectionLine.lxx>
0100
0101 #endif