42cf5bc1 |
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> |
42cf5bc1 |
25 | #include <Standard_Integer.hxx> |
7e785937 |
26 | #include <Message_ProgressRange.hxx> |
27 | |
42cf5bc1 |
28 | class TopoDS_Shape; |
29 | class IGESData_IGESEntity; |
30 | class TopoDS_Vertex; |
31 | class IGESSolid_VertexList; |
32 | class IGESSolid_EdgeList; |
33 | class IGESSolid_Loop; |
34 | class TopoDS_Face; |
35 | class gp_Trsf2d; |
36 | class IGESSolid_Face; |
37 | class IGESSolid_Shell; |
38 | class IGESSolid_ManifoldSolid; |
39 | |
40 | |
41 | //! Provides methods to transfer BRep entities |
42 | //! ( VertexList 502, EdgeList 504, Loop 508, |
43 | //! Face 510, Shell 514, ManifoldSolid 186) |
44 | //! from IGES to CASCADE. |
45 | class IGESToBRep_BRepEntity : public IGESToBRep_CurveAndSurface |
46 | { |
47 | public: |
48 | |
49 | DEFINE_STANDARD_ALLOC |
50 | |
51 | |
52 | //! Creates a tool BRepEntity ready to run, with |
53 | //! epsilons set to 1.E-04, TheModeTopo to True, the |
54 | //! optimization of the continuity to False. |
55 | Standard_EXPORT IGESToBRep_BRepEntity(); |
56 | |
57 | //! Creates a tool BRepEntity ready to run and sets its |
58 | //! fields as CS's. |
59 | Standard_EXPORT IGESToBRep_BRepEntity(const IGESToBRep_CurveAndSurface& CS); |
60 | |
61 | //! Creates a tool BRepEntity ready to run. |
62 | 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); |
63 | |
64 | //! Transfer the BRepEntity" : Face, Shell or ManifoldSolid. |
7e785937 |
65 | Standard_EXPORT TopoDS_Shape TransferBRepEntity (const Handle(IGESData_IGESEntity)& start, |
66 | const Message_ProgressRange& theProgress = Message_ProgressRange()); |
42cf5bc1 |
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 |
7e785937 |
81 | Standard_EXPORT TopoDS_Shape TransferShell (const Handle(IGESSolid_Shell)& start, |
82 | const Message_ProgressRange& theProgress = Message_ProgressRange()); |
42cf5bc1 |
83 | |
84 | //! Transfer the ManifoldSolid Entity |
7e785937 |
85 | Standard_EXPORT TopoDS_Shape TransferManifoldSolid (const Handle(IGESSolid_ManifoldSolid)& start, |
86 | const Message_ProgressRange& theProgress = Message_ProgressRange()); |
42cf5bc1 |
87 | |
88 | |
89 | |
90 | |
91 | protected: |
92 | |
93 | |
94 | |
95 | |
96 | |
97 | private: |
98 | |
99 | |
100 | |
101 | |
102 | |
103 | }; |
104 | |
105 | |
106 | |
107 | |
108 | |
109 | |
110 | |
111 | #endif // _IGESToBRep_BRepEntity_HeaderFile |