0022627: Change OCCT memory management defaults
[occt.git] / src / BRepLib / BRepLib_MakeShape.cdl
CommitLineData
7fd59977 1-- File: BRepLib_MakeShape.cdl
2-- Created: Wed Jul 21 18:15:13 1993
3-- Author: Remi LEQUETTE
4-- <rle@nonox>
5---Copyright: Matra Datavision 1993
6
7
8deferred class MakeShape from BRepLib inherits Command from BRepLib
9
10 ---Purpose: This is the root class for all shape
11 -- constructions. It stores the result.
12 --
13 -- It provides deferred methods to trace the history
14 -- of sub-shapes.
15
16uses
17 Shape from TopoDS,
18 Face from TopoDS,
19 Edge from TopoDS,
20 ShapeModification from BRepLib,
21 ListOfShape from TopTools
22
23
24raises
25 NotDone from StdFail
26
27is
28 Initialize;
29
30 Build(me : in out);
31 ---Purpose: This is called by Shape(). It does nothing but
32 -- may be redefined.
33 ---Level: Public
34
35 Shape(me) returns Shape from TopoDS
36 ---C++: return const &
37 ---C++: alias "Standard_EXPORT operator TopoDS_Shape() const;"
38 ---Level: Public
39 raises
40 NotDone from StdFail
41 is static;
42
43
44 -----------------------------------------------------------
45 --- the following methods do nothing and must be redefined
46 --- for faces creations.
47
48 FaceStatus(me; F: Face from TopoDS)
49 ---Purpose: returns the status of the Face after
50 -- the shape creation.
51 ---Level: Public
52 returns ShapeModification from BRepLib
53 is virtual;
54
55
56 HasDescendants(me; F: Face from TopoDS)
57 ---Purpose: Returns True if the Face generates new topology.
58 ---Level: Public
59 returns Boolean from Standard
60 is virtual;
61
62
63 DescendantFaces(me: in out; F: Face from TopoDS)
64 ---Purpose: returns the list of generated Faces.
65 ---C++: return const &
66 ---Level: Public
67 returns ListOfShape from TopTools
68 is virtual;
69
70
71 NbSurfaces(me)
72 ---Purpose: returns the number of surfaces
73 -- after the shape creation.
74 ---Level: Public
75 returns Integer from Standard
76 is virtual;
77
78
79 NewFaces(me: in out; I: Integer from Standard)
80 ---Purpose: Return the faces created for surface I.
81 ---C++: return const &
82 ---Level: Public
83 returns ListOfShape from TopTools
84 is virtual;
85
86
87 FacesFromEdges(me: in out; E: Edge from TopoDS)
88 ---Purpose: returns a list of the created faces
89 -- from the edge <E>.
90 ---C++: return const &
91 ---Level: Public
92 returns ListOfShape from TopTools
93 is virtual;
94
95
96fields
97
98 myShape : Shape from TopoDS is protected;
99 myGenFaces: ListOfShape from TopTools is protected;
100 myNewFaces: ListOfShape from TopTools is protected;
101 myEdgFaces: ListOfShape from TopTools is protected;
102
103end MakeShape;