7fd59977 |
1 | // File: BooleanOperations_AncestorsSeqAndSuccessorsSeq.lxx |
2 | // Created: Thu Aug 17 10:16:26 2000 |
3 | // Author: Vincent DELOS |
4 | // <vds@bulox.paris1.matra-dtv.fr> |
5 | |
6 | |
7 | //=========================================================================== |
8 | //function : GetAncestor |
9 | //purpose : |
10 | //=========================================================================== |
11 | inline Standard_Integer BooleanOperations_AncestorsSeqAndSuccessorsSeq::GetAncestor |
12 | (const Standard_Integer AncestorIndex) const |
13 | { |
14 | return myAncestors.Value(AncestorIndex); |
15 | } |
16 | |
17 | |
18 | //=========================================================================== |
19 | //function : GetSuccessor |
20 | //purpose : |
21 | //=========================================================================== |
22 | inline Standard_Integer BooleanOperations_AncestorsSeqAndSuccessorsSeq::GetSuccessor |
23 | (const Standard_Integer SuccessorIndex) const |
24 | { |
25 | return mySuccessors.Value(SuccessorIndex); |
26 | } |
27 | |
28 | |
29 | //=========================================================================== |
30 | //function : GetOrientation |
31 | //purpose : |
32 | //=========================================================================== |
33 | inline TopAbs_Orientation BooleanOperations_AncestorsSeqAndSuccessorsSeq::GetOrientation |
34 | (const Standard_Integer OrientationIndex) const |
35 | { |
36 | return (TopAbs_Orientation)myOrientations.Value(OrientationIndex); |
37 | } |
38 | |
39 | //=========================================================================== |
40 | //function : NumberOfSuccessors |
41 | //purpose : |
42 | //=========================================================================== |
43 | inline Standard_Integer BooleanOperations_AncestorsSeqAndSuccessorsSeq::NumberOfSuccessors() const |
44 | { |
45 | return mySuccessors.Length(); |
46 | } |
47 | |
48 | //=========================================================================== |
49 | //function : NumberOfAncestors |
50 | //purpose : |
51 | //=========================================================================== |
52 | inline Standard_Integer BooleanOperations_AncestorsSeqAndSuccessorsSeq::NumberOfAncestors() const |
53 | { |
54 | return myAncestors.Length(); |
55 | } |
56 | |
57 | //=========================================================================== |
58 | //function : SetNewAncestor |
59 | //purpose : |
60 | //=========================================================================== |
61 | inline void BooleanOperations_AncestorsSeqAndSuccessorsSeq::SetNewAncestor |
62 | (const Standard_Integer AncestorNumber) |
63 | { |
64 | myAncestors.Append(AncestorNumber); |
65 | } |
66 | |
67 | //=========================================================================== |
68 | //function : SetNewSuccessor |
69 | //purpose : |
70 | //=========================================================================== |
71 | inline void BooleanOperations_AncestorsSeqAndSuccessorsSeq::SetNewSuccessor |
72 | (const Standard_Integer SuccessorNumber) |
73 | { |
74 | mySuccessors.Append(SuccessorNumber); |
75 | } |
76 | |
77 | //=========================================================================== |
78 | //function : SetNewOrientation |
79 | //purpose : |
80 | //=========================================================================== |
81 | inline void BooleanOperations_AncestorsSeqAndSuccessorsSeq::SetNewOrientation |
82 | (const TopAbs_Orientation OrientationNumber) |
83 | { |
84 | myOrientations.Append((Standard_Integer)OrientationNumber); |
85 | } |