Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:03:39

0001 // Created on: 1998-07-09
0002 // Created by: Stephanie HUMEAU
0003 // Copyright (c) 1998-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _GeomFill_FunctionGuide_HeaderFile
0018 #define _GeomFill_FunctionGuide_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_DefineAlloc.hxx>
0022 #include <Standard_Handle.hxx>
0023 
0024 #include <Standard_Boolean.hxx>
0025 #include <Standard_Real.hxx>
0026 #include <math_FunctionSetWithDerivatives.hxx>
0027 #include <Standard_Integer.hxx>
0028 #include <math_Vector.hxx>
0029 
0030 class Adaptor3d_Curve;
0031 class GeomFill_SectionLaw;
0032 class Geom_Curve;
0033 class Geom_Surface;
0034 class gp_Pnt;
0035 class math_Matrix;
0036 class gp_Vec;
0037 
0038 
0039 
0040 class GeomFill_FunctionGuide  : public math_FunctionSetWithDerivatives
0041 {
0042 public:
0043 
0044   DEFINE_STANDARD_ALLOC
0045 
0046   
0047   Standard_EXPORT GeomFill_FunctionGuide(const Handle(GeomFill_SectionLaw)& S, const Handle(Adaptor3d_Curve)& Guide, const Standard_Real ParamOnLaw = 0.0);
0048   
0049   Standard_EXPORT void SetParam (const Standard_Real Param, const gp_Pnt& Centre, const gp_XYZ& Dir, const gp_XYZ& XDir);
0050   
0051   //! returns the number of variables of the function.
0052   Standard_EXPORT virtual Standard_Integer NbVariables() const Standard_OVERRIDE;
0053   
0054   //! returns the number of equations of the function.
0055   Standard_EXPORT virtual Standard_Integer NbEquations() const Standard_OVERRIDE;
0056   
0057   //! computes the values <F> of the Functions for the
0058   //! variable <X>.
0059   //! Returns True if the computation was done successfully,
0060   //! False otherwise.
0061   Standard_EXPORT virtual Standard_Boolean Value (const math_Vector& X, math_Vector& F) Standard_OVERRIDE;
0062   
0063   //! returns the values <D> of the derivatives for the
0064   //! variable <X>.
0065   //! Returns True if the computation was done successfully,
0066   //! False otherwise.
0067   Standard_EXPORT virtual Standard_Boolean Derivatives (const math_Vector& X, math_Matrix& D) Standard_OVERRIDE;
0068   
0069   //! returns the values <F> of the functions and the derivatives
0070   //! <D> for the variable <X>.
0071   //! Returns True if the computation was done successfully,
0072   //! False otherwise.
0073   Standard_EXPORT virtual Standard_Boolean Values (const math_Vector& X, math_Vector& F, math_Matrix& D) Standard_OVERRIDE;
0074   
0075   //! returns the values <F> of the T derivatives for
0076   //! the parameter Param .
0077   Standard_EXPORT Standard_Boolean DerivT (const math_Vector& X, const gp_XYZ& DCentre, const gp_XYZ& DDir, math_Vector& DFDT);
0078   
0079   //! returns the values <F> of the T2 derivatives for
0080   //! the parameter Param .
0081   //! returns the values <D> of  the TX derivatives for
0082   //! the parameter Param .
0083   //! returns Boolean  is static;
0084   //! returns the values <T> of  the X2 derivatives for
0085   //! the parameter Param .
0086   //! returns Boolean  is static;
0087   Standard_EXPORT Standard_Boolean Deriv2T (const gp_XYZ& DCentre, const gp_XYZ& DDir, math_Vector& DFDT, math_Vector& D2FT);
0088 
0089 
0090 
0091 
0092 protected:
0093 
0094 
0095 
0096 
0097 
0098 private:
0099 
0100   
0101   Standard_EXPORT void DSDT (const Standard_Real U, const Standard_Real V, const gp_XYZ& DCentre, const gp_XYZ& DDir, gp_Vec& DSDT) const;
0102 
0103 
0104   Handle(Adaptor3d_Curve) TheGuide;
0105   Handle(GeomFill_SectionLaw) TheLaw;
0106   Standard_Boolean isconst;
0107   Handle(Geom_Curve) TheCurve;
0108   Handle(Geom_Curve) TheConst;
0109   Handle(Geom_Surface) TheSurface;
0110   Standard_Real First;
0111   Standard_Real Last;
0112   Standard_Real TheUonS;
0113   gp_XYZ Centre;
0114   gp_XYZ Dir;
0115 
0116 
0117 };
0118 
0119 
0120 
0121 
0122 
0123 
0124 
0125 #endif // _GeomFill_FunctionGuide_HeaderFile