summaryrefslogtreecommitdiff
path: root/src/ChFiDS/ChFiDS_Regul.cxx
blob: 1605018d67bc3f3e89309922ea9853e4ca71bd6a (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
106
107
108
109
110
// File:	ChFiDS_Regul.cxx
// Created:	Tue Mar 21 11:15:18 1995
// Author:	Laurent BOURESCHE
//		<lbo@phylox>


#include <ChFiDS_Regul.ixx>

//=======================================================================
//function : ChFiDS_Regul
//purpose  : 
//=======================================================================

ChFiDS_Regul::ChFiDS_Regul()
{
}


//=======================================================================
//function : SetCurve
//purpose  : 
//=======================================================================

void ChFiDS_Regul::SetCurve(const Standard_Integer IC)
{
  icurv = Abs(IC);
}


//=======================================================================
//function : SetS1
//purpose  : 
//=======================================================================

void ChFiDS_Regul::SetS1(const Standard_Integer IS1, 
			const Standard_Boolean IsFace)
{
  if(IsFace) is1 = Abs(IS1);
  else is1 = -Abs(IS1);
}


//=======================================================================
//function : SetS2
//purpose  : 
//=======================================================================

void ChFiDS_Regul::SetS2(const Standard_Integer IS2, 
			const Standard_Boolean IsFace)
{
  if(IsFace) is2 = Abs(IS2);
  else is2 = -Abs(IS2);
}


//=======================================================================
//function : IsSurface1
//purpose  : 
//=======================================================================

Standard_Boolean ChFiDS_Regul::IsSurface1() const 
{
  return (is1<0);
}


//=======================================================================
//function : IsSurface2
//purpose  : 
//=======================================================================

Standard_Boolean ChFiDS_Regul::IsSurface2() const 
{
  return (is2<0);
}


//=======================================================================
//function : Curve
//purpose  : 
//=======================================================================

Standard_Integer ChFiDS_Regul::Curve() const 
{
  return icurv;
}


//=======================================================================
//function : S1
//purpose  : 
//=======================================================================

Standard_Integer ChFiDS_Regul::S1() const 
{
  return Abs(is1);
}


//=======================================================================
//function : S2
//purpose  : 
//=======================================================================

Standard_Integer ChFiDS_Regul::S2() const 
{
  return Abs(is2);
}