Test for 0022778: Bug in BRepMesh
[occt.git] / src / StepToTopoDS / StepToTopoDS_Builder.cdl
1 -- Created on: 1994-12-16
2 -- Created by: Frederic MAUPAS
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
21
22 class Builder from StepToTopoDS
23     inherits Root from StepToTopoDS
24     
25     ---Purpose:
26     --         
27
28
29 uses
30
31     ManifoldSolidBrep           from StepShape,
32     BrepWithVoids               from StepShape,
33     FacetedBrep                 from StepShape,
34     FacetedBrepAndBrepWithVoids from StepShape,
35     ShellBasedSurfaceModel      from StepShape,
36     EdgeBasedWireframeModel     from StepShape,
37     FaceBasedSurfaceModel       from StepShape,
38     GeometricSet                from StepShape,
39     Shape                       from TopoDS,
40     BuilderError                from StepToTopoDS,
41     TransientProcess            from Transfer,
42     NMTool                      from StepToTopoDS
43     
44     raises NotDone from StdFail
45      
46 is 
47
48     Create returns Builder from StepToTopoDS;
49     
50     Create (S  : ManifoldSolidBrep from StepShape;
51             TP : TransientProcess  from Transfer )
52         returns Builder from StepToTopoDS;
53      
54     Create (S  : BrepWithVoids from StepShape;
55             TP : TransientProcess  from Transfer )
56         returns Builder from StepToTopoDS;
57
58     Create ( S : FacetedBrep from StepShape;
59             TP : TransientProcess  from Transfer )
60         returns Builder from StepToTopoDS;
61
62     Create (S  : FacetedBrepAndBrepWithVoids from StepShape;
63             TP : TransientProcess  from Transfer )
64         returns Builder from StepToTopoDS;
65
66     Create (S      : ShellBasedSurfaceModel from StepShape;
67             TP     : TransientProcess  from Transfer;
68             NMTool : in out NMTool from StepToTopoDS )
69         returns Builder from StepToTopoDS;
70
71     Create ( S : GeometricSet from StepShape;
72             TP : TransientProcess  from Transfer )
73         returns Builder from StepToTopoDS;
74
75     Init (me : in out;
76           S  : ManifoldSolidBrep from StepShape;
77           TP : TransientProcess  from Transfer );
78
79     Init (me : in out;
80           S  : BrepWithVoids from StepShape;
81           TP : TransientProcess  from Transfer );
82
83     Init (me : in out;
84           S  : FacetedBrep from StepShape;
85           TP : TransientProcess  from Transfer );
86
87     Init (me : in out;
88           S  : FacetedBrepAndBrepWithVoids from StepShape;
89           TP : TransientProcess  from Transfer );
90           
91     Init (me     : in out;
92            S     : ShellBasedSurfaceModel from StepShape;
93           TP     : TransientProcess  from Transfer;
94           NMTool : in out NMTool from StepToTopoDS );
95           
96     Init (me : in out;
97           S  : EdgeBasedWireframeModel from StepShape;
98           TP : TransientProcess  from Transfer );
99           
100     Init (me : in out;
101           S  : FaceBasedSurfaceModel from StepShape;
102           TP : TransientProcess  from Transfer );
103           
104     Init (me : in out;
105           S  : GeometricSet from StepShape;
106           TP : TransientProcess  from Transfer );
107           
108     Value (me) returns Shape from TopoDS
109         raises NotDone
110         is static;
111         ---C++: return const&
112     
113     Error (me) returns BuilderError from StepToTopoDS
114         is static;
115
116 fields
117
118     myError  : BuilderError from StepToTopoDS;    
119     
120     myResult : Shape from TopoDS;
121     
122 end Builder;