0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / LProp3d / LProp3d_SurfaceTool.hxx
1 // Created on: 2002-08-02
2 // Created by: Alexander KARTOMIN  (akm)
3 // Copyright (c) 2002-2014 OPEN CASCADE SAS
4 //
5 // This file is part of Open CASCADE Technology software library.
6 //
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
12 //
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
15
16 #ifndef _LProp3d_SurfaceTool_HeaderFile
17 #define _LProp3d_SurfaceTool_HeaderFile
18
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
22
23 #include <Standard_Real.hxx>
24 #include <Standard_Integer.hxx>
25 class Adaptor3d_HSurface;
26 class gp_Pnt;
27 class gp_Vec;
28
29
30
31 class LProp3d_SurfaceTool 
32 {
33 public:
34
35   DEFINE_STANDARD_ALLOC
36
37   
38   //! Computes the point <P> of parameter <U> and <V> on the
39   //! HSurface <S>.
40   Standard_EXPORT static void Value (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, gp_Pnt& P);
41   
42   //! Computes the point <P> and first derivative <D1*> of
43   //! parameter <U> and <V> on the HSurface <S>.
44   Standard_EXPORT static void D1 (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V);
45   
46   //! Computes the point <P>, the first derivative <D1*> and second
47   //! derivative <D2*> of parameter <U> and <V> on the HSurface <S>.
48   Standard_EXPORT static void D2 (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, gp_Pnt& P, gp_Vec& D1U, gp_Vec& D1V, gp_Vec& D2U, gp_Vec& D2V, gp_Vec& DUV);
49   
50   Standard_EXPORT static gp_Vec DN (const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, const Standard_Integer IU, const Standard_Integer IV);
51   
52   //! returns the order of continuity of the HSurface <S>.
53   //! returns 1 : first derivative only is computable
54   //! returns 2 : first and second derivative only are computable.
55   Standard_EXPORT static Standard_Integer Continuity (const Handle(Adaptor3d_HSurface)& S);
56   
57   //! returns the bounds of the HSurface.
58   Standard_EXPORT static void Bounds (const Handle(Adaptor3d_HSurface)& S, Standard_Real& U1, Standard_Real& V1, Standard_Real& U2, Standard_Real& V2);
59
60
61
62
63 protected:
64
65
66
67
68
69 private:
70
71
72
73
74
75 };
76
77
78
79
80
81
82
83 #endif // _LProp3d_SurfaceTool_HeaderFile