File indexing completed on 2025-01-18 10:04:08
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
0031 class Intf_SectionLine
0032 {
0033 public:
0034
0035 DEFINE_STANDARD_ALLOC
0036
0037
0038
0039 Standard_Integer NumberOfPoints() const;
0040
0041
0042
0043 Standard_EXPORT const Intf_SectionPoint& GetPoint (const Standard_Integer Index) const;
0044
0045
0046 Standard_EXPORT Standard_Boolean IsClosed() const;
0047
0048
0049 Standard_EXPORT Standard_Boolean Contains (const Intf_SectionPoint& ThePI) const;
0050
0051
0052
0053 Standard_EXPORT Standard_Integer IsEnd (const Intf_SectionPoint& ThePI) const;
0054
0055
0056 Standard_EXPORT Standard_Boolean IsEqual (const Intf_SectionLine& Other) const;
0057 Standard_Boolean operator == (const Intf_SectionLine& Other) const
0058 {
0059 return IsEqual(Other);
0060 }
0061
0062
0063 Standard_EXPORT Intf_SectionLine();
0064
0065
0066 Standard_EXPORT Intf_SectionLine(const Intf_SectionLine& Other);
0067
0068
0069 Intf_SectionLine& operator= (const Intf_SectionLine& theOther)
0070 {
0071
0072 myPoints = theOther.myPoints;
0073 return *this;
0074 }
0075
0076
0077 Standard_EXPORT void Append (const Intf_SectionPoint& Pi);
0078
0079
0080
0081 Standard_EXPORT void Append (Intf_SectionLine& LS);
0082
0083
0084 Standard_EXPORT void Prepend (const Intf_SectionPoint& Pi);
0085
0086
0087
0088 Standard_EXPORT void Prepend (Intf_SectionLine& LS);
0089
0090
0091 Standard_EXPORT void Reverse();
0092
0093
0094 Standard_EXPORT void Close();
0095
0096 Standard_EXPORT void Dump (const Standard_Integer Indent) const;
0097
0098
0099
0100
0101 protected:
0102
0103
0104
0105
0106
0107 private:
0108
0109
0110
0111 Intf_SeqOfSectionPoint myPoints;
0112 Standard_Boolean closed;
0113
0114
0115 };
0116
0117
0118 #include <Intf_SectionLine.lxx>
0119
0120
0121
0122
0123
0124 #endif