summaryrefslogtreecommitdiff
path: root/inc/FairCurve_Batten.lxx
blob: 1803a953e90ae0be284928435c6c321c6036905f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
// File:	FairCurve_Batten.lxx
// Created:	Mon Feb  5 09:34:00 1996
// Author:	Philippe MANGIN

#include <Standard_NegativeValue.hxx>

inline Standard_OStream& operator<< (Standard_OStream& o, 
				     const FairCurve_Batten& Bat) 
{
  Bat.Dump(o);
  return o;
}

inline void FairCurve_Batten::SetFreeSliding(const Standard_Boolean FreeSliding)
{
  NewFreeSliding = FreeSliding;
}

inline void FairCurve_Batten::SetConstraintOrder1(const Standard_Integer ConstraintOrder)
{
  NewConstraintOrder1 = ConstraintOrder;
}

inline void FairCurve_Batten::SetConstraintOrder2(const Standard_Integer ConstraintOrder)
{
  NewConstraintOrder2 = ConstraintOrder;
}

inline void FairCurve_Batten::SetAngle1(const Standard_Real Angle1)
{
  NewAngle1 = Angle1;
}

inline void FairCurve_Batten::SetAngle2(const Standard_Real Angle2)
{
  NewAngle2 = Angle2;
}

 inline void FairCurve_Batten::SetHeight(const Standard_Real Height)
{
  if (Height <= 0) 
    Standard_NegativeValue::Raise("FairCurve : Height is no positive");  
  NewHeight = Height;
}

inline void FairCurve_Batten::SetSlope(const Standard_Real Slope)
{
  NewSlope = Slope;
}

inline void FairCurve_Batten::SetSlidingFactor(const Standard_Real SlidingFactor)
{
  NewSlidingFactor = SlidingFactor;
}

inline Standard_Boolean FairCurve_Batten::GetFreeSliding() const 
{
  return OldFreeSliding;
}

inline Standard_Integer FairCurve_Batten::GetConstraintOrder1() const 
{
  return OldConstraintOrder1;
}

inline Standard_Integer FairCurve_Batten::GetConstraintOrder2() const 
{
  return OldConstraintOrder2;
}

inline const gp_Pnt2d& FairCurve_Batten::GetP1() const 
{
  return OldP1;
}

inline const gp_Pnt2d& FairCurve_Batten::GetP2() const 
{
  return OldP2;
}

inline Standard_Real FairCurve_Batten::GetAngle1() const 
{
  return OldAngle1;
}

inline Standard_Real FairCurve_Batten::GetAngle2() const 
{
  return OldAngle2;
}

inline Standard_Real FairCurve_Batten::GetHeight() const 
{
  return OldHeight;
}

inline Standard_Real FairCurve_Batten::GetSlope() const 
{
  return OldSlope;
}

inline Standard_Real FairCurve_Batten::GetSlidingFactor() const 
{
  return OldSlidingFactor;
}