b311480e |
1 | -- Created on: 1993-07-21 |
2 | -- Created by: Remi LEQUETTE |
3 | -- Copyright (c) 1993-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 | |
23 | deferred class MakeShape from BRepBuilderAPI inherits Command from BRepBuilderAPI |
24 | |
25 | ---Purpose: This is the root class for all shape |
26 | -- constructions. It stores the result. |
27 | -- |
28 | -- It provides deferred methods to trace the history |
29 | -- of sub-shapes. |
30 | |
31 | uses |
32 | Shape from TopoDS, |
33 | Face from TopoDS, |
34 | Edge from TopoDS, |
35 | Vertex from TopoDS, |
36 | ShapeModification from BRepBuilderAPI, |
37 | ListOfShape from TopTools |
38 | |
39 | |
40 | raises |
41 | NotDone from StdFail |
42 | |
43 | is |
44 | Delete(me:out) is redefined; |
45 | ---C++: alias "Standard_EXPORT virtual ~BRepBuilderAPI_MakeShape(){Delete() ; }" |
46 | |
47 | Initialize; |
48 | |
49 | Build(me : in out) |
50 | ---Purpose: This is called by Shape(). It does nothing but |
51 | -- may be redefined. |
52 | ---Level: Public |
53 | is virtual; |
54 | |
55 | Shape(me) returns Shape from TopoDS |
56 | ---Purpose: Returns a shape built by the shape construction algorithm. |
57 | -- Raises exception StdFail_NotDone if the shape was not built. |
58 | ---C++: return const & |
59 | ---C++: alias "Standard_EXPORT operator TopoDS_Shape() const;" |
60 | ---Level: Public |
61 | raises |
62 | NotDone from StdFail |
63 | is static; |
64 | |
65 | |
66 | ------------------------------------------------------------------ |
67 | --- The following methods are not implemented at this level. |
68 | -- An empty list is returned. |
69 | --- They are optional and must be redefined. |
70 | ------------------------------------------------------------------ |
71 | |
72 | Generated (me: in out; S : Shape from TopoDS) |
73 | ---Purpose: Returns the list of shapes generated from the |
74 | -- shape <S>. |
75 | ---C++: return const & |
76 | ---Level: Public |
77 | returns ListOfShape from TopTools |
78 | is virtual; |
79 | |
80 | |
81 | Modified (me: in out; S : Shape from TopoDS) |
82 | ---Purpose: Returns the list of shapes modified from the shape |
83 | -- <S>. |
84 | ---C++: return const & |
85 | ---Level: Public |
86 | returns ListOfShape from TopTools |
87 | is virtual; |
88 | |
89 | |
90 | IsDeleted (me: in out; S : Shape from TopoDS) |
91 | returns Boolean |
92 | is virtual; |
93 | ---Purpose: Returns true if the shape S has been deleted. |
94 | |
95 | |
96 | fields |
97 | |
98 | myShape : Shape from TopoDS is protected; |
99 | myGenerated : ListOfShape from TopTools is protected; |
100 | |
101 | end MakeShape; |