b311480e |
1 | // Created on: 1996-02-05 |
2 | // Created by: Philippe MANGIN |
3 | // Copyright (c) 1996-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 | |
17 | #include <Standard_NegativeValue.hxx> |
18 | |
19 | inline Standard_OStream& operator<< (Standard_OStream& o, |
20 | const FairCurve_Batten& Bat) |
21 | { |
22 | Bat.Dump(o); |
23 | return o; |
24 | } |
25 | |
26 | inline void FairCurve_Batten::SetFreeSliding(const Standard_Boolean FreeSliding) |
27 | { |
28 | NewFreeSliding = FreeSliding; |
29 | } |
30 | |
31 | inline void FairCurve_Batten::SetConstraintOrder1(const Standard_Integer ConstraintOrder) |
32 | { |
33 | NewConstraintOrder1 = ConstraintOrder; |
34 | } |
35 | |
36 | inline void FairCurve_Batten::SetConstraintOrder2(const Standard_Integer ConstraintOrder) |
37 | { |
38 | NewConstraintOrder2 = ConstraintOrder; |
39 | } |
40 | |
41 | inline void FairCurve_Batten::SetAngle1(const Standard_Real Angle1) |
42 | { |
43 | NewAngle1 = Angle1; |
44 | } |
45 | |
46 | inline void FairCurve_Batten::SetAngle2(const Standard_Real Angle2) |
47 | { |
48 | NewAngle2 = Angle2; |
49 | } |
50 | |
51 | inline void FairCurve_Batten::SetHeight(const Standard_Real Height) |
52 | { |
53 | if (Height <= 0) |
9775fa61 |
54 | throw Standard_NegativeValue("FairCurve : Height is no positive"); |
7fd59977 |
55 | NewHeight = Height; |
56 | } |
57 | |
58 | inline void FairCurve_Batten::SetSlope(const Standard_Real Slope) |
59 | { |
60 | NewSlope = Slope; |
61 | } |
62 | |
63 | inline void FairCurve_Batten::SetSlidingFactor(const Standard_Real SlidingFactor) |
64 | { |
65 | NewSlidingFactor = SlidingFactor; |
66 | } |
67 | |
68 | inline Standard_Boolean FairCurve_Batten::GetFreeSliding() const |
69 | { |
70 | return OldFreeSliding; |
71 | } |
72 | |
73 | inline Standard_Integer FairCurve_Batten::GetConstraintOrder1() const |
74 | { |
75 | return OldConstraintOrder1; |
76 | } |
77 | |
78 | inline Standard_Integer FairCurve_Batten::GetConstraintOrder2() const |
79 | { |
80 | return OldConstraintOrder2; |
81 | } |
82 | |
83 | inline const gp_Pnt2d& FairCurve_Batten::GetP1() const |
84 | { |
85 | return OldP1; |
86 | } |
87 | |
88 | inline const gp_Pnt2d& FairCurve_Batten::GetP2() const |
89 | { |
90 | return OldP2; |
91 | } |
92 | |
93 | inline Standard_Real FairCurve_Batten::GetAngle1() const |
94 | { |
95 | return OldAngle1; |
96 | } |
97 | |
98 | inline Standard_Real FairCurve_Batten::GetAngle2() const |
99 | { |
100 | return OldAngle2; |
101 | } |
102 | |
103 | inline Standard_Real FairCurve_Batten::GetHeight() const |
104 | { |
105 | return OldHeight; |
106 | } |
107 | |
108 | inline Standard_Real FairCurve_Batten::GetSlope() const |
109 | { |
110 | return OldSlope; |
111 | } |
112 | |
113 | inline Standard_Real FairCurve_Batten::GetSlidingFactor() const |
114 | { |
115 | return OldSlidingFactor; |
116 | } |
117 | |