0024057: Eliminate compiler warning C4100 in MSVC++ with warning level 4
[occt.git] / src / IGESSelect / IGESSelect_SplineToBSpline.cdl
CommitLineData
b311480e 1-- Created on: 1994-06-02
2-- Created by: Christian CAILLET
3-- Copyright (c) 1994-1999 Matra Datavision
4-- Copyright (c) 1999-2012 OPEN CASCADE SAS
5--
6-- The content of this file is subject to the Open CASCADE Technology Public
7-- License Version 6.5 (the "License"). You may not use the content of this file
8-- except in compliance with the License. Please obtain a copy of the License
9-- at http://www.opencascade.org and read it completely before using this file.
10--
11-- The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
12-- main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
13--
14-- The Original Code and all software distributed under the License is
15-- distributed on an "AS IS" basis, without warranty of any kind, and the
16-- Initial Developer hereby disclaims all such warranties, including without
17-- limitation, any warranties of merchantability, fitness for a particular
18-- purpose or non-infringement. Please see the License for the specific terms
19-- and conditions governing the rights and limitations under the License.
20
7fd59977 21
22
23class SplineToBSpline from IGESSelect inherits Transformer
24
25 ---Purpose : This type of Transformer allows to convert Spline Curves (IGES
26 -- type 112) and Surfaces (IGES Type 126) to BSpline Curves (IGES
27 -- type 114) and Surfac (IGES Type 128). All other entities are
28 -- rebuilt as identical but on the basis of this conversion.
29 --
30 -- It also gives an option to, either convert as such (i.e. each
31 -- starting part of the spline becomes a segment of the bspline,
32 -- with continuity C0 between segments), or try to increase
33 -- continuity as far as possible to C1 or to C2.
34 --
35 -- It does nothing if the starting model contains no Spline
36 -- Curve (IGES Type 112) or Surface (IGES Type 126). Else,
37 -- converting and rebuilding implies copying of entities.
38
39uses AsciiString from TCollection,
40 CheckIterator, Graph, CopyControl, Protocol from Interface, InterfaceModel
41
42is
43
44 Create (tryC2 : Boolean) returns mutable SplineToBSpline;
45 ---Purpose : Creates a Transformer SplineToBSpline. If <tryC2> is True,
46 -- it will in addition try to upgrade continuity up to C2.
47
48 OptionTryC2 (me) returns Boolean;
49 ---Purpose : Returns the option TryC2 given at creation time
50
51 Perform (me : mutable; G : Graph; protocol : Protocol from Interface;
52 checks : in out CheckIterator;
53 newmod : out mutable InterfaceModel) returns Boolean;
54 ---Purpose : Performs the transformation, if there is at least one Spline
55 -- Curve (112) or Surface (126). Does nothing if there is none.
56
57 Updated (me; entfrom : Transient; entto : out mutable Transient)
58 returns Boolean;
59 ---Purpose : Returns the transformed entities.
60 -- If original data contained no Spline Curve or Surface,
61 -- the result is identity : <entto> = <entfrom>
62 -- Else, the copied counterpart is returned : for a Spline Curve
63 -- or Surface, it is a converted BSpline Curve or Surface. Else,
64 -- it is the result of general service Copy (rebuilt as necessary
65 -- by BSPlines replacing Splines).
66
67 Label (me) returns AsciiString from TCollection;
68 ---Purpose : Returns a text which defines the way a Transformer works :
69 -- "Conversion Spline to BSpline" and as opted,
70 -- " trying to upgrade continuity"
71
72fields
73
74 thetryc2 : Boolean;
75 thefound : Boolean; -- at least one Spline found and converted
76 themap : CopyControl;
77
78end SplineToBSpline;