File indexing completed on 2026-09-24 09:15:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #ifndef _Extrema_POnSurfParams_HeaderFile
0017 #define _Extrema_POnSurfParams_HeaderFile
0018
0019 #include <Extrema_ElementType.hxx>
0020 #include <Extrema_POnSurf.hxx>
0021 #include <Standard.hxx>
0022 #include <Standard_DefineAlloc.hxx>
0023
0024 class gp_Pnt;
0025
0026
0027
0028
0029 class Extrema_POnSurfParams : public Extrema_POnSurf
0030 {
0031 public:
0032 DEFINE_STANDARD_ALLOC
0033
0034
0035 Extrema_POnSurfParams()
0036 : mySqrDistance(0.),
0037 myElementType(Extrema_Node),
0038 myIndexU(0),
0039 myIndexV(0)
0040 {
0041 }
0042
0043
0044
0045 Extrema_POnSurfParams(const double theU, const double theV, const gp_Pnt& thePnt)
0046 : Extrema_POnSurf(theU, theV, thePnt),
0047 mySqrDistance(0.),
0048 myElementType(Extrema_Node),
0049 myIndexU(0),
0050 myIndexV(0)
0051 {
0052 }
0053
0054
0055
0056 void SetSqrDistance(const double theSqrDistance) { mySqrDistance = theSqrDistance; }
0057
0058
0059 double GetSqrDistance() const { return mySqrDistance; }
0060
0061
0062 void SetElementType(const Extrema_ElementType theElementType) { myElementType = theElementType; }
0063
0064
0065 Extrema_ElementType GetElementType() const { return myElementType; }
0066
0067
0068
0069 void SetIndices(const int theIndexU, const int theIndexV)
0070 {
0071 myIndexU = theIndexU;
0072 myIndexV = theIndexV;
0073 }
0074
0075
0076
0077 void GetIndices(int& theIndexU, int& theIndexV) const
0078 {
0079 theIndexU = myIndexU;
0080 theIndexV = myIndexV;
0081 }
0082
0083 private:
0084 double mySqrDistance;
0085 Extrema_ElementType myElementType;
0086 int myIndexU;
0087 int myIndexV;
0088 };
0089
0090 #endif