Test for 0022778: Bug in BRepMesh
[occt.git] / src / TopoDSToStep / TopoDSToStep_WireframeBuilder.cdl
1 -- Created on: 1995-03-17
2 -- Created by: Dieter THIEMANN
3 -- Copyright (c) 1995-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
23 class WireframeBuilder from TopoDSToStep
24     inherits Root from TopoDSToStep
25
26     ---Purpose: This builder Class provides services to build
27     --          a ProSTEP Wireframemodel from a Cas.Cad BRep.                 
28
29 uses
30
31     FinderProcess           from Transfer,
32     Edge                    from TopoDS,
33     Face                    from TopoDS,
34     Shape                   from TopoDS,
35     Tool                    from TopoDSToStep,
36     BuilderError            from TopoDSToStep,
37     HSequenceOfTransient    from TColStd,
38     DataMapOfShapeTransient from MoniTool
39
40 raises NotDone from StdFail 
41     
42 is 
43
44 --  -----------------------------------------------------------
45 --  Constructor
46 --  -----------------------------------------------------------
47
48     Create returns WireframeBuilder from TopoDSToStep;
49     
50     Create(S  : Shape from TopoDS;
51            T  : in out Tool from TopoDSToStep;
52            FP : mutable FinderProcess from Transfer)
53         returns WireframeBuilder from TopoDSToStep;
54     
55     Init(me : in out;
56          S  : Shape from TopoDS;
57          T  : in out Tool from TopoDSToStep;
58          FP : mutable FinderProcess from Transfer);
59     
60 --  -----------------------------------------------------------    
61 --  Get the Result
62 --  -----------------------------------------------------------
63
64     Error(me) returns BuilderError from TopoDSToStep;
65     
66     Value (me) returns HSequenceOfTransient from TColStd
67         raises NotDone
68         is static;
69         ---C++: return const &
70
71     -- Working methods (moved from TopoDSToGBWire)
72
73     GetTrimmedCurveFromEdge (me; E: Edge from TopoDS;
74                                  F: Face from TopoDS;
75                                  M: in out DataMapOfShapeTransient from MoniTool;
76                                  L: in out HSequenceOfTransient from TColStd)
77                                  returns Boolean from Standard;
78     --- Purpose: Extraction of Trimmed Curves from TopoDS_Edge for the 
79     --  Creation of a GeometricallyBoundedWireframeRepresentation
80
81     GetTrimmedCurveFromFace (me; F: Face from TopoDS;
82                                  M: in out DataMapOfShapeTransient from MoniTool;
83                                  L: in out HSequenceOfTransient from TColStd)
84                                  returns Boolean from Standard;
85     --- Purpose: Extraction of Trimmed Curves from TopoDS_Face for the 
86     --  Creation of a GeometricallyBoundedWireframeRepresentation
87
88     GetTrimmedCurveFromShape (me; S: Shape from TopoDS;
89                                   M: in out DataMapOfShapeTransient from MoniTool;
90                                   L: in out HSequenceOfTransient from TColStd)
91                                   returns Boolean from Standard;
92     --- Purpose: Extraction of Trimmed Curves from any TopoDS_Shape for the 
93     --  Creation of a GeometricallyBoundedWireframeRepresentation
94     
95 fields
96
97     myResult : HSequenceOfTransient from TColStd;
98     
99     myError  : BuilderError         from TopoDSToStep;
100
101 end WireframeBuilder;