b311480e |
1 | // Created on: 1993-07-23 |
2 | // Created by: Remi LEQUETTE |
3 | // Copyright (c) 1993-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
42cf5bc1 |
17 | |
18 | #include <BRepBuilderAPI_MakeShape.hxx> |
42cf5bc1 |
19 | #include <TopoDS_Shape.hxx> |
7fd59977 |
20 | |
7fd59977 |
21 | //======================================================================= |
22 | //function : BRepBuilderAPI_MakeShape |
23 | //purpose : |
24 | //======================================================================= |
7fd59977 |
25 | BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape() |
26 | { |
27 | } |
28 | |
7fd59977 |
29 | //======================================================================= |
30 | //function : Build |
31 | //purpose : |
32 | //======================================================================= |
33 | |
d03c0898 |
34 | void BRepBuilderAPI_MakeShape::Build(const Message_ProgressRange& /*theRange*/) |
7fd59977 |
35 | { |
36 | } |
37 | |
38 | //======================================================================= |
39 | //function : Shape |
40 | //purpose : |
41 | //======================================================================= |
42 | |
ecac41a9 |
43 | const TopoDS_Shape& BRepBuilderAPI_MakeShape::Shape() |
7fd59977 |
44 | { |
45 | if (!IsDone()) { |
46 | // the following is const cast away |
47 | ((BRepBuilderAPI_MakeShape*) (void*) this)->Build(); |
48 | Check(); |
49 | } |
50 | return myShape; |
51 | } |
52 | |
53 | |
54 | //======================================================================= |
55 | //function : operator |
56 | //purpose : |
57 | //======================================================================= |
58 | |
ecac41a9 |
59 | BRepBuilderAPI_MakeShape::operator TopoDS_Shape() |
7fd59977 |
60 | { |
61 | return Shape(); |
62 | } |
63 | |
64 | |
65 | //======================================================================= |
66 | //function : Generated |
67 | //purpose : |
68 | //======================================================================= |
69 | |
35e08fe8 |
70 | const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Generated (const TopoDS_Shape&) |
7fd59977 |
71 | |
72 | { |
73 | myGenerated.Clear(); |
74 | return myGenerated; |
75 | } |
76 | |
77 | |
78 | //======================================================================= |
79 | //function : Modified |
80 | //purpose : |
81 | //======================================================================= |
82 | |
35e08fe8 |
83 | const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Modified (const TopoDS_Shape&) |
7fd59977 |
84 | |
85 | { |
86 | myGenerated.Clear(); |
87 | return myGenerated; |
88 | } |
89 | |
90 | |
91 | //======================================================================= |
92 | //function : IsDeleted |
93 | //purpose : |
94 | //======================================================================= |
95 | |
35e08fe8 |
96 | Standard_Boolean BRepBuilderAPI_MakeShape::IsDeleted (const TopoDS_Shape&) |
7fd59977 |
97 | |
98 | { |
99 | return Standard_False; |
100 | } |
101 | |
102 | |
103 | |
104 | |