blob: 540f5a90343aad21a989bdc6d2b53483dd9f7c33 (
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
111
112
113
114
115
116
117
118
119
120
121
122
123
|
// File: BooleanOperations_AncestorsAndSuccessors.lxx
// Created: Tue Jul 25 11:46:44 2000
// Author: Vincent DELOS
// <vds@bulox.paris1.matra-dtv.fr>
//===========================================================================
//function : GetAncestor
//purpose :
//===========================================================================
inline Standard_Integer BooleanOperations_AncestorsAndSuccessors::GetAncestor
(const Standard_Integer AncestorIndex) const
{
Standard_Integer nIndex=((Standard_Integer*)myAncestors)[AncestorIndex-1];
return nIndex;
}
//===========================================================================
//function : GetAncestors
//purpose : returns the array of ancestors.
//===========================================================================
inline void BooleanOperations_AncestorsAndSuccessors::GetAncestors
(Standard_Address& theArrayOfAncestors,
Standard_Integer& AncestorsNumber) const
{
theArrayOfAncestors = (Standard_Integer*)myAncestors;
AncestorsNumber = myAncestorsSize;
}
//===========================================================================
//function : SetAncestor
//purpose :
//===========================================================================
inline void BooleanOperations_AncestorsAndSuccessors::SetAncestor
(const Standard_Integer AncestorIndex,
const Standard_Integer AncestorNumber)
{
((Standard_Integer*)myAncestors)[AncestorIndex-1] = AncestorNumber;
}
//===========================================================================
//function : GetSuccessor
//purpose :
//===========================================================================
inline Standard_Integer BooleanOperations_AncestorsAndSuccessors::GetSuccessor
(const Standard_Integer SuccessorIndex) const
{
Standard_Integer nIndex=((Standard_Integer*)mySuccessors)[SuccessorIndex-1];
return nIndex;
}
//===========================================================================
//function : GetSuccessors
//purpose :
//===========================================================================
inline void BooleanOperations_AncestorsAndSuccessors::GetSuccessors
(Standard_Address& theArrayOfSuccessors,
Standard_Integer& SuccessorsNumber) const
{
SuccessorsNumber = mySuccessorsSize;
theArrayOfSuccessors = (Standard_Integer*)mySuccessors;
}
//===========================================================================
//function : SetSuccessor
//purpose :
//===========================================================================
inline void BooleanOperations_AncestorsAndSuccessors::SetSuccessor
(const Standard_Integer SuccessorIndex,
const Standard_Integer SuccessorNumber)
{
((Standard_Integer*)mySuccessors)[SuccessorIndex-1] = SuccessorNumber;
}
//===========================================================================
//function : NumberOfAncestors
//purpose : returns the number of ancestors
//===========================================================================
inline Standard_Integer BooleanOperations_AncestorsAndSuccessors::NumberOfAncestors() const
{
return myAncestorsSize;
}
//===========================================================================
//function : NumberOfSuccessors
//purpose : returns the number of successors
//===========================================================================
inline Standard_Integer BooleanOperations_AncestorsAndSuccessors::NumberOfSuccessors() const
{
return mySuccessorsSize;
}
//===========================================================================
//function : GetOrientation
//purpose :
//===========================================================================
inline TopAbs_Orientation BooleanOperations_AncestorsAndSuccessors::GetOrientation(const Standard_Integer OrientationIndex) const
{
return ((TopAbs_Orientation*)myOrientations)[OrientationIndex-1];
}
//===========================================================================
//function : GetOrientations
//purpose : returns the array of orientations.
//===========================================================================
inline void BooleanOperations_AncestorsAndSuccessors::GetOrientations
(Standard_Address& theArrayOfOrientations,
Standard_Integer& OrientationsNumber) const
{
OrientationsNumber = mySuccessorsSize;
theArrayOfOrientations = (TopAbs_Orientation*)myOrientations;
}
//===========================================================================
//function : SetOrientation
//purpose :
//===========================================================================
inline void BooleanOperations_AncestorsAndSuccessors::SetOrientation
(const Standard_Integer OrientationIndex,
const TopAbs_Orientation OrientationNumber)
{
((TopAbs_Orientation*)myOrientations)[OrientationIndex-1] = OrientationNumber;
}
|