0025133: TKOpenGl - Crash on closing a view containing presentations with capping
[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-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 WireframeBuilder from TopoDSToStep
18     inherits Root from TopoDSToStep
19
20     ---Purpose: This builder Class provides services to build
21     --          a ProSTEP Wireframemodel from a Cas.Cad BRep.                 
22
23 uses
24
25     FinderProcess           from Transfer,
26     Edge                    from TopoDS,
27     Face                    from TopoDS,
28     Shape                   from TopoDS,
29     Tool                    from TopoDSToStep,
30     BuilderError            from TopoDSToStep,
31     HSequenceOfTransient    from TColStd,
32     DataMapOfShapeTransient from MoniTool
33
34 raises NotDone from StdFail 
35     
36 is 
37
38 --  -----------------------------------------------------------
39 --  Constructor
40 --  -----------------------------------------------------------
41
42     Create returns WireframeBuilder from TopoDSToStep;
43     
44     Create(S  : Shape from TopoDS;
45            T  : in out Tool from TopoDSToStep;
46            FP : FinderProcess from Transfer)
47         returns WireframeBuilder from TopoDSToStep;
48     
49     Init(me : in out;
50          S  : Shape from TopoDS;
51          T  : in out Tool from TopoDSToStep;
52          FP : FinderProcess from Transfer);
53     
54 --  -----------------------------------------------------------    
55 --  Get the Result
56 --  -----------------------------------------------------------
57
58     Error(me) returns BuilderError from TopoDSToStep;
59     
60     Value (me) returns HSequenceOfTransient from TColStd
61         raises NotDone
62         is static;
63         ---C++: return const &
64
65     -- Working methods (moved from TopoDSToGBWire)
66
67     GetTrimmedCurveFromEdge (me; E: Edge from TopoDS;
68                                  F: Face from TopoDS;
69                                  M: in out DataMapOfShapeTransient from MoniTool;
70                                  L: in out HSequenceOfTransient from TColStd)
71                                  returns Boolean from Standard;
72     --- Purpose: Extraction of Trimmed Curves from TopoDS_Edge for the 
73     --  Creation of a GeometricallyBoundedWireframeRepresentation
74
75     GetTrimmedCurveFromFace (me; F: Face from TopoDS;
76                                  M: in out DataMapOfShapeTransient from MoniTool;
77                                  L: in out HSequenceOfTransient from TColStd)
78                                  returns Boolean from Standard;
79     --- Purpose: Extraction of Trimmed Curves from TopoDS_Face for the 
80     --  Creation of a GeometricallyBoundedWireframeRepresentation
81
82     GetTrimmedCurveFromShape (me; S: Shape from TopoDS;
83                                   M: in out DataMapOfShapeTransient from MoniTool;
84                                   L: in out HSequenceOfTransient from TColStd)
85                                   returns Boolean from Standard;
86     --- Purpose: Extraction of Trimmed Curves from any TopoDS_Shape for the 
87     --  Creation of a GeometricallyBoundedWireframeRepresentation
88     
89 fields
90
91     myResult : HSequenceOfTransient from TColStd;
92     
93     myError  : BuilderError         from TopoDSToStep;
94
95 end WireframeBuilder;