1 // Created on: 1993-02-05
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1993-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 _Contap_TheSegmentOfTheSearch_HeaderFile
18 #define _Contap_TheSegmentOfTheSearch_HeaderFile
20 #include <Adaptor2d_Curve2d.hxx>
21 #include <Contap_ThePathPointOfTheSearch.hxx>
23 class Standard_DomainError;
24 class Adaptor3d_HVertex;
25 class Contap_ThePathPointOfTheSearch;
27 class Contap_TheSegmentOfTheSearch
34 //! Empty constructor.
35 Standard_EXPORT Contap_TheSegmentOfTheSearch();
37 //! Defines the concerned arc.
38 void SetValue (const Handle(Adaptor2d_Curve2d)& A);
40 //! Defines the first point or the last point,
41 //! depending on the value of the boolean First.
42 Standard_EXPORT void SetLimitPoint (const Contap_ThePathPointOfTheSearch& V, const Standard_Boolean First);
44 //! Returns the geometric curve on the surface 's domain
45 //! which is solution.
46 const Handle(Adaptor2d_Curve2d)& Curve() const;
48 //! Returns True if there is a vertex (ThePathPoint) defining
49 //! the lowest valid parameter on the arc.
50 Standard_Boolean HasFirstPoint() const;
52 //! Returns the first point.
53 const Contap_ThePathPointOfTheSearch& FirstPoint() const;
55 //! Returns True if there is a vertex (ThePathPoint) defining
56 //! the greatest valid parameter on the arc.
57 Standard_Boolean HasLastPoint() const;
59 //! Returns the last point.
60 const Contap_ThePathPointOfTheSearch& LastPoint() const;
75 Handle(Adaptor2d_Curve2d) arc;
76 Standard_Boolean hasfp;
77 Contap_ThePathPointOfTheSearch thefp;
78 Standard_Boolean haslp;
79 Contap_ThePathPointOfTheSearch thelp;
84 #define TheVertex Handle(Adaptor3d_HVertex)
85 #define TheVertex_hxx <Adaptor3d_HVertex.hxx>
86 #define TheArc Handle(Adaptor2d_Curve2d)
87 #define TheArc_hxx <Adaptor2d_Curve2d.hxx>
88 #define ThePathPoint Contap_ThePathPointOfTheSearch
89 #define ThePathPoint_hxx <Contap_ThePathPointOfTheSearch.hxx>
90 #define IntStart_Segment Contap_TheSegmentOfTheSearch
91 #define IntStart_Segment_hxx <Contap_TheSegmentOfTheSearch.hxx>
93 #include <IntStart_Segment.lxx>
100 #undef ThePathPoint_hxx
101 #undef IntStart_Segment
102 #undef IntStart_Segment_hxx
107 #endif // _Contap_TheSegmentOfTheSearch_HeaderFile