b311480e |
1 | // Created on: 1995-02-08 |
2 | // Created by: Jacques GOUSSARD |
3 | // Copyright (c) 1995-1999 Matra Datavision |
973c2be1 |
4 | // Copyright (c) 1999-2014 OPEN CASCADE SAS |
b311480e |
5 | // |
973c2be1 |
6 | // This file is part of Open CASCADE Technology software library. |
b311480e |
7 | // |
d5f74e42 |
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 |
973c2be1 |
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. |
b311480e |
13 | // |
973c2be1 |
14 | // Alternatively, this file may be used under the terms of Open CASCADE |
15 | // commercial license or contractual agreement. |
7fd59977 |
16 | |
7fd59977 |
17 | |
42cf5bc1 |
18 | #include <GeomInt_ParameterAndOrientation.hxx> |
7fd59977 |
19 | |
20 | //======================================================================= |
21 | //function : GeomInt_ParameterAndOrientation |
22 | //purpose : |
23 | //======================================================================= |
b311480e |
24 | GeomInt_ParameterAndOrientation::GeomInt_ParameterAndOrientation() : |
7fd59977 |
25 | prm(0.0),or1(TopAbs_FORWARD),or2(TopAbs_FORWARD) |
26 | {} |
27 | |
28 | |
29 | |
30 | //======================================================================= |
31 | //function : GeomInt_ParameterAndOrientation |
32 | //purpose : |
33 | //======================================================================= |
34 | GeomInt_ParameterAndOrientation::GeomInt_ParameterAndOrientation |
35 | (const Standard_Real P, |
36 | const TopAbs_Orientation Or1, |
37 | const TopAbs_Orientation Or2) : prm(P), or1(Or1), or2(Or2) |
38 | {} |
39 | |
40 | |
41 | |
42 | //======================================================================= |
43 | //function : SetOrientation1 |
44 | //purpose : |
45 | //======================================================================= |
46 | void GeomInt_ParameterAndOrientation::SetOrientation1 |
47 | (const TopAbs_Orientation Or1) |
48 | { |
49 | or1 = Or1; |
50 | } |
51 | |
52 | |
53 | //======================================================================= |
54 | //function : SetOrientation2 |
55 | //purpose : |
56 | //======================================================================= |
57 | void GeomInt_ParameterAndOrientation::SetOrientation2 |
58 | (const TopAbs_Orientation Or2) |
59 | { |
60 | or2 = Or2; |
61 | } |
62 | |
63 | |
64 | //======================================================================= |
65 | //function : Parameter |
66 | //purpose : |
67 | //======================================================================= |
68 | Standard_Real GeomInt_ParameterAndOrientation::Parameter () const |
69 | { |
70 | return prm; |
71 | } |
72 | |
73 | |
74 | //======================================================================= |
75 | //function : Orientation1 |
76 | //purpose : |
77 | //======================================================================= |
78 | TopAbs_Orientation GeomInt_ParameterAndOrientation::Orientation1 () const |
79 | { |
80 | return or1; |
81 | } |
82 | |
83 | |
84 | //======================================================================= |
85 | //function : Orientation2 |
86 | //purpose : |
87 | //======================================================================= |
88 | TopAbs_Orientation GeomInt_ParameterAndOrientation::Orientation2 () const |
89 | { |
90 | return or2; |
91 | } |
92 | |
93 | |