49e48786f4d6b21af4b74db13bba924a78b402d7
[occt.git] / src / Geom2dConvert / Geom2dConvert_CompCurveToBSplineCurve.cdl
1 -- Created on: 1997-04-29
2 -- Created by: Stagiaire Francois DUMONT
3 -- Copyright (c) 1997-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 class CompCurveToBSplineCurve from Geom2dConvert 
18
19             ---Purpose: Concat sevral curve in an BSplineCurve
20
21 uses
22  ParameterisationType from Convert,
23  BoundedCurve from Geom2d,
24  BSplineCurve from Geom2d
25
26 --raises
27
28 is
29
30     Create(Parameterisation : ParameterisationType from Convert = Convert_TgtThetaOver2);
31     ---Purpose: Initialize the algorithme
32     --        - Parameterisation is used to convert
33
34     Create (BasisCurve : BoundedCurve from Geom2d; 
35             Parameterisation : ParameterisationType from Convert 
36                        =  Convert_TgtThetaOver2)
37             ---Purpose: Initialize the algorithme with one curve
38             --        - Parameterisation is used to convert 
39     returns CompCurveToBSplineCurve;
40
41     Add (me : in out; 
42          NewCurve :  BoundedCurve from Geom2d;
43          Tolerance:  Real from Standard;
44          After      : Boolean from Standard = Standard_False)
45             ---Purpose: Append a curve in the BSpline
46             --          Return False if the curve is not G0 with the BSplineCurve.
47             --          Tolerance is used to check continuity and decrease 
48             --          Multiplicty at the common Knot 
49             --          After is usefull if BasisCurve is a closed curve .
50     returns Boolean;
51        
52     
53     Add (me : in out; 
54          FirstCurve : in out BSplineCurve from Geom2d;
55          SecondCurve: in out BSplineCurve from Geom2d;
56          After      : Boolean from Standard)
57             ---Purpose: Concat two BSplineCurves.
58         is private;    
59     
60     BSplineCurve(me) returns BSplineCurve from Geom2d;
61
62     Clear(me : in out);
63     ---Purpose: Clear result curve
64
65 fields
66  myCurve :  BSplineCurve from Geom2d;
67  myTol   :  Real;
68  myType  :  ParameterisationType from Convert;
69
70 end CompCurveToBSplineCurve;