File indexing completed on 2026-07-29 09:14:24
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef AppCont_Function_HeaderFile
0016 #define AppCont_Function_HeaderFile
0017
0018 #include <gp_Pnt.hxx>
0019 #include <gp_Pnt2d.hxx>
0020 #include <gp_Vec.hxx>
0021 #include <gp_Vec2d.hxx>
0022 #include <NCollection_Array1.hxx>
0023 #include <Standard_Integer.hxx>
0024
0025
0026
0027 class AppCont_Function
0028 {
0029 public:
0030 AppCont_Function()
0031 {
0032 myNbPnt = -1;
0033 myNbPnt2d = -1;
0034 }
0035
0036
0037 void GetNumberOfPoints(Standard_Integer& theNbPnt, Standard_Integer& theNbPnt2d) const
0038 {
0039 theNbPnt = myNbPnt;
0040 theNbPnt2d = myNbPnt2d;
0041 }
0042
0043
0044 Standard_Integer GetNbOf3dPoints() const { return myNbPnt; }
0045
0046
0047 Standard_Integer GetNbOf2dPoints() const { return myNbPnt2d; }
0048
0049
0050 virtual ~AppCont_Function() {}
0051
0052
0053 virtual Standard_Real FirstParameter() const = 0;
0054
0055
0056 virtual Standard_Real LastParameter() const = 0;
0057
0058
0059 virtual Standard_Boolean Value(const Standard_Real theU,
0060 NCollection_Array1<gp_Pnt2d>& thePnt2d,
0061 NCollection_Array1<gp_Pnt>& thePnt) const = 0;
0062
0063
0064 virtual Standard_Boolean D1(const Standard_Real theU,
0065 NCollection_Array1<gp_Vec2d>& theVec2d,
0066 NCollection_Array1<gp_Vec>& theVec) const = 0;
0067
0068
0069
0070
0071 virtual void PeriodInformation(const Standard_Integer ,
0072 Standard_Boolean& IsPeriodic,
0073 Standard_Real& thePeriod) const
0074 {
0075 IsPeriodic = Standard_False;
0076 thePeriod = 0.0;
0077 };
0078
0079 protected:
0080 Standard_Integer myNbPnt;
0081 Standard_Integer myNbPnt2d;
0082 };
0083
0084 #endif