Adding of testing cases from subgroups 937 940 and 941 of CHL group
[occt.git] / src / BooleanOperations / BooleanOperations_ShapeAndInterferences.lxx
CommitLineData
b311480e 1// Created on: 2000-07-25
2// Created by: Vincent DELOS
3// Copyright (c) 2000-2012 OPEN CASCADE SAS
4//
5// The content of this file is subject to the Open CASCADE Technology Public
6// License Version 6.5 (the "License"). You may not use the content of this file
7// except in compliance with the License. Please obtain a copy of the License
8// at http://www.opencascade.org and read it completely before using this file.
9//
10// The Initial Developer of the Original Code is Open CASCADE S.A.S., having its
11// main offices at: 1, place des Freres Montgolfier, 78280 Guyancourt, France.
12//
13// The Original Code and all software distributed under the License is
14// distributed on an "AS IS" basis, without warranty of any kind, and the
15// Initial Developer hereby disclaims all such warranties, including without
16// limitation, any warranties of merchantability, fitness for a particular
17// purpose or non-infringement. Please see the License for the specific terms
18// and conditions governing the rights and limitations under the License.
19
7fd59977 20
21
22//===========================================================================
23//function : GetShape
24//purpose :
25//===========================================================================
b311480e 26inline const TopoDS_Shape& BooleanOperations_ShapeAndInterferences::GetShape() const
7fd59977 27{
28 return myShape;
29}
30//===========================================================================
31//function : GetShapeType
32//purpose :
33//===========================================================================
34 inline TopAbs_ShapeEnum BooleanOperations_ShapeAndInterferences::GetShapeType() const
35{
36 return myShape.ShapeType();
37}
38//===========================================================================
39//function : GetState
40//purpose :
41//===========================================================================
42 inline BooleanOperations_StateOfShape BooleanOperations_ShapeAndInterferences::GetState() const
43{
44 return myState;
45}
46//===========================================================================
47//function : SetState
48//purpose :
49//===========================================================================
50 inline void BooleanOperations_ShapeAndInterferences::SetState(const BooleanOperations_StateOfShape theState)
51{
52 myState = theState;
53}
54//===========================================================================
55//function : GetBoundingBox
56//purpose :
57//===========================================================================
58 inline const Bnd_Box& BooleanOperations_ShapeAndInterferences::GetBoundingBox() const
59{
60 return myBoundingBox;
61}
62//===========================================================================
63//function : GetAncestor
64//purpose :
65//===========================================================================
66 inline Standard_Integer BooleanOperations_ShapeAndInterferences::GetAncestor
67 (const Standard_Integer index) const
68{
69 Standard_Integer anc = myAncestorsAndSuccessors.GetAncestor(index);
70 return anc;
71}
72//===========================================================================
73//function : GetSuccessor
74//purpose :
75//===========================================================================
76 inline Standard_Integer BooleanOperations_ShapeAndInterferences::GetSuccessor
77 (const Standard_Integer index) const
78{
79 Standard_Integer suc = myAncestorsAndSuccessors.GetSuccessor(index);
80 return suc;
81}
82
83
84
85//===========================================================================
86//function : NumberOfAncestors
87//purpose :
88//===========================================================================
89 inline Standard_Integer BooleanOperations_ShapeAndInterferences::NumberOfAncestors() const
90{
91 return myAncestorsAndSuccessors.NumberOfAncestors();
92}
93
94
95//===========================================================================
96//function : NumberOfSuccessors
97//purpose :
98//===========================================================================
99 inline Standard_Integer BooleanOperations_ShapeAndInterferences::NumberOfSuccessors() const
100{
101 return myAncestorsAndSuccessors.NumberOfSuccessors();
102}
103//===========================================================================
104//function : GetAncestors
105//purpose :
106//===========================================================================
107 inline void BooleanOperations_ShapeAndInterferences::GetAncestors
108 (Standard_Address& theArrayOfAncestors,
109 Standard_Integer& AncestorsSize) const
110{
111 myAncestorsAndSuccessors.GetAncestors(theArrayOfAncestors,AncestorsSize);
112}
113//===========================================================================
114//function : GetSuccessors
115//purpose :
116//===========================================================================
117 inline void BooleanOperations_ShapeAndInterferences::GetSuccessors
118 (Standard_Address& theArrayOfSuccessors,
119 Standard_Integer& SuccessorsSize) const
120{
121 myAncestorsAndSuccessors.GetSuccessors(theArrayOfSuccessors,SuccessorsSize);
122}
123//===========================================================================
124//function : GetOrientation
125//purpose :
126//===========================================================================
127 inline TopAbs_Orientation BooleanOperations_ShapeAndInterferences::GetOrientation
128 (const Standard_Integer index) const
129{
130 TopAbs_Orientation suc = myAncestorsAndSuccessors.GetOrientation(index);
131 return suc;
132}
133//===========================================================================
134//function : GetOrientations
135//purpose :
136//===========================================================================
137 inline void BooleanOperations_ShapeAndInterferences::GetOrientations
138 (Standard_Address& theArrayOfOrientations,
139 Standard_Integer& OrientationsSize) const
140{
141 myAncestorsAndSuccessors.GetOrientations(theArrayOfOrientations,OrientationsSize);
142}
143
144//modified by NIZNHY-PKV Wed Feb 2 12:56:35 2005 f
145/*
146//===========================================================================
147//function : GetInterference
148//purpose :
149//===========================================================================
150 inline const BooleanOperations_InterferenceResult&
151 BooleanOperations_ShapeAndInterferences::GetInterference
152 (const Standard_Integer index) const
153{
154 const BooleanOperations_InterferenceResult& Interf = myInterferencesList.GetInterference(index);
155 return Interf;
156}
157//===========================================================================
158//function : NumberOfInterferences
159//purpose :
160//===========================================================================
161 inline Standard_Integer BooleanOperations_ShapeAndInterferences::NumberOfInterferences() const
162{
163 return myInterferencesList.NumberOfInterferences();
164}
165//===========================================================================
166//function : GetIntersectionResult
167//purpose :
168//===========================================================================
169 inline Standard_Integer
170 BooleanOperations_ShapeAndInterferences::GetIntersectionResult
171 (const Standard_Integer index) const
172{
173 return myInterferencesList.GetIntersectionResult(index);
174}
175//===========================================================================
176//function : GetIntersectedShape
177//purpose :
178//===========================================================================
179 inline Standard_Integer
180 BooleanOperations_ShapeAndInterferences::GetIntersectedShape
181 (const Standard_Integer index) const
182{
183 return myInterferencesList.GetIntersectedShape(index);
184}
185
186*/
187//modified by NIZNHY-PKV Wed Feb 2 12:56:43 2005 t