1 // Created on: 1994-10-03
3 // Copyright (c) 1994-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _TransferBRep_ShapeBinder_HeaderFile
18 #define _TransferBRep_ShapeBinder_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <TransferBRep_BinderOfShape.hxx>
24 #include <TopAbs_ShapeEnum.hxx>
25 class Standard_TypeMismatch;
33 class TopoDS_CompSolid;
34 class TopoDS_Compound;
37 class TransferBRep_ShapeBinder;
38 DEFINE_STANDARD_HANDLE(TransferBRep_ShapeBinder, TransferBRep_BinderOfShape)
40 //! A ShapeBinder is a BinderOfShape with some additional services
41 //! to cast the Result under various kinds of Shapes
42 class TransferBRep_ShapeBinder : public TransferBRep_BinderOfShape
48 //! Creates an empty ShapeBinder
49 Standard_EXPORT TransferBRep_ShapeBinder();
51 //! Creates a ShapeBinder with a result
52 Standard_EXPORT TransferBRep_ShapeBinder(const TopoDS_Shape& res);
54 //! Returns the Type of the Shape Result (under TopAbs form)
55 Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
57 Standard_EXPORT TopoDS_Vertex Vertex() const;
59 Standard_EXPORT TopoDS_Edge Edge() const;
61 Standard_EXPORT TopoDS_Wire Wire() const;
63 Standard_EXPORT TopoDS_Face Face() const;
65 Standard_EXPORT TopoDS_Shell Shell() const;
67 Standard_EXPORT TopoDS_Solid Solid() const;
69 Standard_EXPORT TopoDS_CompSolid CompSolid() const;
71 Standard_EXPORT TopoDS_Compound Compound() const;
76 DEFINE_STANDARD_RTTIEXT(TransferBRep_ShapeBinder,TransferBRep_BinderOfShape)
96 #endif // _TransferBRep_ShapeBinder_HeaderFile