0027664: Incomplete intersection curve from the attached shapes
[occt.git] / src / IntPatch / IntPatch_TheSegmentOfTheSOnBounds.hxx
1 // Created on: 1992-05-06
2 // Created by: Jacques GOUSSARD
3 // Copyright (c) 1992-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 _IntPatch_TheSegmentOfTheSOnBounds_HeaderFile
18 #define _IntPatch_TheSegmentOfTheSOnBounds_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Standard_Boolean.hxx>
25 #include <IntPatch_ThePathPointOfTheSOnBounds.hxx>
26 class Adaptor2d_HCurve2d;
27 class Standard_DomainError;
28 class Adaptor3d_HVertex;
29 class IntPatch_ThePathPointOfTheSOnBounds;
30
31
32
33 class IntPatch_TheSegmentOfTheSOnBounds 
34 {
35 public:
36
37   DEFINE_STANDARD_ALLOC
38
39   
40   //! Empty constructor.
41   Standard_EXPORT IntPatch_TheSegmentOfTheSOnBounds();
42   
43   //! Defines the concerned arc.
44     void SetValue (const Handle(Adaptor2d_HCurve2d)& A);
45   
46   //! Defines the first point or the last point,
47   //! depending on the value of the boolean First.
48   Standard_EXPORT void SetLimitPoint (const IntPatch_ThePathPointOfTheSOnBounds& V, const Standard_Boolean First);
49   
50   //! Returns the geometric curve on the surface 's domain
51   //! which is solution.
52     const Handle(Adaptor2d_HCurve2d)& Curve() const;
53   
54   //! Returns True if there is a vertex (ThePathPoint) defining
55   //! the lowest valid parameter on the arc.
56     Standard_Boolean HasFirstPoint() const;
57   
58   //! Returns the first point.
59     const IntPatch_ThePathPointOfTheSOnBounds& FirstPoint() const;
60   
61   //! Returns True if there is a vertex (ThePathPoint) defining
62   //! the greatest valid parameter on the arc.
63     Standard_Boolean HasLastPoint() const;
64   
65   //! Returns the last point.
66     const IntPatch_ThePathPointOfTheSOnBounds& LastPoint() const;
67
68
69
70
71 protected:
72
73
74
75
76
77 private:
78
79
80
81   Handle(Adaptor2d_HCurve2d) arc;
82   Standard_Boolean hasfp;
83   IntPatch_ThePathPointOfTheSOnBounds thefp;
84   Standard_Boolean haslp;
85   IntPatch_ThePathPointOfTheSOnBounds thelp;
86
87
88 };
89
90 #define TheVertex Handle(Adaptor3d_HVertex)
91 #define TheVertex_hxx <Adaptor3d_HVertex.hxx>
92 #define TheArc Handle(Adaptor2d_HCurve2d)
93 #define TheArc_hxx <Adaptor2d_HCurve2d.hxx>
94 #define ThePathPoint IntPatch_ThePathPointOfTheSOnBounds
95 #define ThePathPoint_hxx <IntPatch_ThePathPointOfTheSOnBounds.hxx>
96 #define IntStart_Segment IntPatch_TheSegmentOfTheSOnBounds
97 #define IntStart_Segment_hxx <IntPatch_TheSegmentOfTheSOnBounds.hxx>
98
99 #include <IntStart_Segment.lxx>
100
101 #undef TheVertex
102 #undef TheVertex_hxx
103 #undef TheArc
104 #undef TheArc_hxx
105 #undef ThePathPoint
106 #undef ThePathPoint_hxx
107 #undef IntStart_Segment
108 #undef IntStart_Segment_hxx
109
110
111
112
113 #endif // _IntPatch_TheSegmentOfTheSOnBounds_HeaderFile