38ac550631fb05b77f9971d2f5f78091a36e87f7
[occt.git] / src / BRepClass / BRepClass_FacePassiveClassifier.hxx
1 // Created on: 1992-11-18
2 // Created by: Remi LEQUETTE
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 _BRepClass_FacePassiveClassifier_HeaderFile
18 #define _BRepClass_FacePassiveClassifier_HeaderFile
19
20 #include <Standard.hxx>
21 #include <Standard_DefineAlloc.hxx>
22 #include <Standard_Handle.hxx>
23
24 #include <Standard_Boolean.hxx>
25 #include <gp_Lin2d.hxx>
26 #include <Standard_Real.hxx>
27 #include <TopTrans_CurveTransition.hxx>
28 #include <BRepClass_Intersector.hxx>
29 #include <Standard_Integer.hxx>
30 #include <TopAbs_State.hxx>
31 #include <TopAbs_Orientation.hxx>
32 class Standard_DomainError;
33 class BRepClass_Edge;
34 class BRepClass_Intersector;
35 class gp_Lin2d;
36
37
38
39 class BRepClass_FacePassiveClassifier 
40 {
41 public:
42
43   DEFINE_STANDARD_ALLOC
44
45   
46   Standard_EXPORT BRepClass_FacePassiveClassifier();
47   
48   Standard_EXPORT void Reset (const gp_Lin2d& L, const Standard_Real P, const Standard_Real Tol);
49   
50   Standard_EXPORT void Compare (const BRepClass_Edge& E, const TopAbs_Orientation Or);
51   
52     Standard_Real Parameter() const;
53   
54     BRepClass_Intersector& Intersector();
55   
56     Standard_Integer ClosestIntersection() const;
57   
58     TopAbs_State State() const;
59   
60     Standard_Boolean IsHeadOrEnd() const;
61
62
63
64
65 protected:
66
67
68
69
70
71 private:
72
73
74
75   Standard_Boolean myIsSet;
76   Standard_Boolean myFirstCompare;
77   Standard_Boolean myFirstTrans;
78   gp_Lin2d myLin;
79   Standard_Real myParam;
80   Standard_Real myTolerance;
81   TopTrans_CurveTransition myTrans;
82   BRepClass_Intersector myIntersector;
83   Standard_Integer myClosest;
84   TopAbs_State myState;
85   Standard_Boolean myIsHeadOrEnd;
86
87
88 };
89
90 #define TheEdge BRepClass_Edge
91 #define TheEdge_hxx <BRepClass_Edge.hxx>
92 #define TheIntersector BRepClass_Intersector
93 #define TheIntersector_hxx <BRepClass_Intersector.hxx>
94 #define TopClass_Classifier2d BRepClass_FacePassiveClassifier
95 #define TopClass_Classifier2d_hxx <BRepClass_FacePassiveClassifier.hxx>
96
97 #include <TopClass_Classifier2d.lxx>
98
99 #undef TheEdge
100 #undef TheEdge_hxx
101 #undef TheIntersector
102 #undef TheIntersector_hxx
103 #undef TopClass_Classifier2d
104 #undef TopClass_Classifier2d_hxx
105
106
107
108
109 #endif // _BRepClass_FacePassiveClassifier_HeaderFile