Warning, file /include/opencascade/IntPatch_TheSegmentOfTheSOnBounds.hxx was not indexed
or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _IntPatch_TheSegmentOfTheSOnBounds_HeaderFile
0018 #define _IntPatch_TheSegmentOfTheSOnBounds_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023
0024 #include <IntPatch_ThePathPointOfTheSOnBounds.hxx>
0025
0026 class Standard_DomainError;
0027 class Adaptor3d_HVertex;
0028 class IntPatch_ThePathPointOfTheSOnBounds;
0029
0030 class IntPatch_TheSegmentOfTheSOnBounds
0031 {
0032 public:
0033 DEFINE_STANDARD_ALLOC
0034
0035
0036 Standard_EXPORT IntPatch_TheSegmentOfTheSOnBounds();
0037
0038
0039 void SetValue(const occ::handle<Adaptor2d_Curve2d>& A);
0040
0041
0042
0043 Standard_EXPORT void SetLimitPoint(const IntPatch_ThePathPointOfTheSOnBounds& V,
0044 const bool First);
0045
0046
0047
0048 const occ::handle<Adaptor2d_Curve2d>& Curve() const;
0049
0050
0051
0052 bool HasFirstPoint() const;
0053
0054
0055 const IntPatch_ThePathPointOfTheSOnBounds& FirstPoint() const;
0056
0057
0058
0059 bool HasLastPoint() const;
0060
0061
0062 const IntPatch_ThePathPointOfTheSOnBounds& LastPoint() const;
0063
0064 private:
0065 occ::handle<Adaptor2d_Curve2d> arc;
0066 bool hasfp;
0067 IntPatch_ThePathPointOfTheSOnBounds thefp;
0068 bool haslp;
0069 IntPatch_ThePathPointOfTheSOnBounds thelp;
0070 };
0071
0072
0073
0074
0075
0076 inline void IntPatch_TheSegmentOfTheSOnBounds::SetValue(const occ::handle<Adaptor2d_Curve2d>& A)
0077 {
0078 hasfp = false;
0079 haslp = false;
0080 arc = A;
0081 }
0082
0083 inline const occ::handle<Adaptor2d_Curve2d>& IntPatch_TheSegmentOfTheSOnBounds::Curve() const
0084 {
0085 return arc;
0086 }
0087
0088 inline bool IntPatch_TheSegmentOfTheSOnBounds::HasFirstPoint() const
0089 {
0090 return hasfp;
0091 }
0092
0093 inline const IntPatch_ThePathPointOfTheSOnBounds& IntPatch_TheSegmentOfTheSOnBounds::FirstPoint()
0094 const
0095 {
0096 if (!hasfp)
0097 {
0098 throw Standard_DomainError();
0099 }
0100 return thefp;
0101 }
0102
0103 inline bool IntPatch_TheSegmentOfTheSOnBounds::HasLastPoint() const
0104 {
0105 return haslp;
0106 }
0107
0108 inline const IntPatch_ThePathPointOfTheSOnBounds& IntPatch_TheSegmentOfTheSOnBounds::LastPoint()
0109 const
0110 {
0111 if (!haslp)
0112 {
0113 throw Standard_DomainError();
0114 }
0115 return thelp;
0116 }
0117
0118 #endif