0026460: Implicit cast to TopoDS_Shape compilation error due to ambiguous conversion
[occt.git] / src / BRepBuilderAPI / BRepBuilderAPI_MakeShape.cxx
CommitLineData
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>
19#include <StdFail_NotDone.hxx>
7fd59977 20#include <TopoDS.hxx>
7fd59977 21#include <TopoDS_Edge.hxx>
42cf5bc1 22#include <TopoDS_Face.hxx>
23#include <TopoDS_Shape.hxx>
7fd59977 24#include <TopoDS_Vertex.hxx>
25
7fd59977 26//=======================================================================
27//function : BRepBuilderAPI_MakeShape
28//purpose :
29//=======================================================================
7fd59977 30BRepBuilderAPI_MakeShape::BRepBuilderAPI_MakeShape()
31{
32}
33
34void BRepBuilderAPI_MakeShape::Delete()
35{}
36
37
38//=======================================================================
39//function : Build
40//purpose :
41//=======================================================================
42
43void BRepBuilderAPI_MakeShape::Build()
44{
45}
46
47//=======================================================================
48//function : Shape
49//purpose :
50//=======================================================================
51
ecac41a9 52const TopoDS_Shape& BRepBuilderAPI_MakeShape::Shape()
7fd59977 53{
54 if (!IsDone()) {
55 // the following is const cast away
56 ((BRepBuilderAPI_MakeShape*) (void*) this)->Build();
57 Check();
58 }
59 return myShape;
60}
61
62
63//=======================================================================
64//function : operator
65//purpose :
66//=======================================================================
67
ecac41a9 68BRepBuilderAPI_MakeShape::operator TopoDS_Shape()
7fd59977 69{
70 return Shape();
71}
72
73
74//=======================================================================
75//function : Generated
76//purpose :
77//=======================================================================
78
35e08fe8 79const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Generated (const TopoDS_Shape&)
7fd59977 80
81{
82 myGenerated.Clear();
83 return myGenerated;
84}
85
86
87//=======================================================================
88//function : Modified
89//purpose :
90//=======================================================================
91
35e08fe8 92const TopTools_ListOfShape& BRepBuilderAPI_MakeShape::Modified (const TopoDS_Shape&)
7fd59977 93
94{
95 myGenerated.Clear();
96 return myGenerated;
97}
98
99
100//=======================================================================
101//function : IsDeleted
102//purpose :
103//=======================================================================
104
35e08fe8 105Standard_Boolean BRepBuilderAPI_MakeShape::IsDeleted (const TopoDS_Shape&)
7fd59977 106
107{
108 return Standard_False;
109}
110
111
112
113