summaryrefslogtreecommitdiff
path: root/inc/BooleanOperations_ShapeAndInterferences.lxx
blob: ba95bf29d63c75a96cd87ffbf4e716dec2c53803 (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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
// File:	BooleanOperations_ShapeAndInterferences.lxx
// Created:	Tue Jul 25 11:53:21 2000
// Author:	Vincent DELOS
//		<vds@bulox.paris1.matra-dtv.fr>


//===========================================================================
//function : GetShape
//purpose  : 
//===========================================================================
  inline  const TopoDS_Shape& BooleanOperations_ShapeAndInterferences::GetShape() const
{
  return myShape;
}
//===========================================================================
//function : GetShapeType
//purpose  : 
//===========================================================================
  inline  TopAbs_ShapeEnum BooleanOperations_ShapeAndInterferences::GetShapeType() const
{
  return myShape.ShapeType();
}
//===========================================================================
//function : GetState
//purpose  : 
//===========================================================================
  inline  BooleanOperations_StateOfShape BooleanOperations_ShapeAndInterferences::GetState() const
{
  return myState;
}
//===========================================================================
//function : SetState
//purpose  : 
//===========================================================================
  inline  void BooleanOperations_ShapeAndInterferences::SetState(const BooleanOperations_StateOfShape theState) 
{
  myState = theState;
}
//===========================================================================
//function : GetBoundingBox
//purpose  : 
//===========================================================================
  inline  const Bnd_Box& BooleanOperations_ShapeAndInterferences::GetBoundingBox() const
{
  return myBoundingBox;
}
//===========================================================================
//function : GetAncestor
//purpose  : 
//===========================================================================
  inline  Standard_Integer BooleanOperations_ShapeAndInterferences::GetAncestor
    (const Standard_Integer index) const
{
  Standard_Integer anc =  myAncestorsAndSuccessors.GetAncestor(index);
  return anc;
}
//===========================================================================
//function : GetSuccessor
//purpose  : 
//===========================================================================
  inline  Standard_Integer BooleanOperations_ShapeAndInterferences::GetSuccessor
    (const Standard_Integer index) const
{
  Standard_Integer suc = myAncestorsAndSuccessors.GetSuccessor(index);
  return suc;
}



//===========================================================================
//function : NumberOfAncestors
//purpose  : 
//===========================================================================
  inline  Standard_Integer BooleanOperations_ShapeAndInterferences::NumberOfAncestors() const
{
  return myAncestorsAndSuccessors.NumberOfAncestors();
}


//===========================================================================
//function : NumberOfSuccessors
//purpose  : 
//===========================================================================
  inline  Standard_Integer BooleanOperations_ShapeAndInterferences::NumberOfSuccessors() const
{
  return myAncestorsAndSuccessors.NumberOfSuccessors();
}
//===========================================================================
//function : GetAncestors
//purpose  : 
//===========================================================================
  inline  void BooleanOperations_ShapeAndInterferences::GetAncestors
    (Standard_Address& theArrayOfAncestors,
     Standard_Integer& AncestorsSize) const
{
  myAncestorsAndSuccessors.GetAncestors(theArrayOfAncestors,AncestorsSize);
}
//===========================================================================
//function : GetSuccessors
//purpose  : 
//===========================================================================
  inline  void BooleanOperations_ShapeAndInterferences::GetSuccessors
    (Standard_Address& theArrayOfSuccessors,
     Standard_Integer& SuccessorsSize) const
{
  myAncestorsAndSuccessors.GetSuccessors(theArrayOfSuccessors,SuccessorsSize);
}
//===========================================================================
//function : GetOrientation
//purpose  : 
//===========================================================================
  inline  TopAbs_Orientation BooleanOperations_ShapeAndInterferences::GetOrientation
    (const Standard_Integer index) const
{
  TopAbs_Orientation suc = myAncestorsAndSuccessors.GetOrientation(index);
  return suc;
}
//===========================================================================
//function : GetOrientations
//purpose  : 
//===========================================================================
  inline  void BooleanOperations_ShapeAndInterferences::GetOrientations
    (Standard_Address& theArrayOfOrientations,
     Standard_Integer& OrientationsSize) const
{
  myAncestorsAndSuccessors.GetOrientations(theArrayOfOrientations,OrientationsSize);
}

//modified by NIZNHY-PKV Wed Feb  2 12:56:35 2005 f
/*
//===========================================================================
//function : GetInterference
//purpose  : 
//===========================================================================
  inline const BooleanOperations_InterferenceResult& 
    BooleanOperations_ShapeAndInterferences::GetInterference
      (const Standard_Integer index) const
{
  const BooleanOperations_InterferenceResult& Interf = myInterferencesList.GetInterference(index);
  return Interf;
}
//===========================================================================
//function : NumberOfInterferences
//purpose  : 
//===========================================================================
  inline  Standard_Integer BooleanOperations_ShapeAndInterferences::NumberOfInterferences() const
{
  return myInterferencesList.NumberOfInterferences();
}
//===========================================================================
//function : GetIntersectionResult
//purpose  : 
//===========================================================================
  inline  Standard_Integer 
    BooleanOperations_ShapeAndInterferences::GetIntersectionResult
      (const Standard_Integer index) const
{
  return myInterferencesList.GetIntersectionResult(index);
}
//===========================================================================
//function : GetIntersectedShape
//purpose  : 
//===========================================================================
  inline  Standard_Integer 
    BooleanOperations_ShapeAndInterferences::GetIntersectedShape
      (const Standard_Integer index) const
{
  return myInterferencesList.GetIntersectedShape(index);
}

*/
//modified by NIZNHY-PKV Wed Feb  2 12:56:43 2005 t