| 1 | // Created on: 1994-09-28 |
| 2 | // Created by: Marie Jose MARTZ |
| 3 | // Copyright (c) 1994-1999 Matra Datavision |
| 4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
| 5 | // |
| 6 | // This file is part of Open CASCADE Technology software library. |
| 7 | // |
| 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. |
| 13 | // |
| 14 | // Alternatively, this file may be used under the terms of Open CASCADE |
| 15 | // commercial license or contractual agreement. |
| 16 | |
| 17 | #ifndef _IGESToBRep_BRepEntity_HeaderFile |
| 18 | #define _IGESToBRep_BRepEntity_HeaderFile |
| 19 | |
| 20 | #include <Standard.hxx> |
| 21 | #include <Standard_DefineAlloc.hxx> |
| 22 | #include <Standard_Handle.hxx> |
| 23 | |
| 24 | #include <IGESToBRep_CurveAndSurface.hxx> |
| 25 | #include <Standard_Real.hxx> |
| 26 | #include <Standard_Boolean.hxx> |
| 27 | #include <Standard_Integer.hxx> |
| 28 | class IGESToBRep_CurveAndSurface; |
| 29 | class TopoDS_Shape; |
| 30 | class IGESData_IGESEntity; |
| 31 | class TopoDS_Vertex; |
| 32 | class IGESSolid_VertexList; |
| 33 | class IGESSolid_EdgeList; |
| 34 | class IGESSolid_Loop; |
| 35 | class TopoDS_Face; |
| 36 | class gp_Trsf2d; |
| 37 | class IGESSolid_Face; |
| 38 | class IGESSolid_Shell; |
| 39 | class IGESSolid_ManifoldSolid; |
| 40 | |
| 41 | |
| 42 | //! Provides methods to transfer BRep entities |
| 43 | //! ( VertexList 502, EdgeList 504, Loop 508, |
| 44 | //! Face 510, Shell 514, ManifoldSolid 186) |
| 45 | //! from IGES to CASCADE. |
| 46 | class IGESToBRep_BRepEntity : public IGESToBRep_CurveAndSurface |
| 47 | { |
| 48 | public: |
| 49 | |
| 50 | DEFINE_STANDARD_ALLOC |
| 51 | |
| 52 | |
| 53 | //! Creates a tool BRepEntity ready to run, with |
| 54 | //! epsilons set to 1.E-04, TheModeTopo to True, the |
| 55 | //! optimization of the continuity to False. |
| 56 | Standard_EXPORT IGESToBRep_BRepEntity(); |
| 57 | |
| 58 | //! Creates a tool BRepEntity ready to run and sets its |
| 59 | //! fields as CS's. |
| 60 | Standard_EXPORT IGESToBRep_BRepEntity(const IGESToBRep_CurveAndSurface& CS); |
| 61 | |
| 62 | //! Creates a tool BRepEntity ready to run. |
| 63 | Standard_EXPORT IGESToBRep_BRepEntity(const Standard_Real eps, const Standard_Real epsGeom, const Standard_Real epsCoeff, const Standard_Boolean mode, const Standard_Boolean modeapprox, const Standard_Boolean optimized); |
| 64 | |
| 65 | //! Transfer the BRepEntity" : Face, Shell or ManifoldSolid. |
| 66 | Standard_EXPORT TopoDS_Shape TransferBRepEntity (const Handle(IGESData_IGESEntity)& start); |
| 67 | |
| 68 | //! Transfer the entity number "index" of the VertexList "start" |
| 69 | Standard_EXPORT TopoDS_Vertex TransferVertex (const Handle(IGESSolid_VertexList)& start, const Standard_Integer index); |
| 70 | |
| 71 | //! Transfer the entity number "index" of the EdgeList "start". |
| 72 | Standard_EXPORT TopoDS_Shape TransferEdge (const Handle(IGESSolid_EdgeList)& start, const Standard_Integer index); |
| 73 | |
| 74 | //! Transfer the Loop Entity |
| 75 | Standard_EXPORT TopoDS_Shape TransferLoop (const Handle(IGESSolid_Loop)& start, const TopoDS_Face& Face, const gp_Trsf2d& trans, const Standard_Real uFact); |
| 76 | |
| 77 | //! Transfer the Face Entity |
| 78 | Standard_EXPORT TopoDS_Shape TransferFace (const Handle(IGESSolid_Face)& start); |
| 79 | |
| 80 | //! Transfer the Shell Entity |
| 81 | Standard_EXPORT TopoDS_Shape TransferShell (const Handle(IGESSolid_Shell)& start); |
| 82 | |
| 83 | //! Transfer the ManifoldSolid Entity |
| 84 | Standard_EXPORT TopoDS_Shape TransferManifoldSolid (const Handle(IGESSolid_ManifoldSolid)& start); |
| 85 | |
| 86 | |
| 87 | |
| 88 | |
| 89 | protected: |
| 90 | |
| 91 | |
| 92 | |
| 93 | |
| 94 | |
| 95 | private: |
| 96 | |
| 97 | |
| 98 | |
| 99 | |
| 100 | |
| 101 | }; |
| 102 | |
| 103 | |
| 104 | |
| 105 | |
| 106 | |
| 107 | |
| 108 | |
| 109 | #endif // _IGESToBRep_BRepEntity_HeaderFile |