0024002: Overall code and build procedure refactoring -- automatic
[occt.git] / src / LProp3d / LProp3d_SLProps.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_SLProps_HeaderFile
17 #define _LProp3d_SLProps_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 #include <gp_Pnt.hxx>
26 #include <gp_Vec.hxx>
27 #include <gp_Dir.hxx>
28 #include <LProp_Status.hxx>
29 #include <Standard_Boolean.hxx>
30 class Adaptor3d_HSurface;
31 class LProp_BadContinuity;
32 class Standard_DomainError;
33 class Standard_OutOfRange;
34 class LProp_NotDefined;
35 class LProp3d_SurfaceTool;
36 class gp_Pnt;
37 class gp_Vec;
38 class gp_Dir;
39
40
41
42 class LProp3d_SLProps 
43 {
44 public:
45
46   DEFINE_STANDARD_ALLOC
47
48   
49   Standard_EXPORT LProp3d_SLProps(const Handle(Adaptor3d_HSurface)& S, const Standard_Real U, const Standard_Real V, const Standard_Integer N, const Standard_Real Resolution);
50   
51   Standard_EXPORT LProp3d_SLProps(const Handle(Adaptor3d_HSurface)& S, const Standard_Integer N, const Standard_Real Resolution);
52   
53   Standard_EXPORT LProp3d_SLProps(const Standard_Integer N, const Standard_Real Resolution);
54   
55   Standard_EXPORT void SetSurface (const Handle(Adaptor3d_HSurface)& S);
56   
57   Standard_EXPORT void SetParameters (const Standard_Real U, const Standard_Real V);
58   
59   Standard_EXPORT const gp_Pnt& Value() const;
60   
61   Standard_EXPORT const gp_Vec& D1U();
62   
63   Standard_EXPORT const gp_Vec& D1V();
64   
65   Standard_EXPORT const gp_Vec& D2U();
66   
67   Standard_EXPORT const gp_Vec& D2V();
68   
69   Standard_EXPORT const gp_Vec& DUV();
70   
71   Standard_EXPORT Standard_Boolean IsTangentUDefined();
72   
73   Standard_EXPORT void TangentU (gp_Dir& D);
74   
75   Standard_EXPORT Standard_Boolean IsTangentVDefined();
76   
77   Standard_EXPORT void TangentV (gp_Dir& D);
78   
79   Standard_EXPORT Standard_Boolean IsNormalDefined();
80   
81   Standard_EXPORT const gp_Dir& Normal();
82   
83   Standard_EXPORT Standard_Boolean IsCurvatureDefined();
84   
85   Standard_EXPORT Standard_Boolean IsUmbilic();
86   
87   Standard_EXPORT Standard_Real MaxCurvature();
88   
89   Standard_EXPORT Standard_Real MinCurvature();
90   
91   Standard_EXPORT void CurvatureDirections (gp_Dir& MaxD, gp_Dir& MinD);
92   
93   Standard_EXPORT Standard_Real MeanCurvature();
94   
95   Standard_EXPORT Standard_Real GaussianCurvature();
96
97
98
99
100 protected:
101
102
103
104
105
106 private:
107
108
109
110   Handle(Adaptor3d_HSurface) mySurf;
111   Standard_Real myU;
112   Standard_Real myV;
113   Standard_Integer myDerOrder;
114   Standard_Integer myCN;
115   Standard_Real myLinTol;
116   gp_Pnt myPnt;
117   gp_Vec myD1u;
118   gp_Vec myD1v;
119   gp_Vec myD2u;
120   gp_Vec myD2v;
121   gp_Vec myDuv;
122   gp_Dir myNormal;
123   Standard_Real myMinCurv;
124   Standard_Real myMaxCurv;
125   gp_Dir myDirMinCurv;
126   gp_Dir myDirMaxCurv;
127   Standard_Real myMeanCurv;
128   Standard_Real myGausCurv;
129   Standard_Integer mySignificantFirstDerivativeOrderU;
130   Standard_Integer mySignificantFirstDerivativeOrderV;
131   LProp_Status myUTangentStatus;
132   LProp_Status myVTangentStatus;
133   LProp_Status myNormalStatus;
134   LProp_Status myCurvatureStatus;
135
136
137 };
138
139
140
141
142
143
144
145 #endif // _LProp3d_SLProps_HeaderFile