0032832: Coding - get rid of unused headers [FairCurve to GeomAPI]
[occt.git] / src / Geom2dLProp / Geom2dLProp_CurAndInf2d.hxx
1 // Created on: 1994-09-06
2 // Created by: Yves FRICAUD
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 _Geom2dLProp_CurAndInf2d_HeaderFile
18 #define _Geom2dLProp_CurAndInf2d_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <LProp_CurAndInf.hxx>
25 class Geom2d_Curve;
26
27
28 //! An algorithm for computing local properties of a curve.
29 //! These properties include:
30 //! - the maximum and minimum curvatures
31 //! - the inflection points.
32 //! A CurAndInf2d object provides the framework for:
33 //! - defining the curve to be analyzed
34 //! - implementing the computation algorithms
35 //! - consulting the results.
36 class Geom2dLProp_CurAndInf2d  : public LProp_CurAndInf
37 {
38 public:
39
40   DEFINE_STANDARD_ALLOC
41
42   
43   //! Initializes the framework.
44   //! Note: The curve on which the local properties are
45   //! computed is defined using one of the following
46   //! functions: Perform, PerformCurExt or PerformInf.
47   Standard_EXPORT Geom2dLProp_CurAndInf2d();
48   
49   //! For the curve C, Computes both the
50   //! inflection points and the maximum and minimum curvatures.
51   Standard_EXPORT void Perform (const Handle(Geom2d_Curve)& C);
52   
53   //! For the curve C, Computes the locals extremas of curvature.
54   Standard_EXPORT void PerformCurExt (const Handle(Geom2d_Curve)& C);
55   
56   //! For the curve C, Computes the inflections.
57   //! After computation, the following functions can be used:
58   //! - IsDone to check if the computation was successful
59   //! - NbPoints to obtain the number of computed particular points
60   //! - Parameter to obtain the parameter on the curve for
61   //! each particular point
62   //! - Type to check if the point is an inflection point or an
63   //! extremum of curvature of the curve C.
64   //! Warning
65   //! These functions can be used to analyze a series of
66   //! curves, however it is necessary to clear the table of
67   //! results between each computation.
68   Standard_EXPORT void PerformInf (const Handle(Geom2d_Curve)& C);
69   
70   //! True if the solutions are found.
71   Standard_EXPORT Standard_Boolean IsDone() const;
72
73
74
75
76 protected:
77
78
79
80
81
82 private:
83
84
85
86   Standard_Boolean isDone;
87
88
89 };
90
91
92
93
94
95
96
97 #endif // _Geom2dLProp_CurAndInf2d_HeaderFile