File indexing completed on 2025-01-18 10:02:53
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016
0017 #ifndef _AdvApp2Var_Node_HeaderFile
0018 #define _AdvApp2Var_Node_HeaderFile
0019
0020 #include <Standard.hxx>
0021 #include <Standard_Handle.hxx>
0022 #include <Standard_Type.hxx>
0023 #include <TColgp_Array2OfPnt.hxx>
0024 #include <TColStd_Array2OfReal.hxx>
0025
0026
0027 class AdvApp2Var_Node : public Standard_Transient
0028 {
0029 DEFINE_STANDARD_RTTIEXT(AdvApp2Var_Node, Standard_Transient)
0030 public:
0031
0032 Standard_EXPORT AdvApp2Var_Node();
0033
0034 Standard_EXPORT AdvApp2Var_Node(const Standard_Integer iu, const Standard_Integer iv);
0035
0036 Standard_EXPORT AdvApp2Var_Node(const gp_XY& UV, const Standard_Integer iu, const Standard_Integer iv);
0037
0038
0039 const gp_XY& Coord() const { return myCoord; }
0040
0041
0042 void SetCoord (const Standard_Real x1, const Standard_Real x2)
0043 {
0044 myCoord.SetX(x1);
0045 myCoord.SetY(x2);
0046 }
0047
0048
0049 Standard_Integer UOrder() const { return myOrdInU; }
0050
0051
0052 Standard_Integer VOrder() const { return myOrdInV; }
0053
0054
0055 void SetPoint (const Standard_Integer iu, const Standard_Integer iv, const gp_Pnt& Pt)
0056 {
0057 myTruePoints.SetValue(iu, iv, Pt);
0058 }
0059
0060
0061 const gp_Pnt& Point (const Standard_Integer iu, const Standard_Integer iv) const
0062 {
0063 return myTruePoints.Value(iu, iv);
0064 }
0065
0066
0067 void SetError (const Standard_Integer iu, const Standard_Integer iv, const Standard_Real error)
0068 {
0069 myErrors.SetValue(iu, iv, error);
0070 }
0071
0072
0073 Standard_Real Error (const Standard_Integer iu, const Standard_Integer iv) const { return myErrors.Value(iu, iv); }
0074
0075
0076 AdvApp2Var_Node& operator= (const AdvApp2Var_Node& theOther)
0077 {
0078 myTruePoints = theOther.myTruePoints;
0079 myErrors = theOther.myErrors;
0080 myCoord = theOther.myCoord;
0081 myOrdInU = theOther.myOrdInU;
0082 myOrdInV = theOther.myOrdInV;
0083 return *this;
0084 }
0085
0086 private:
0087
0088 AdvApp2Var_Node (const AdvApp2Var_Node& theOther);
0089
0090 private:
0091
0092 TColgp_Array2OfPnt myTruePoints;
0093 TColStd_Array2OfReal myErrors;
0094 gp_XY myCoord;
0095 Standard_Integer myOrdInU;
0096 Standard_Integer myOrdInV;
0097
0098 };
0099
0100 #endif