42cf5bc1 |
1 | // Created on: 1994-11-17 |
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 _GeomToIGES_GeomCurve_HeaderFile |
18 | #define _GeomToIGES_GeomCurve_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
24 | #include <GeomToIGES_GeomEntity.hxx> |
25 | #include <Standard_Real.hxx> |
26 | class GeomToIGES_GeomEntity; |
27 | class IGESData_IGESEntity; |
28 | class Geom_Curve; |
29 | class Geom_BoundedCurve; |
30 | class Geom_BSplineCurve; |
31 | class Geom_BezierCurve; |
32 | class Geom_TrimmedCurve; |
33 | class Geom_Conic; |
34 | class Geom_Circle; |
35 | class Geom_Ellipse; |
36 | class Geom_Hyperbola; |
37 | class Geom_Line; |
38 | class Geom_Parabola; |
39 | class Geom_OffsetCurve; |
40 | |
41 | |
42 | //! This class implements the transfer of the Curve Entity from Geom |
43 | //! To IGES. These can be : |
44 | //! Curve |
45 | //! . BoundedCurve |
46 | //! * BSplineCurve |
47 | //! * BezierCurve |
48 | //! * TrimmedCurve |
49 | //! . Conic |
50 | //! * Circle |
51 | //! * Ellipse |
52 | //! * Hyperbloa |
53 | //! * Line |
54 | //! * Parabola |
55 | //! . OffsetCurve |
56 | class GeomToIGES_GeomCurve : public GeomToIGES_GeomEntity |
57 | { |
58 | public: |
59 | |
60 | DEFINE_STANDARD_ALLOC |
61 | |
62 | |
63 | Standard_EXPORT GeomToIGES_GeomCurve(); |
64 | |
65 | //! Creates a tool GeomCurve ready to run and sets its |
66 | //! fields as GE's. |
67 | Standard_EXPORT GeomToIGES_GeomCurve(const GeomToIGES_GeomEntity& GE); |
68 | |
69 | //! Transfert a GeometryEntity which answer True to the |
70 | //! member : BRepToIGES::IsGeomCurve(Geometry). If this |
71 | //! Entity could not be converted, this member returns a NullEntity. |
72 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Curve)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
73 | |
74 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_BoundedCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
75 | |
76 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_BSplineCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
77 | |
78 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_BezierCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
79 | |
80 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_TrimmedCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
81 | |
82 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Conic)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
83 | |
84 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Circle)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
85 | |
86 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Ellipse)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
87 | |
88 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Hyperbola)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
89 | |
90 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Line)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
91 | |
92 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_Parabola)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
93 | |
94 | Standard_EXPORT Handle(IGESData_IGESEntity) TransferCurve (const Handle(Geom_OffsetCurve)& start, const Standard_Real Udeb, const Standard_Real Ufin); |
95 | |
96 | |
97 | |
98 | |
99 | protected: |
100 | |
101 | |
102 | |
103 | |
104 | |
105 | private: |
106 | |
107 | |
108 | |
109 | |
110 | |
111 | }; |
112 | |
113 | |
114 | |
115 | |
116 | |
117 | |
118 | |
119 | #endif // _GeomToIGES_GeomCurve_HeaderFile |