Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-09-21 09:19:03

0001 // Created on: 1994-10-03
0002 // Created by: Assim
0003 // Copyright (c) 1994-1999 Matra Datavision
0004 // Copyright (c) 1999-2014 OPEN CASCADE SAS
0005 //
0006 // This file is part of Open CASCADE Technology software library.
0007 //
0008 // This library is free software; you can redistribute it and/or modify it under
0009 // the terms of the GNU Lesser General Public License version 2.1 as published
0010 // by the Free Software Foundation, with special exception defined in the file
0011 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
0012 // distribution for complete text of the license and disclaimer of any warranty.
0013 //
0014 // Alternatively, this file may be used under the terms of Open CASCADE
0015 // commercial license or contractual agreement.
0016 
0017 #ifndef _TransferBRep_ShapeBinder_HeaderFile
0018 #define _TransferBRep_ShapeBinder_HeaderFile
0019 
0020 #include <Standard.hxx>
0021 #include <Standard_Type.hxx>
0022 
0023 #include <TransferBRep_BinderOfShape.hxx>
0024 #include <TopAbs_ShapeEnum.hxx>
0025 class TopoDS_Shape;
0026 class TopoDS_Vertex;
0027 class TopoDS_Edge;
0028 class TopoDS_Wire;
0029 class TopoDS_Face;
0030 class TopoDS_Shell;
0031 class TopoDS_Solid;
0032 class TopoDS_CompSolid;
0033 class TopoDS_Compound;
0034 
0035 //! A ShapeBinder is a BinderOfShape with some additional services
0036 //! to cast the Result under various kinds of Shapes
0037 class TransferBRep_ShapeBinder : public TransferBRep_BinderOfShape
0038 {
0039 
0040 public:
0041   //! Creates an empty ShapeBinder
0042   Standard_EXPORT TransferBRep_ShapeBinder();
0043 
0044   //! Creates a ShapeBinder with a result
0045   Standard_EXPORT TransferBRep_ShapeBinder(const TopoDS_Shape& res);
0046 
0047   //! Returns the Type of the Shape Result (under TopAbs form)
0048   Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
0049 
0050   Standard_EXPORT TopoDS_Vertex Vertex() const;
0051 
0052   Standard_EXPORT TopoDS_Edge Edge() const;
0053 
0054   Standard_EXPORT TopoDS_Wire Wire() const;
0055 
0056   Standard_EXPORT TopoDS_Face Face() const;
0057 
0058   Standard_EXPORT TopoDS_Shell Shell() const;
0059 
0060   Standard_EXPORT TopoDS_Solid Solid() const;
0061 
0062   Standard_EXPORT TopoDS_CompSolid CompSolid() const;
0063 
0064   Standard_EXPORT TopoDS_Compound Compound() const;
0065 
0066   DEFINE_STANDARD_RTTIEXT(TransferBRep_ShapeBinder, TransferBRep_BinderOfShape)
0067 };
0068 
0069 #endif // _TransferBRep_ShapeBinder_HeaderFile