42cf5bc1 |
1 | // Created on: 1994-12-16 |
2 | // Created by: Frederic MAUPAS |
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 _StepToTopoDS_TranslateEdge_HeaderFile |
18 | #define _StepToTopoDS_TranslateEdge_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <StepToTopoDS_TranslateEdgeError.hxx> |
25 | #include <TopoDS_Shape.hxx> |
26 | #include <StepToTopoDS_Root.hxx> |
27 | #include <Standard_Real.hxx> |
28 | class StdFail_NotDone; |
29 | class StepShape_Edge; |
30 | class StepToTopoDS_Tool; |
31 | class StepToTopoDS_NMTool; |
32 | class StepGeom_Curve; |
33 | class StepShape_EdgeCurve; |
34 | class StepShape_Vertex; |
35 | class TopoDS_Edge; |
36 | class TopoDS_Vertex; |
37 | class Geom2d_Curve; |
38 | class StepGeom_Pcurve; |
39 | class Geom_Surface; |
40 | class TopoDS_Shape; |
41 | |
42 | |
43 | |
44 | class StepToTopoDS_TranslateEdge : public StepToTopoDS_Root |
45 | { |
46 | public: |
47 | |
48 | DEFINE_STANDARD_ALLOC |
49 | |
50 | |
51 | Standard_EXPORT StepToTopoDS_TranslateEdge(); |
52 | |
53 | Standard_EXPORT StepToTopoDS_TranslateEdge(const Handle(StepShape_Edge)& E, StepToTopoDS_Tool& T, StepToTopoDS_NMTool& NMTool); |
54 | |
55 | Standard_EXPORT void Init (const Handle(StepShape_Edge)& E, StepToTopoDS_Tool& T, StepToTopoDS_NMTool& NMTool); |
56 | |
57 | //! Warning! C3D is assumed to be a Curve 3D ... |
58 | //! other cases to checked before calling this |
59 | Standard_EXPORT void MakeFromCurve3D (const Handle(StepGeom_Curve)& C3D, const Handle(StepShape_EdgeCurve)& EC, const Handle(StepShape_Vertex)& Vend, const Standard_Real preci, TopoDS_Edge& E, TopoDS_Vertex& V1, TopoDS_Vertex& V2, StepToTopoDS_Tool& T); |
60 | |
61 | Standard_EXPORT Handle(Geom2d_Curve) MakePCurve (const Handle(StepGeom_Pcurve)& PCU, const Handle(Geom_Surface)& ConvSurf) const; |
62 | |
63 | Standard_EXPORT const TopoDS_Shape& Value() const; |
64 | |
65 | Standard_EXPORT StepToTopoDS_TranslateEdgeError Error() const; |
66 | |
67 | |
68 | |
69 | |
70 | protected: |
71 | |
72 | |
73 | |
74 | |
75 | |
76 | private: |
77 | |
78 | |
79 | |
80 | StepToTopoDS_TranslateEdgeError myError; |
81 | TopoDS_Shape myResult; |
82 | |
83 | |
84 | }; |
85 | |
86 | |
87 | |
88 | |
89 | |
90 | |
91 | |
92 | #endif // _StepToTopoDS_TranslateEdge_HeaderFile |