42cf5bc1 |
1 | // Created on: 1993-10-29 |
2 | // Created by: Jean Marc LACHAUME |
3 | // Copyright (c) 1993-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 _HatchGen_IntersectionPoint_HeaderFile |
18 | #define _HatchGen_IntersectionPoint_HeaderFile |
19 | |
20 | #include <Standard.hxx> |
21 | #include <Standard_DefineAlloc.hxx> |
22 | #include <Standard_Handle.hxx> |
23 | |
42cf5bc1 |
24 | #include <Standard_Real.hxx> |
25 | #include <TopAbs_Orientation.hxx> |
26 | #include <TopAbs_State.hxx> |
27 | #include <Standard_Boolean.hxx> |
28 | |
29 | |
30 | |
31 | class HatchGen_IntersectionPoint |
32 | { |
33 | public: |
34 | |
35 | DEFINE_STANDARD_ALLOC |
36 | |
37 | |
38 | //! Sets the index of the supporting curve. |
39 | Standard_EXPORT void SetIndex (const Standard_Integer Index); |
40 | |
41 | //! Returns the index of the supporting curve. |
42 | Standard_EXPORT Standard_Integer Index() const; |
43 | |
44 | //! Sets the parameter on the curve. |
45 | Standard_EXPORT void SetParameter (const Standard_Real Parameter); |
46 | |
47 | //! Returns the parameter on the curve. |
48 | Standard_EXPORT Standard_Real Parameter() const; |
49 | |
50 | //! Sets the position of the point on the curve. |
51 | Standard_EXPORT void SetPosition (const TopAbs_Orientation Position); |
52 | |
53 | //! Returns the position of the point on the curve. |
54 | Standard_EXPORT TopAbs_Orientation Position() const; |
55 | |
56 | //! Sets the transition state before the intersection. |
57 | Standard_EXPORT void SetStateBefore (const TopAbs_State State); |
58 | |
59 | //! Returns the transition state before the intersection. |
60 | Standard_EXPORT TopAbs_State StateBefore() const; |
61 | |
62 | //! Sets the transition state after the intersection. |
63 | Standard_EXPORT void SetStateAfter (const TopAbs_State State); |
64 | |
65 | //! Returns the transition state after of the intersection. |
66 | Standard_EXPORT TopAbs_State StateAfter() const; |
67 | |
68 | //! Sets the flag that the point is the beginning of a segment. |
69 | Standard_EXPORT void SetSegmentBeginning (const Standard_Boolean State = Standard_True); |
70 | |
71 | //! Returns the flag that the point is the beginning of a segment. |
72 | Standard_EXPORT Standard_Boolean SegmentBeginning() const; |
73 | |
74 | //! Sets the flag that the point is the end of a segment. |
75 | Standard_EXPORT void SetSegmentEnd (const Standard_Boolean State = Standard_True); |
76 | |
77 | //! Returns the flag that the point is the end of a segment. |
78 | Standard_EXPORT Standard_Boolean SegmentEnd() const; |
79 | |
80 | //! Dump of the point on element. |
81 | Standard_EXPORT virtual void Dump (const Standard_Integer Index = 0) const = 0; |
42cf5bc1 |
82 | |
83 | protected: |
42cf5bc1 |
84 | |
85 | //! Creates an empty intersection point. |
86 | Standard_EXPORT HatchGen_IntersectionPoint(); |
87 | |
6928e351 |
88 | //! Destructor is protected for safer inheritance |
89 | ~HatchGen_IntersectionPoint() {} |
90 | |
91 | protected: |
42cf5bc1 |
92 | |
93 | Standard_Integer myIndex; |
94 | Standard_Real myParam; |
95 | TopAbs_Orientation myPosit; |
96 | TopAbs_State myBefore; |
97 | TopAbs_State myAfter; |
98 | Standard_Boolean mySegBeg; |
99 | Standard_Boolean mySegEnd; |
42cf5bc1 |
100 | }; |
101 | |
42cf5bc1 |
102 | #endif // _HatchGen_IntersectionPoint_HeaderFile |