0032630: Coding - get rid of unsused forward declarations [BinMDF to IFSelect]
[occt.git] / src / GeomFill / GeomFill_GuideTrihedronAC.hxx
1 // Created on: 1998-06-23
2 // Created by: Stephanie HUMEAU
3 // Copyright (c) 1998-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 _GeomFill_GuideTrihedronAC_HeaderFile
18 #define _GeomFill_GuideTrihedronAC_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
22
23 #include <Standard_Real.hxx>
24 #include <GeomFill_TrihedronWithGuide.hxx>
25 #include <Standard_Boolean.hxx>
26 #include <Standard_Integer.hxx>
27 #include <GeomAbs_Shape.hxx>
28 #include <TColStd_Array1OfReal.hxx>
29 class Approx_CurvlinFunc;
30 class GeomFill_TrihedronLaw;
31 class gp_Vec;
32
33
34 class GeomFill_GuideTrihedronAC;
35 DEFINE_STANDARD_HANDLE(GeomFill_GuideTrihedronAC, GeomFill_TrihedronWithGuide)
36
37 //! Trihedron in  the  case of a sweeping along a guide  curve.
38 //! defined by curviline  absciss
39 class GeomFill_GuideTrihedronAC : public GeomFill_TrihedronWithGuide
40 {
41
42 public:
43
44   
45   Standard_EXPORT GeomFill_GuideTrihedronAC(const Handle(Adaptor3d_Curve)& guide);
46   
47   Standard_EXPORT virtual void SetCurve (const Handle(Adaptor3d_Curve)& C) Standard_OVERRIDE;
48   
49   Standard_EXPORT virtual Handle(GeomFill_TrihedronLaw) Copy() const Standard_OVERRIDE;
50   
51   Standard_EXPORT virtual Handle(Adaptor3d_Curve) Guide() const Standard_OVERRIDE;
52   
53   Standard_EXPORT virtual Standard_Boolean D0 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& Normal, gp_Vec& BiNormal) Standard_OVERRIDE;
54   
55   Standard_EXPORT virtual Standard_Boolean D1 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& DTangent, gp_Vec& Normal, gp_Vec& DNormal, gp_Vec& BiNormal, gp_Vec& DBiNormal) Standard_OVERRIDE;
56   
57   Standard_EXPORT virtual Standard_Boolean D2 (const Standard_Real Param, gp_Vec& Tangent, gp_Vec& DTangent, gp_Vec& D2Tangent, gp_Vec& Normal, gp_Vec& DNormal, gp_Vec& D2Normal, gp_Vec& BiNormal, gp_Vec& DBiNormal, gp_Vec& D2BiNormal) Standard_OVERRIDE;
58   
59   //! Returns  the number  of  intervals for  continuity
60   //! <S>.
61   //! May be one if Continuity(me) >= <S>
62   Standard_EXPORT virtual Standard_Integer NbIntervals (const GeomAbs_Shape S) const Standard_OVERRIDE;
63   
64   //! Stores in <T> the  parameters bounding the intervals
65   //! of continuity <S>.
66   //!
67   //! The array must provide  enough room to  accommodate
68   //! for the parameters. i.e. T.Length() > NbIntervals()
69   Standard_EXPORT virtual void Intervals (TColStd_Array1OfReal& T, const GeomAbs_Shape S) const Standard_OVERRIDE;
70   
71   //! Sets the bounds of the parametric interval on
72   //! the function
73   //! This determines the derivatives in these values if the
74   //! function is not Cn.
75   Standard_EXPORT virtual void SetInterval (const Standard_Real First, const Standard_Real Last) Standard_OVERRIDE;
76   
77   //! Get average value of M(t) and V(t) it is usfull to
78   //! make fast approximation of rational  surfaces.
79   Standard_EXPORT virtual void GetAverageLaw (gp_Vec& ATangent, gp_Vec& ANormal, gp_Vec& ABiNormal) Standard_OVERRIDE;
80   
81   //! Say if the law is Constant
82   Standard_EXPORT virtual Standard_Boolean IsConstant() const Standard_OVERRIDE;
83   
84   //! Say if the law is defined, only by the 3d Geometry of
85   //! the set Curve
86   //! Return False by Default.
87   Standard_EXPORT virtual Standard_Boolean IsOnlyBy3dCurve() const Standard_OVERRIDE;
88   
89   Standard_EXPORT virtual void Origine (const Standard_Real OrACR1, const Standard_Real OrACR2) Standard_OVERRIDE;
90
91
92
93
94   DEFINE_STANDARD_RTTIEXT(GeomFill_GuideTrihedronAC,GeomFill_TrihedronWithGuide)
95
96 protected:
97
98
99
100
101 private:
102
103
104   Handle(Approx_CurvlinFunc) myGuideAC;
105   Standard_Real Lguide;
106   Handle(Approx_CurvlinFunc) myCurveAC;
107   Standard_Real L;
108   Handle(Adaptor3d_Curve) myCurve;
109   Standard_Real UTol;
110   Standard_Real STol;
111   Standard_Real Orig1;
112   Standard_Real Orig2;
113
114
115 };
116
117
118
119
120
121
122
123 #endif // _GeomFill_GuideTrihedronAC_HeaderFile