File indexing completed on 2025-01-18 10:03:38
0001
0002
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015 #ifndef _GeomConvert_FuncConeLSDist_HeaderFile
0016 #define _GeomConvert_FuncConeLSDist_HeaderFile
0017
0018 #include <Standard.hxx>
0019 #include <Standard_DefineAlloc.hxx>
0020
0021 #include <math_MultipleVarFunction.hxx>
0022 #include <TColgp_HArray1OfXYZ.hxx>
0023 #include <math_Vector.hxx>
0024 #include <gp_Dir.hxx>
0025
0026
0027
0028
0029
0030
0031 class GeomConvert_FuncConeLSDist : public math_MultipleVarFunction
0032 {
0033 public:
0034
0035 DEFINE_STANDARD_ALLOC
0036
0037
0038 Standard_EXPORT GeomConvert_FuncConeLSDist() {};
0039
0040 Standard_EXPORT GeomConvert_FuncConeLSDist(const Handle(TColgp_HArray1OfXYZ)& thePoints,
0041 const gp_Dir& theDir);
0042
0043 void SetPoints(const Handle(TColgp_HArray1OfXYZ)& thePoints)
0044 {
0045 myPoints = thePoints;
0046 }
0047
0048 void SetDir(const gp_Dir& theDir)
0049 {
0050 myDir = theDir;
0051 }
0052
0053
0054 Standard_EXPORT Standard_Integer NbVariables() const Standard_OVERRIDE;
0055
0056
0057 Standard_EXPORT Standard_Boolean Value(const math_Vector& X,Standard_Real& F) Standard_OVERRIDE;
0058
0059
0060 private:
0061
0062 Handle(TColgp_HArray1OfXYZ) myPoints;
0063 gp_Dir myDir;
0064
0065 };
0066 #endif