File indexing completed on 2026-09-28 09:20:42
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _Intf_TangentZone_HeaderFile
0018 #define _Intf_TangentZone_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <Intf_SectionPoint.hxx>
0025 #include <NCollection_Sequence.hxx>
0026 #include <Standard_Boolean.hxx>
0027 class Intf_SectionPoint;
0028
0029
0030
0031 class Intf_TangentZone
0032 {
0033 public:
0034 DEFINE_STANDARD_ALLOC
0035
0036
0037 int NumberOfPoints() const;
0038
0039
0040
0041 Standard_EXPORT const Intf_SectionPoint& GetPoint(const int Index) const;
0042
0043
0044 Standard_EXPORT bool IsEqual(const Intf_TangentZone& Other) const;
0045
0046 bool operator==(const Intf_TangentZone& Other) const { return IsEqual(Other); }
0047
0048
0049 Standard_EXPORT bool Contains(const Intf_SectionPoint& ThePI) const;
0050
0051
0052
0053 void ParamOnFirst(double& paraMin, double& paraMax) const;
0054
0055
0056
0057 void ParamOnSecond(double& paraMin, double& paraMax) const;
0058
0059
0060
0061 Standard_EXPORT void InfoFirst(int& segMin, double& paraMin, int& segMax, double& paraMax) const;
0062
0063
0064
0065 Standard_EXPORT void InfoSecond(int& segMin, double& paraMin, int& segMax, double& paraMax) const;
0066
0067
0068
0069 Standard_EXPORT bool RangeContains(const Intf_SectionPoint& ThePI) const;
0070
0071
0072
0073 Standard_EXPORT bool HasCommonRange(const Intf_TangentZone& Other) const;
0074
0075
0076 Standard_EXPORT Intf_TangentZone();
0077
0078
0079 Standard_EXPORT void Append(const Intf_SectionPoint& Pi);
0080
0081
0082 Standard_EXPORT void Append(const Intf_TangentZone& Tzi);
0083
0084
0085 Standard_EXPORT bool Insert(const Intf_SectionPoint& Pi);
0086
0087
0088 Standard_EXPORT void PolygonInsert(const Intf_SectionPoint& Pi);
0089
0090
0091 Standard_EXPORT void InsertBefore(const int Index, const Intf_SectionPoint& Pi);
0092
0093
0094 Standard_EXPORT void InsertAfter(const int Index, const Intf_SectionPoint& Pi);
0095
0096 Standard_EXPORT void Dump(const int Indent) const;
0097
0098 private:
0099 NCollection_Sequence<Intf_SectionPoint> Result;
0100 double ParamOnFirstMin;
0101 double ParamOnFirstMax;
0102 double ParamOnSecondMin;
0103 double ParamOnSecondMax;
0104 };
0105
0106 #include <Intf_TangentZone.lxx>
0107
0108 #endif