0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / BRepLProp / BRepLProp_SLProps.hxx
1 // Created on: 1994-02-24
2 // Created by: Laurent BOURESCHE
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
5 //
6 // This file is part of Open CASCADE Technology software library.
7 //
8 // This library is free software; you can redistribute it and/or modify it under
9 // the terms of the GNU Lesser General Public License version 2.1 as published
10 // by the Free Software Foundation, with special exception defined in the file
11 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
12 // distribution for complete text of the license and disclaimer of any warranty.
13 //
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
16
17 #ifndef _BRepLProp_SLProps_HeaderFile
18 #define _BRepLProp_SLProps_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <BRepAdaptor_Surface.hxx>
25 #include <Standard_Real.hxx>
26 #include <Standard_Integer.hxx>
27 #include <gp_Pnt.hxx>
28 #include <gp_Vec.hxx>
29 #include <gp_Dir.hxx>
30 #include <LProp_Status.hxx>
31 #include <Standard_Boolean.hxx>
32 class LProp_BadContinuity;
33 class Standard_DomainError;
34 class Standard_OutOfRange;
35 class LProp_NotDefined;
36 class BRepAdaptor_Surface;
37 class BRepLProp_SurfaceTool;
38 class gp_Pnt;
39 class gp_Vec;
40 class gp_Dir;
41
42
43
44 class BRepLProp_SLProps 
45 {
46 public:
47
48   DEFINE_STANDARD_ALLOC
49
50   
51   Standard_EXPORT BRepLProp_SLProps(const BRepAdaptor_Surface& S, const Standard_Real U, const Standard_Real V, const Standard_Integer N, const Standard_Real Resolution);
52   
53   Standard_EXPORT BRepLProp_SLProps(const BRepAdaptor_Surface& S, const Standard_Integer N, const Standard_Real Resolution);
54   
55   Standard_EXPORT BRepLProp_SLProps(const Standard_Integer N, const Standard_Real Resolution);
56   
57   Standard_EXPORT void SetSurface (const BRepAdaptor_Surface& S);
58   
59   Standard_EXPORT void SetParameters (const Standard_Real U, const Standard_Real V);
60   
61   Standard_EXPORT const gp_Pnt& Value() const;
62   
63   Standard_EXPORT const gp_Vec& D1U();
64   
65   Standard_EXPORT const gp_Vec& D1V();
66   
67   Standard_EXPORT const gp_Vec& D2U();
68   
69   Standard_EXPORT const gp_Vec& D2V();
70   
71   Standard_EXPORT const gp_Vec& DUV();
72   
73   Standard_EXPORT Standard_Boolean IsTangentUDefined();
74   
75   Standard_EXPORT void TangentU (gp_Dir& D);
76   
77   Standard_EXPORT Standard_Boolean IsTangentVDefined();
78   
79   Standard_EXPORT void TangentV (gp_Dir& D);
80   
81   Standard_EXPORT Standard_Boolean IsNormalDefined();
82   
83   Standard_EXPORT const gp_Dir& Normal();
84   
85   Standard_EXPORT Standard_Boolean IsCurvatureDefined();
86   
87   Standard_EXPORT Standard_Boolean IsUmbilic();
88   
89   Standard_EXPORT Standard_Real MaxCurvature();
90   
91   Standard_EXPORT Standard_Real MinCurvature();
92   
93   Standard_EXPORT void CurvatureDirections (gp_Dir& MaxD, gp_Dir& MinD);
94   
95   Standard_EXPORT Standard_Real MeanCurvature();
96   
97   Standard_EXPORT Standard_Real GaussianCurvature();
98
99
100
101
102 protected:
103
104
105
106
107
108 private:
109
110
111
112   BRepAdaptor_Surface mySurf;
113   Standard_Real myU;
114   Standard_Real myV;
115   Standard_Integer myDerOrder;
116   Standard_Integer myCN;
117   Standard_Real myLinTol;
118   gp_Pnt myPnt;
119   gp_Vec myD1u;
120   gp_Vec myD1v;
121   gp_Vec myD2u;
122   gp_Vec myD2v;
123   gp_Vec myDuv;
124   gp_Dir myNormal;
125   Standard_Real myMinCurv;
126   Standard_Real myMaxCurv;
127   gp_Dir myDirMinCurv;
128   gp_Dir myDirMaxCurv;
129   Standard_Real myMeanCurv;
130   Standard_Real myGausCurv;
131   Standard_Integer mySignificantFirstDerivativeOrderU;
132   Standard_Integer mySignificantFirstDerivativeOrderV;
133   LProp_Status myUTangentStatus;
134   LProp_Status myVTangentStatus;
135   LProp_Status myNormalStatus;
136   LProp_Status myCurvatureStatus;
137
138
139 };
140
141
142
143
144
145
146
147 #endif // _BRepLProp_SLProps_HeaderFile