0024750: Replace instantiations of TCollection generic classes by NCollection templat...
[occt.git] / src / TransferBRep / TransferBRep_ShapeBinder.cxx
1 // Copyright (c) 1999-2014 OPEN CASCADE SAS
2 //
3 // This file is part of Open CASCADE Technology software library.
4 //
5 // This library is free software; you can redistribute it and/or modify it under
6 // the terms of the GNU Lesser General Public License version 2.1 as published
7 // by the Free Software Foundation, with special exception defined in the file
8 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
9 // distribution for complete text of the license and disclaimer of any warranty.
10 //
11 // Alternatively, this file may be used under the terms of Open CASCADE
12 // commercial license or contractual agreement.
13
14 #include <TransferBRep_ShapeBinder.ixx>
15 #include <TopoDS.hxx>
16
17
18 TransferBRep_ShapeBinder::TransferBRep_ShapeBinder ()    {  }
19
20     TransferBRep_ShapeBinder::TransferBRep_ShapeBinder (const TopoDS_Shape& shape)
21     :  TransferBRep_BinderOfShape (shape)    {  }
22
23     TopAbs_ShapeEnum  TransferBRep_ShapeBinder::ShapeType () const
24 {
25   if (!HasResult()) return TopAbs_SHAPE;
26   return  Result().ShapeType();
27 }
28
29     TopoDS_Vertex  TransferBRep_ShapeBinder::Vertex() const
30       {  return TopoDS::Vertex(Result());  }
31
32     TopoDS_Edge  TransferBRep_ShapeBinder::Edge() const
33       {  return TopoDS::Edge(Result());  }
34
35     TopoDS_Wire  TransferBRep_ShapeBinder::Wire() const
36       {  return TopoDS::Wire(Result());  }
37
38     TopoDS_Face  TransferBRep_ShapeBinder::Face() const
39       {  return TopoDS::Face(Result());  }
40
41     TopoDS_Shell  TransferBRep_ShapeBinder::Shell() const
42       {  return TopoDS::Shell(Result());  }
43
44     TopoDS_Solid  TransferBRep_ShapeBinder::Solid() const
45       {  return TopoDS::Solid(Result());  }
46
47     TopoDS_CompSolid  TransferBRep_ShapeBinder::CompSolid() const
48       {  return TopoDS::CompSolid(Result());  }
49
50     TopoDS_Compound  TransferBRep_ShapeBinder::Compound() const
51       {  return TopoDS::Compound(Result());  }