1 // Created on: 1992-10-08
2 // Created by: Isabelle GRIGNON
3 // Copyright (c) 1992-1999 Matra Datavision
4 // Copyright (c) 1999-2014 OPEN CASCADE SAS
6 // This file is part of Open CASCADE Technology software library.
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.
14 // Alternatively, this file may be used under the terms of Open CASCADE
15 // commercial license or contractual agreement.
17 #ifndef _GeomAdaptor_GHCurve_HeaderFile
18 #define _GeomAdaptor_GHCurve_HeaderFile
20 #include <Standard.hxx>
21 #include <Standard_Type.hxx>
23 #include <GeomAdaptor_Curve.hxx>
24 #include <Adaptor3d_HCurve.hxx>
25 class Standard_OutOfRange;
26 class Standard_NoSuchObject;
27 class Standard_DomainError;
28 class GeomAdaptor_Curve;
29 class Adaptor3d_Curve;
32 class GeomAdaptor_GHCurve;
33 DEFINE_STANDARD_HANDLE(GeomAdaptor_GHCurve, Adaptor3d_HCurve)
36 class GeomAdaptor_GHCurve : public Adaptor3d_HCurve
42 //! Creates an empty GenHCurve.
43 Standard_EXPORT GeomAdaptor_GHCurve();
45 //! Creates a GenHCurve from a Curve
46 Standard_EXPORT GeomAdaptor_GHCurve(const GeomAdaptor_Curve& C);
48 //! Sets the field of the GenHCurve.
49 Standard_EXPORT void Set (const GeomAdaptor_Curve& C);
51 //! Returns the curve used to create the GenHCurve.
52 //! This is redefined from HCurve, cannot be inline.
53 Standard_EXPORT const Adaptor3d_Curve& Curve() const Standard_OVERRIDE;
55 //! Returns the curve used to create the GenHCurve.
56 //! This is redefined from HCurve, cannot be inline.
57 Standard_EXPORT Adaptor3d_Curve& GetCurve() Standard_OVERRIDE;
59 //! Returns the curve used to create the GenHCurve.
60 GeomAdaptor_Curve& ChangeCurve();
65 DEFINE_STANDARD_RTTI_INLINE(GeomAdaptor_GHCurve,Adaptor3d_HCurve)
70 GeomAdaptor_Curve myCurve;
80 #define TheCurve GeomAdaptor_Curve
81 #define TheCurve_hxx <GeomAdaptor_Curve.hxx>
82 #define Adaptor3d_GenHCurve GeomAdaptor_GHCurve
83 #define Adaptor3d_GenHCurve_hxx <GeomAdaptor_GHCurve.hxx>
84 #define Handle_Adaptor3d_GenHCurve Handle(GeomAdaptor_GHCurve)
86 #include <Adaptor3d_GenHCurve.lxx>
90 #undef Adaptor3d_GenHCurve
91 #undef Adaptor3d_GenHCurve_hxx
92 #undef Handle_Adaptor3d_GenHCurve
97 #endif // _GeomAdaptor_GHCurve_HeaderFile