Version: 9.16.0
GEOM_IShapesOperations_i.hh
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
4// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
5//
6// This library is free software; you can redistribute it and/or
7// modify it under the terms of the GNU Lesser General Public
8// License as published by the Free Software Foundation; either
9// version 2.1 of the License, or (at your option) any later version.
10//
11// This library is distributed in the hope that it will be useful,
12// but WITHOUT ANY WARRANTY; without even the implied warranty of
13// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14// Lesser General Public License for more details.
15//
16// You should have received a copy of the GNU Lesser General Public
17// License along with this library; if not, write to the Free Software
18// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19//
20// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
21//
22
23#ifndef _GEOM_IShapesOperations_i_HeaderFile
24#define _GEOM_IShapesOperations_i_HeaderFile
25
26#include "GEOM_GEOM_I.hxx"
27#include "GEOMImpl_Gen.hxx"
28
29#include <SALOMEconfig.h>
30
31#include CORBA_SERVER_HEADER(GEOM_Gen)
32#include "GEOM_IOperations_i.hh"
33#include "GEOM_Object_i.hh"
34
36
38 public virtual POA_GEOM::GEOM_IShapesOperations,
39 public virtual GEOM_IOperations_i
40{
41 public:
42 GEOM_IShapesOperations_i (PortableServer::POA_ptr thePOA,
43 GEOM::GEOM_Gen_ptr theEngine,
46
47 GEOM::GEOM_Object_ptr MakeEdge (GEOM::GEOM_Object_ptr thePnt1,
48 GEOM::GEOM_Object_ptr thePnt2);
49
50 GEOM::GEOM_Object_ptr MakeEdgeOnCurveByLength (GEOM::GEOM_Object_ptr theCurve,
51 CORBA::Double theLength,
52 GEOM::GEOM_Object_ptr theStartPoint);
53
54 GEOM::GEOM_Object_ptr MakeEdgeWire (GEOM::GEOM_Object_ptr theWire,
55 const CORBA::Double theLinearTolerance,
56 const CORBA::Double theAngularTolerance);
57
58 GEOM::GEOM_Object_ptr MakeWire (const GEOM::ListOfGO& theEdgesAndWires,
59 const CORBA::Double theTolerance,
60 const GEOM::wire_build_mode theMode);
61
62 GEOM::GEOM_Object_ptr MakeFace (GEOM::GEOM_Object_ptr theWire,
63 CORBA::Boolean isPlanarWanted);
64
65 GEOM::GEOM_Object_ptr MakeFaceWires (const GEOM::ListOfGO& theWires,
66 CORBA::Boolean isPlanarWanted);
67
68 GEOM::GEOM_Object_ptr MakeFaceFromSurface(GEOM::GEOM_Object_ptr theFace,
69 GEOM::GEOM_Object_ptr theWire);
70
71 GEOM::GEOM_Object_ptr MakeWrappedFace(const GEOM::ListOfGO& theEdges,
72 const GEOM::ListOfGO& theVertices,
73 const CORBA::Double theTolerance);
74
75 GEOM::GEOM_Object_ptr MakeFaceWithConstraints (const GEOM::ListOfGO& theConstraints);
76
77 GEOM::GEOM_Object_ptr MakeShell (const GEOM::ListOfGO& theFacesAndShells);
78
79 GEOM::GEOM_Object_ptr MakeSolidShell (GEOM::GEOM_Object_ptr theShell);
80
81 GEOM::GEOM_Object_ptr MakeSolidShells (const GEOM::ListOfGO& theShells);
82
83 GEOM::GEOM_Object_ptr MakeCompound (const GEOM::ListOfGO& theShapes);
84
85 GEOM::GEOM_Object_ptr MakeSolidFromConnectedFaces (const GEOM::ListOfGO& theFacesOrShells,
86 CORBA::Boolean isIntersect);
87
88 GEOM::GEOM_Object_ptr MakeGlueFaces (const GEOM::ListOfGO& theShape,
89 CORBA::Double theTolerance,
90 CORBA::Boolean doKeepNonSolids);
91
92 GEOM::ListOfGO* GetGlueFaces (const GEOM::ListOfGO& theShape,
93 CORBA::Double theTolerance);
94
95 GEOM::GEOM_Object_ptr MakeGlueFacesByList (const GEOM::ListOfGO& theShape,
96 CORBA::Double theTolerance,
97 const GEOM::ListOfGO& theFaces,
98 CORBA::Boolean doKeepNonSolids,
99 CORBA::Boolean doGlueAllEdges);
100
101 GEOM::GEOM_Object_ptr MakeGlueEdges (const GEOM::ListOfGO& theShape,
102 CORBA::Double theTolerance);
103
104 GEOM::ListOfGO* GetGlueEdges (const GEOM::ListOfGO& theShape,
105 CORBA::Double theTolerance);
106
107 GEOM::GEOM_Object_ptr MakeGlueEdgesByList (const GEOM::ListOfGO& theShape,
108 CORBA::Double theTolerance,
109 const GEOM::ListOfGO& theEdges);
110
111 GEOM::ListOfGO* GetExistingSubObjects (GEOM::GEOM_Object_ptr theShape,
112 CORBA::Boolean theGroupsOnly);
113
114 // For old SubShapeAll()
115 // Deprecated, use MakeAllSubShapes() instead
116 GEOM::ListOfGO* MakeExplode (GEOM::GEOM_Object_ptr theShape,
117 CORBA::Long theShapeType,
118 CORBA::Boolean isSorted);
119
120 GEOM::ListOfGO* MakeAllSubShapes (GEOM::GEOM_Object_ptr theShape,
121 CORBA::Long theShapeType,
122 CORBA::Boolean isSorted);
123
124 GEOM::ListOfGO* ExtractSubShapes (GEOM::GEOM_Object_ptr theShape,
125 CORBA::Long theShapeType,
126 CORBA::Boolean isSorted);
127
128 // Deprecated, use GetAllSubShapesIDs() instead
129 GEOM::ListOfLong* SubShapeAllIDs (GEOM::GEOM_Object_ptr theShape,
130 CORBA::Long theShapeType,
131 CORBA::Boolean isSorted);
132
133 GEOM::ListOfLong* GetAllSubShapesIDs (GEOM::GEOM_Object_ptr theShape,
134 CORBA::Long theShapeType,
135 CORBA::Boolean isSorted);
136
137 GEOM::GEOM_Object_ptr GetSubShape (GEOM::GEOM_Object_ptr theMainShape,
138 CORBA::Long theID);
139
140 GEOM::ListOfGO* MakeSubShapes (GEOM::GEOM_Object_ptr theMainShape,
142
143 CORBA::Long GetSubShapeIndex (GEOM::GEOM_Object_ptr theMainShape,
144 GEOM::GEOM_Object_ptr theSubShape);
145
146 GEOM::ListOfLong* GetSubShapesIndices (GEOM::GEOM_Object_ptr theMainShape,
147 const GEOM::ListOfGO& theSubShapes);
148
149 CORBA::Long GetTopologyIndex (GEOM::GEOM_Object_ptr theMainShape,
150 GEOM::GEOM_Object_ptr theSubShape);
151
152 char* GetShapeTypeString (GEOM::GEOM_Object_ptr theShape);
153
154 CORBA::Boolean IsSubShapeBelongsTo( GEOM::GEOM_Object_ptr theSubobject,
155 const CORBA::Long theSubObjectIndex,
156 GEOM::GEOM_Object_ptr theObject,
157 const CORBA::Long theObjectIndex );
158
159 CORBA::Long NumberOfFaces (GEOM::GEOM_Object_ptr theShape);
160 CORBA::Long NumberOfEdges (GEOM::GEOM_Object_ptr theShape);
161 CORBA::Long NumberOfSubShapes (GEOM::GEOM_Object_ptr theShape,
162 const CORBA::Long theShapeType);
163
164 GEOM::GEOM_Object_ptr ChangeOrientation (GEOM::GEOM_Object_ptr theShape);
165
166 GEOM::ListOfLong* GetFreeFacesIDs (GEOM::GEOM_Object_ptr theShape);
167
168 GEOM::ListOfGO* GetSharedShapes (GEOM::GEOM_Object_ptr theShape1,
169 GEOM::GEOM_Object_ptr theShape2,
170 CORBA::Long theShapeType);
171
172 GEOM::ListOfGO* GetSharedShapesMulti (const GEOM::ListOfGO& theShapes,
173 CORBA::Long theShapeType,
174 CORBA::Boolean theMultiShare);
175
176 GEOM::ListOfGO* GetShapesOnPlane (GEOM::GEOM_Object_ptr theShape,
177 CORBA::Long theShapeType,
178 GEOM::GEOM_Object_ptr theAx1,
179 GEOM::shape_state theState);
180
181 GEOM::ListOfGO* GetShapesOnPlaneWithLocation(GEOM::GEOM_Object_ptr theShape,
182 CORBA::Long theShapeType,
183 GEOM::GEOM_Object_ptr theAx1,
184 GEOM::GEOM_Object_ptr thePnt,
185 GEOM::shape_state theState);
186
187 GEOM::ListOfGO* GetShapesOnCylinder (GEOM::GEOM_Object_ptr theShape,
188 CORBA::Long theShapeType,
189 GEOM::GEOM_Object_ptr theAxis,
190 CORBA::Double theRadius,
191 GEOM::shape_state theState);
192
193 GEOM::ListOfGO* GetShapesOnCylinderWithLocation (GEOM::GEOM_Object_ptr theShape,
194 CORBA::Long theShapeType,
195 GEOM::GEOM_Object_ptr theAxis,
196 GEOM::GEOM_Object_ptr thePnt,
197 CORBA::Double theRadius,
198 GEOM::shape_state theState);
199
200 GEOM::ListOfGO* GetShapesOnSphere (GEOM::GEOM_Object_ptr theShape,
201 CORBA::Long theShapeType,
202 GEOM::GEOM_Object_ptr theCenter,
203 CORBA::Double theRadius,
204 GEOM::shape_state theState);
205
206 GEOM::ListOfGO* GetShapesOnQuadrangle (GEOM::GEOM_Object_ptr theShape,
207 CORBA::Long theShapeType,
208 GEOM::GEOM_Object_ptr theTopLeftPoint,
209 GEOM::GEOM_Object_ptr theTopRightPoint,
210 GEOM::GEOM_Object_ptr theBottomLeftPoint,
211 GEOM::GEOM_Object_ptr theBottomRightPoint,
212 GEOM::shape_state theState);
213
214 GEOM::ListOfLong* GetShapesOnPlaneIDs (GEOM::GEOM_Object_ptr theShape,
215 CORBA::Long theShapeType,
216 GEOM::GEOM_Object_ptr theAx1,
217 GEOM::shape_state theState);
218
219 GEOM::ListOfLong* GetShapesOnPlaneWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
220 CORBA::Long theShapeType,
221 GEOM::GEOM_Object_ptr theAx1,
222 GEOM::GEOM_Object_ptr thePnt,
223 GEOM::shape_state theState);
224
225 GEOM::ListOfLong* GetShapesOnCylinderIDs (GEOM::GEOM_Object_ptr theShape,
226 CORBA::Long theShapeType,
227 GEOM::GEOM_Object_ptr theAxis,
228 CORBA::Double theRadius,
229 GEOM::shape_state theState);
230
231 GEOM::ListOfLong* GetShapesOnCylinderWithLocationIDs (GEOM::GEOM_Object_ptr theShape,
232 CORBA::Long theShapeType,
233 GEOM::GEOM_Object_ptr theAxis,
234 GEOM::GEOM_Object_ptr thePnt,
235 CORBA::Double theRadius,
236 GEOM::shape_state theState);
237
238 GEOM::ListOfLong* GetShapesOnSphereIDs (GEOM::GEOM_Object_ptr theShape,
239 CORBA::Long theShapeType,
240 GEOM::GEOM_Object_ptr theCenter,
241 CORBA::Double theRadius,
242 GEOM::shape_state theState);
243
244 GEOM::ListOfLong* GetShapesOnQuadrangleIDs (GEOM::GEOM_Object_ptr theShape,
245 CORBA::Long theShapeType,
246 GEOM::GEOM_Object_ptr theTopLeftPoint,
247 GEOM::GEOM_Object_ptr theTopRightPoint,
248 GEOM::GEOM_Object_ptr theBottomLeftPoint,
249 GEOM::GEOM_Object_ptr theBottomRightPoint,
250 GEOM::shape_state theState);
251
252 GEOM::ListOfGO* GetShapesOnBox (GEOM::GEOM_Object_ptr theBox,
253 GEOM::GEOM_Object_ptr theShape,
254 CORBA::Long theShapeType,
255 GEOM::shape_state theState);
256
257 GEOM::ListOfLong* GetShapesOnBoxIDs (GEOM::GEOM_Object_ptr theBox,
258 GEOM::GEOM_Object_ptr theShape,
259 CORBA::Long theShapeType,
260 GEOM::shape_state theState);
261
262 GEOM::ListOfGO* GetShapesOnShape (GEOM::GEOM_Object_ptr theSheckShape,
263 GEOM::GEOM_Object_ptr theShape,
264 CORBA::Short theShapeType,
265 GEOM::shape_state theState);
266
267 GEOM::GEOM_Object_ptr GetShapesOnShapeAsCompound
268 (GEOM::GEOM_Object_ptr theSheckShape,
269 GEOM::GEOM_Object_ptr theShape,
270 CORBA::Short theShapeType,
271 GEOM::shape_state theState);
272
273 GEOM::ListOfLong* GetShapesOnShapeIDs (GEOM::GEOM_Object_ptr theCheckShape,
274 GEOM::GEOM_Object_ptr theShape,
275 CORBA::Short theShapeType,
276 GEOM::shape_state theState);
277
278 GEOM::GEOM_Object_ptr GetInPlace (GEOM::GEOM_Object_ptr theShapeWhere,
279 GEOM::GEOM_Object_ptr theShapeWhat);
280
281 GEOM::GEOM_Object_ptr GetInPlaceOld (GEOM::GEOM_Object_ptr theShapeWhere,
282 GEOM::GEOM_Object_ptr theShapeWhat);
283
284 GEOM::GEOM_Object_ptr GetInPlaceByHistory (GEOM::GEOM_Object_ptr theShapeWhere,
285 GEOM::GEOM_Object_ptr theShapeWhat);
286
287 GEOM::ListOfListOfLong* GetInPlaceMap(GEOM::GEOM_Object_ptr theShapeWhere,
288 GEOM::GEOM_Object_ptr theShapeWhat);
289
290 GEOM::GEOM_Object_ptr GetSame (GEOM::GEOM_Object_ptr theShapeWhere,
291 GEOM::GEOM_Object_ptr theShapeWhat);
292
293 GEOM::ListOfLong* GetSameIDs (GEOM::GEOM_Object_ptr theShapeWhere,
294 GEOM::GEOM_Object_ptr theShapeWhat);
295
296 GEOM::GEOM_Object_ptr ExtendEdge(GEOM::GEOM_Object_ptr theEdge,
297 CORBA::Double theMin,
298 CORBA::Double theMax);
299
300 GEOM::GEOM_Object_ptr ExtendFace(GEOM::GEOM_Object_ptr theFace,
301 CORBA::Double theUMin,
302 CORBA::Double theUMax,
303 CORBA::Double theVMin,
304 CORBA::Double theVMax);
305
306 GEOM::GEOM_Object_ptr MakeSurfaceFromFace(GEOM::GEOM_Object_ptr theFace);
307
308 GEOM::ListOfGO* GetSubShapeEdgeSorted (GEOM::GEOM_Object_ptr theShape,
309 GEOM::GEOM_Object_ptr theStartPoint);
310
311 GEOM::ListOfGO* GetSubShapesWithTolerance
312 (GEOM::GEOM_Object_ptr theShape,
313 CORBA::Short theShapeType,
314 GEOM::comparison_condition theCondition,
315 CORBA::Double theTolerance);
316
317 GEOM::GEOM_Object_ptr MakeExtraction
318 (GEOM::GEOM_Object_ptr theShape,
319 const GEOM::ListOfLong &theSubShapeIDs,
320 GEOM::GEOM_IShapesOperations::ExtractionStats_out theStats);
321
324};
325
326#endif
static const TopTools_IndexedMapOfShape & theIndices
Definition: GEOMImpl_ShapeDriver.cxx:127
#define GEOM_I_EXPORT
Definition: GEOM_GEOM_I.hxx:33
Definition: GEOMImpl_IShapesOperations.hxx:58
Definition: GEOM_IOperations_i.hh:37
::GEOM_IOperations * GetImpl()
Definition: GEOM_IOperations_i.hh:60
Definition: GEOM_IShapesOperations_i.hh:40
::GEOMImpl_IShapesOperations * GetOperations()
Definition: GEOM_IShapesOperations_i.hh:322
comparison_condition
This enumeration represents comparison conditions.
Definition: GEOM_Gen.idl:216
sequence< GEOM_Object > ListOfGO
Definition: GEOM_Gen.idl:290
shape_state
State of shape relatively geometrical surface like plane, sphere or cylinder.
Definition: GEOM_Gen.idl:82
wire_build_mode
Wire construction mode. Regulates the way gaps are closed.
Definition: GEOM_Gen.idl:229
sequence< ListOfLong > ListOfListOfLong
Definition: GEOM_Gen.idl:282
sequence< long > ListOfLong
Definition: GEOM_Gen.idl:279