Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:05:29

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 
0036 class TransferBRep_ShapeBinder;
0037 DEFINE_STANDARD_HANDLE(TransferBRep_ShapeBinder, TransferBRep_BinderOfShape)
0038 
0039 //! A ShapeBinder is a BinderOfShape with some additional services
0040 //! to cast the Result under various kinds of Shapes
0041 class TransferBRep_ShapeBinder : public TransferBRep_BinderOfShape
0042 {
0043 
0044 public:
0045 
0046   
0047   //! Creates an empty ShapeBinder
0048   Standard_EXPORT TransferBRep_ShapeBinder();
0049   
0050   //! Creates a ShapeBinder with a result
0051   Standard_EXPORT TransferBRep_ShapeBinder(const TopoDS_Shape& res);
0052   
0053   //! Returns the Type of the Shape Result (under TopAbs form)
0054   Standard_EXPORT TopAbs_ShapeEnum ShapeType() const;
0055   
0056   Standard_EXPORT TopoDS_Vertex Vertex() const;
0057   
0058   Standard_EXPORT TopoDS_Edge Edge() const;
0059   
0060   Standard_EXPORT TopoDS_Wire Wire() const;
0061   
0062   Standard_EXPORT TopoDS_Face Face() const;
0063   
0064   Standard_EXPORT TopoDS_Shell Shell() const;
0065   
0066   Standard_EXPORT TopoDS_Solid Solid() const;
0067   
0068   Standard_EXPORT TopoDS_CompSolid CompSolid() const;
0069   
0070   Standard_EXPORT TopoDS_Compound Compound() const;
0071 
0072 
0073 
0074 
0075   DEFINE_STANDARD_RTTIEXT(TransferBRep_ShapeBinder,TransferBRep_BinderOfShape)
0076 
0077 protected:
0078 
0079 
0080 
0081 
0082 private:
0083 
0084 
0085 
0086 
0087 };
0088 
0089 
0090 
0091 
0092 
0093 
0094 
0095 #endif // _TransferBRep_ShapeBinder_HeaderFile