Integration of OCCT 6.5.0 from SVN
[occt.git] / src / GeomLib / GeomLib_CheckBSplineCurve.cdl
1 -- File:        GeomLib_CheckBSplineCurve.cdl
2 -- Created:     Wed May 28 16:31:08 1997
3 -- Author:      Xavier BENVENISTE
4 --              <xab@zozox.paris1.matra-dtv.fr>
5 ---Copyright:    Matra Datavision 1997
6
7
8
9 class CheckBSplineCurve from GeomLib
10
11         ---Purpose: this class is used to  construct the BSpline curve
12         --          from an Approximation ( ApproxAFunction from AdvApprox).
13         
14
15 uses
16     Pnt             from gp,
17     BSplineCurve    from Geom,
18     BSplineCurve    from Geom2d
19
20 raises
21
22     NotDone    from StdFail,
23     OutOfRange from Standard
24     
25 is
26
27     Create( Curve : BSplineCurve from Geom ;
28             Tolerance        : Real from Standard ;
29             AngularTolerance : Real from Standard) 
30     returns CheckBSplineCurve from GeomLib;
31     
32     IsDone(me) returns Boolean from Standard
33         ---C++: inline
34     is static;
35     
36     NeedTangentFix(me; FirstFlag : in out Boolean from Standard ;
37                  SecondFlag : in out Boolean from Standard) ;
38     FixTangent  (me : in out ; FirstFlag : Boolean from Standard ;
39                                LastFlag  : Boolean from Standard)  ;     
40         
41     FixedTangent  (me : in out ; FirstFlag : Boolean from Standard ;
42                                LastFlag  : Boolean from Standard) 
43     ---Purpose:  modifies the curve
44     -- by fixing the first or the last tangencies 
45     -- 
46     returns BSplineCurve from Geom
47     raises
48         OutOfRange from Standard,
49         ---Purpose: if Index3D not in the Range [1,Nb3dSpaces]
50         NotDone    from StdFail
51         ---Purpose: if the Approx is not Done
52     is static;
53  
54
55 fields
56
57     myCurve            : BSplineCurve from Geom ;
58     myDone             : Boolean from Standard ;
59     myFixFirstTangent  : Boolean from Standard ;
60     myFixLastTangent   : Boolean from Standard ;
61     myAngularTolerance : Real from Standard ;
62     myTolerance        : Real from Standard ;
63     myFirstPole        : Pnt from gp ;
64         -- the second pole that controls first tangency
65     myLastPole         : Pnt from gp ;
66         -- the before last pole that controls last tangency
67
68 end CheckBSplineCurve;