1 // Created on: 2000-11-23
2 // Created by: Michael KLOKOV
3 // Copyright (c) 2000-2014 OPEN CASCADE SAS
5 // This file is part of Open CASCADE Technology software library.
7 // This library is free software; you can redistribute it and/or modify it under
8 // the terms of the GNU Lesser General Public License version 2.1 as published
9 // by the Free Software Foundation, with special exception defined in the file
10 // OCCT_LGPL_EXCEPTION.txt. Consult the file LICENSE_LGPL_21.txt included in OCCT
11 // distribution for complete text of the license and disclaimer of any warranty.
13 // Alternatively, this file may be used under the terms of Open CASCADE
14 // commercial license or contractual agreement.
16 #ifndef _IntTools_Curve_HeaderFile
17 #define _IntTools_Curve_HeaderFile
19 #include <Standard.hxx>
20 #include <Standard_DefineAlloc.hxx>
21 #include <Standard_Handle.hxx>
23 #include <Standard_Boolean.hxx>
24 #include <Standard_Real.hxx>
25 #include <GeomAbs_CurveType.hxx>
31 //! class is a container of
43 Standard_EXPORT IntTools_Curve();
46 //! Initializes me by a 3d curve
48 Standard_EXPORT IntTools_Curve(const Handle(Geom_Curve)& Curve3d, const Handle(Geom2d_Curve)& FirstCurve2d, const Handle(Geom2d_Curve)& SecondCurve2d);
52 Standard_EXPORT void SetCurves (const Handle(Geom_Curve)& Curve3d, const Handle(Geom2d_Curve)& FirstCurve2d, const Handle(Geom2d_Curve)& SecondCurve2d);
56 void SetCurve (const Handle(Geom_Curve)& Curve3d);
60 void SetFirstCurve2d (const Handle(Geom2d_Curve)& FirstCurve2d);
64 void SetSecondCurve2d (const Handle(Geom2d_Curve)& SecondCurve2d);
68 const Handle(Geom_Curve)& Curve() const;
72 const Handle(Geom2d_Curve)& FirstCurve2d() const;
76 const Handle(Geom2d_Curve)& SecondCurve2d() const;
79 //! Returns true if 3d curve is BoundedCurve from Geom
80 Standard_EXPORT Standard_Boolean HasBounds() const;
83 //! Returns boundary parameters
84 //! and corresponded 3d point.
87 //! If HasBounds returns false
88 //! the returned parameters are equal
90 Standard_EXPORT void Bounds (Standard_Real& aT1, Standard_Real& aT2, gp_Pnt& aP1, gp_Pnt& aP2) const;
93 //! Computes 3d point corresponded to parameter aT1
94 //! Returns true if given parameter aT1
95 //! is inside the boundaries of the curve
96 Standard_EXPORT Standard_Boolean D0 (Standard_Real& aT1, gp_Pnt& aP1) const;
99 //! Returns the type of 3d curve
100 Standard_EXPORT GeomAbs_CurveType Type() const;
115 Handle(Geom_Curve) my3dCurve;
116 Handle(Geom2d_Curve) my2dCurve1;
117 Handle(Geom2d_Curve) my2dCurve2;
123 #include <IntTools_Curve.lxx>
129 #endif // _IntTools_Curve_HeaderFile